Skip to content

crates/turborepo-scm/src/git.rs panics in GitHub Actions #10403

@ScarletFlash

Description

@ScarletFlash

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

TBD

Which canary version will you have in your reproduction?

TBD

Environment information

CLI:
   Version: 2.5.2
   Path to executable: /home/runner/_work/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/node_modules/.pnpm/[email protected]/node_modules/turbo-linux-64/bin/turbo
   Daemon status: Not running
   Package manager: pnpm9
Platform:
   Architecture: x86_64
   Operating system: linux
   WSL: false
   Available memory (MB): 4049
   Available CPU cores: 2
Environment:
   CI: Some(
    "GitHub Actions",
)
   Terminal (TERM): unknown
   Terminal program (TERM_PROGRAM): unknown
   Terminal program version (TERM_PROGRAM_VERSION): unknown
   Shell (SHELL): unknown
   stdin: true

Expected behavior

turbo --color --no-update-notifier run --continue\=dependencies-successful --env-mode\=strict --log-order\=stream --cache-dir\=./.turbo --concurrency\=75% --affected _check-all

Is successfully executed in GitHub Action

Actual behavior

GitHub Action fails with these logs:

> Run pnpm run check-all-affected
  
> ⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎@0.0.0 check-all-affected /home/runner/_work/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎
> pnpm run turbo-run --affected _check-all
> ⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎@0.0.0 turbo-run /home/runner/_work/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎
> pnpm run turbo run --continue=dependencies-successful --env-mode=strict --log-order=stream --cache-dir=./.turbo --concurrency=[7](https://github.com/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/actions/runs/14728347255/job/41336330595?pr=5174#step:9:7)5% --affected _check-all
> ⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎@0.0.0 turbo /home/runner/_work/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎
> turbo --color --no-update-notifier run --continue\=dependencies-successful --env-mode\=strict --log-order\=stream --cache-dir\=./.turbo --concurrency\=75% --affected _check-all
Oops! Turbo has crashed.
Caused by 
"name" = "turbo"
"operating_system" = "Ubuntu 22.4.0 (jammy) [64-bit]"
"crate_version" = "2.5.2"
"explanation" = """
file 'crates/turborepo-scm/src/git.rs' at line 359
"""
"cause" = '''
panicked at crates/turborepo-scm/src/git.rs:359:1[8](https://github.com/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/actions/runs/14728347255/job/41336330595?pr=5174#step:9:9):
called `Result::unwrap()` on an `Err` value: Path(NotParent("/home/runner/_work/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎", "/home/runner/_work/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/\"⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/packages/utilities/src/functions/get-all-prototypes.function\\321\\216.spec.ts\""), <disabled>)'''
"method" = "Panic"
"backtrace" = """
   0: 0x7ffaa5[9](https://github.com/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/actions/runs/14728347255/job/41336330595?pr=5174#step:9:10)358d5 - <unresolved>
   1: 0x7ffaa542ee36 - <unresolved>
   2: 0x7ffaa5132734 - <unresolved>
   3: 0x7ffaa55d97bb - <unresolved>
   4: 0x7ffaa4f3473d - <unresolved>
   5: 0x7ffaa51b04ce - <unresolved>
   6: 0x7ffaa51aab78 - <unresolved>
   7: 0x7ffaa529bfc0 - <unresolved>
   8: 0x7ffaa52ba42c - <unresolved>
   9: 0x7ffaa4eb5641 - <unresolved>
  10: 0x7ffaa4eae88e - <unresolved>
  11: 0x7ffaa55c8bf0 - <unresolved>
  [12](https://github.com/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/actions/runs/14728347255/job/41336330595?pr=5174#step:9:13): 0x7ffaa55c547b - <unresolved>
  13: 0x7ffaa41f6f5a - <unresolved>
  14: 0x7ffaa41f4c[13](https://github.com/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎/actions/runs/14728347255/job/41336330595?pr=5174#step:9:14) - <unresolved>
  15: 0x7ffaa41f7545 - <unresolved>"""
Please open an issue at https://github.com/vercel/turborepo/issues/new/choose and include this message in your issue
 ELIFECYCLE  Command failed with exit code 101.
 ELIFECYCLE  Command failed with exit code 101.
 ELIFECYCLE  Command failed with exit code 101.
Error: Process completed with exit code 101.

To Reproduce

⚠️ Not verified yet

  1. Prepare a TypeScript codebase with valid turbo tasks.
  2. Configure GitHub Actions to check the codebase with the --affected flag.
  3. Push a file with a corrupted file name into a repo (Cyrillic symbols in my case) and run the checks.
  4. Observe the failed attempt to run.
  5. Try cleaning the GitHub caches / deleting the corrupted file / renaming it
  6. Observe the failed attempt to run again.
  7. Remove the --affected flag.
  8. Observe successful runs.

Additional context

I'm sorry for the incomplete report ― I'll try to finalize it ASAP.
Removing the --affected flag helped run the CI, but now it's much slower.

Partial package.json to make it clear how we run commands:

{
  "name": "⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎⬛︎",
  "scripts": {
    "check-all-affected": "pnpm run turbo-run --affected _check-all",
    "turbo": "turbo --color --no-update-notifier",
    "turbo-run": "pnpm run turbo run --continue=dependencies-successful --env-mode=strict --log-order=stream --cache-dir=./.turbo --concurrency=75%"
  },
  "engines": {
    "pnpm": "10.10.0",
    "node": "22.15.0"
  },
  "packageManager": "[email protected]"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions