bazel: Hang in 'checking cached actions'
Description of the bug:
I’ve not got a reliable way to reproduce this yet, but I’ve been seeing Bazel 7.1 hang during ‘checking cached actions’, on a 16-core Windows machine. This is quite new. The thing I’ve changed recently is to write a ‘warm commit builder’ that, in a loop, checks out latest commit, builds it, then moves onto next. Each new checkout probably changes only 100 files in the source directory. The hang happens every 10 or so builds, and might last 5-20 minutes before it continues. I’ve reverted to bazel 7.0.1 for now, and will monitor.
Has anyone else seen this recently?
Which category does this issue belong to?
No response
What’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
windows
What is the output of bazel info release?
release 7.1.0
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What’s the output of git remote get-url origin; git rev-parse HEAD ?
No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- Use a Semaphore for signaling in repo fetching I managed to reproduce some deadlocks during repo fetching with virtual worker threads. One notable trigger was some _other_ repo failing to fetch, whic... — committed to bazelbuild/bazel by Wyverald 3 years ago
- Use a Semaphore for signaling in repo fetching I managed to reproduce some deadlocks during repo fetching with virtual worker threads. One notable trigger was some _other_ repo failing to fetch, whic... — committed to bazelbuild/bazel by Wyverald 3 years ago
- Use a Semaphore for signaling in repo fetching I managed to reproduce some deadlocks during repo fetching with virtual worker threads. One notable trigger was some _other_ repo failing to fetch, whic... — committed to bazel-io/bazel by Wyverald 3 years ago
- Use a Semaphore for signaling in repo fetching I managed to reproduce some deadlocks during repo fetching with virtual worker threads. One notable trigger was some _other_ repo failing to fetch, whic... — committed to bazelbuild/bazel by Wyverald 3 years ago
- Use a Semaphore for signaling in repo fetching I managed to reproduce some deadlocks during repo fetching with virtual worker threads. One notable trigger was some _other_ repo failing to fetch, whic... — committed to Kila2/bazel by Wyverald 3 years ago
@bazel-io fork 7.2.0
Unfortunately, ‘checking cached actions’ is just the (poorly chosen) default message when Bazel doesn’t really know what’s going on.
Could you maybe capture a
jstackwhile it’s hanging?Thanks for the info, @keithl-stripe . This pretty much confirms this to be the repo worker thing. It’s my top priority to fix at the moment for 7.2.0 (along with #22003, #22206, etc).
@bazel-io fork 7.1.2