Slow git status causes Turbo to hang #8667
Labels
kind: bug
Something isn't working
needs: triage
New issues get this label. Remove it after triage
owned-by: turborepo
Verify canary release
Link to code that reproduces this issue
n/a
What package manager are you using / does the bug impact?
Yarn v2/v3/v4 (node_modules linker only)
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
2.0.6
Describe the Bug
I use Git-backed Jujutsu, so in my repo I very rarely run
git status
. Not doing so for a while can be laggy for reasons that are probably obvious to anyone familiar with Git's innards.This causes Turbo caching to radically slowdown, so the extent that a task that usually completes and caches in a few seconds will hang up the system with 100% CPU. Notably this task outputs lots of small files to disk.
Expected Behavior
The task completes like usual, possibly with an additional slowdown comparable to running
git status
once first, which fixes the issue.To Reproduce
Presumably it'd be possible to repro and fix if you can find a way to artificially slow Git down.
Additional context
This is a bit of an edge case given Git's ubiquity, so I wouldn't mind if you closed this as not fixing. I figured I'd at least report it for anyone else using Jujutsu and hitting this issue.
Related: #8122
The text was updated successfully, but these errors were encountered: