-
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
Bazel fails build if Remote Cache returns AC but not CAS #12423
Comments
Ah, I just noticed #8250, which is basically same issue Please feel free to close this one as duplicate, if you think it is |
What flags are you using for that build? |
@ulfjack which flags specifically are you wondering about? |
In case it’s a useful data point: We regularly (unfortunately) encounter the same error message on our Windows CI nodes during Haskell builds (and only there). I tried to verify that this is caused y this issue however, it seems like like deleting CAS outputs (or overwriting them with empty files) results in a |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 2+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This bug has been fixed in recent releases. |
Description of the problem / feature request:
We have Remote Build Cache for Bazel that can't guarantee that between request for
AC
andCAS
for a given key CAS won't be evicted from the cache.It seems that this can result in Bazel build failing with following error:
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I think the issue happens when Remote Cache returns
AC
(metadata) but by the time Bazel requestsCAS
, it's evicted from the remote cache so it returns404
and Bazel fails because it doesn't have output for an action.What operating system are you running Bazel on?
macOS, Linux.
What's the output of
bazel info release
?release 3.6.0
Have you found anything relevant by searching the web?
My assumption might be wrong, but if it was right, I think Bazel should not expect
CAS
to be guaranteed ifAC
was returned and gracefully run the action locally to generate the output.The text was updated successfully, but these errors were encountered: