-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails with exit code 34 rather than 39 on missing input files #21778
Comments
Can you patch eda0fe4 and check whether this issue is still reproducible? |
I cherry-picked eda0fe4 on https://github.com/bazelbuild/bazel/tree/release-7.2.0, and this still happens :( It's possible that this failure might be related to the implementation of buchgr's remote cache, but I'm still little confused on why it proceeds to upload the action digest blob after not finding the action cache, and why these uploads don't go through this check. e.g. |
and when it's missing, treat it as remote cache eviction. Also revert the workaround for bazelbuild#19513. Fixes bazelbuild#21777. Potential fix for bazelbuild#21626 and bazelbuild#21778. Closes bazelbuild#21825. PiperOrigin-RevId: 619877088 Change-Id: Ib1204de8440b780e5a6ee6a563a87da08f196ca5
and when it's missing, treat it as remote cache eviction. Also revert the workaround for #19513. Fixes #21777. Potential fix for #21626 and #21778. Closes #21825. PiperOrigin-RevId: 619877088 Change-Id: Ib1204de8440b780e5a6ee6a563a87da08f196ca5 Commit eda0fe4 Co-authored-by: Chi Wang <[email protected]>
and when it's missing, treat it as remote cache eviction. Also revert the workaround for bazelbuild#19513. Fixes bazelbuild#21777. Potential fix for bazelbuild#21626 and bazelbuild#21778. Closes bazelbuild#21825. PiperOrigin-RevId: 619877088 Change-Id: Ib1204de8440b780e5a6ee6a563a87da08f196ca5
and when it's missing, treat it as remote cache eviction. Also revert the workaround for #19513. Fixes #21777. Potential fix for #21626 and #21778. Closes #21825. PiperOrigin-RevId: 619877088 Change-Id: Ib1204de8440b780e5a6ee6a563a87da08f196ca5 Commit eda0fe4 Co-authored-by: Chi Wang <[email protected]>
For the second invocation,
|
Ahh yeah that makes sense. I think BuildBarn's bare remote executor assumes that its remote cache is the BuildBarn storage rather than what was passed into |
Description of the bug:
Setup:
Reproduction:
Expected behavior:
Bazel rebuilds everything successfully. Or Bazel exits with 39 because expected cache entries cannot be found remotely during evaluation.
Actual behavior:
Logs from step 3 indicate exit code 34:
Investigation:
We have not tried going deep for this bug, this was found by accident while trying to reproduce #21777.
Which category does this issue belong to?
Remote Execution
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Enable remote executor locally on port 8980. In our reproduction, we used https://github.com/buildbarn/bb-deployments/.
Check out https://github.com/hoj-stripe/cache-eviction-hang, run ./repro_34_exit.sh.
Which operating system are you running Bazel on?
Ubuntu 20.04.6 LTS
What is the output of
bazel info release
?release 7.1.0
If
bazel info release
returnsdevelopment 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?
cc @clintharrison @sushain97 @coeuvre
The text was updated successfully, but these errors were encountered: