-
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
Remote-cache not work in 5.2.0 #15682
Comments
people are reporting this is causing the issue |
What's error message looks like? Does it also the case for HEAD? |
I am not sure, it seems the cache is not uploading artifacts in certain scenarios, there are no diagnostic messages. I can't tell if people reporting the issues are only using http caching though, but the person in the slack thread and this report are both using http cache. |
I also confirm this is a problem. We didn't notice at the beginning of the upgrade as we were using the previously populated remote cache but after a couple of days we were having mostly cache misses and less and less cache hits. The problem happens both when using the buildbuddy grpc cache or a simple GCS Bucket. Reverting to 5.1.1 makes everything working again. |
I am not able to reproduce this locally. Do you know which actions are not uploading artifacts? |
@coeuvre it actually happens in rules from |
We reverted back to 5.1.1 due to this, however we do not use We noticed because the bazel-remote logs were all GET 404. |
Same error. |
@nickbreen Are you using directory inputs/outputs? |
We have various rules using TreeArtifacts ( |
We have also noticed this similar bug where caching seems to have broken on 5.2.0. When I was tracing the request logs something seemed odd in terms of the action cache Before doing a build there is a miss on the action cache Bazel/rules go along their business and build/calculate results, then I would assume that the next time Could someone confirm or verify seeing similar behavior and if that is expected? Edit: 4d900ce#diff-5556e28152f91eac5403663774979225b86e64133da164366b56f91d1daa641cR536 The This patch fixed uploading to action cache https://gist.github.com/adam-singer/6500f268885f1c2c604fd4f9f1fec439, would prefer if owners verify/confirm bug. |
In 4d900ce we introduced validation in DiskAndRemoteCacheClient.uploadActionResult() where context's step must be UPLOAD_OUTPUTS to trigger the upload. However, this value was never set in RemoteExecutionService before hand thus led to outputs not being uploaded and cause remote cache misses. Fix bazelbuild#15682
In 4d900ce we introduced validation in DiskAndRemoteCacheClient.uploadActionResult() where context's step must be UPLOAD_OUTPUTS to trigger the upload. However, this value was never set in RemoteExecutionService before hand thus led to outputs not being uploaded and cause remote cache misses. Fix bazelbuild#15682
In 4d900ce we introduced validation in DiskAndRemoteCacheClient.uploadActionResult() where context's step must be UPLOAD_OUTPUTS to trigger the upload. However, this value was never set in RemoteExecutionService before hand thus led to outputs not being uploaded and cause remote cache misses. Fix bazelbuild#15682
In 4d900ce we introduced validation in DiskAndRemoteCacheClient.uploadActionResult() where context's step must be UPLOAD_OUTPUTS to trigger the upload. However, this value was never set in RemoteExecutionService before hand thus led to outputs not being uploaded and cause remote cache misses. Fix #15682 Thanks @adam-singer for doing the investigation 🙏 Closes #15823. PiperOrigin-RevId: 459519852 Change-Id: Ib004403d7893fe135adcc4b181b607d8cb33f3af Co-authored-by: Son Luong Ngoc <[email protected]>
In 4d900ce we introduced validation in DiskAndRemoteCacheClient.uploadActionResult() where context's step must be UPLOAD_OUTPUTS to trigger the upload. However, this value was never set in RemoteExecutionService before hand thus led to outputs not being uploaded and cause remote cache misses. Fix bazelbuild#15682 Thanks @adam-singer for doing the investigation 🙏 Closes bazelbuild#15823. PiperOrigin-RevId: 459519852 Change-Id: Ib004403d7893fe135adcc4b181b607d8cb33f3af
In 4d900ce we introduced validation in DiskAndRemoteCacheClient.uploadActionResult() where context's step must be UPLOAD_OUTPUTS to trigger the upload. However, this value was never set in RemoteExecutionService before hand thus led to outputs not being uploaded and cause remote cache misses. Fix bazelbuild#15682 Thanks @adam-singer for doing the investigation 🙏 Closes bazelbuild#15823. PiperOrigin-RevId: 459519852 Change-Id: Ib004403d7893fe135adcc4b181b607d8cb33f3af
Description of the bug:
When upgrade to the latest version of bazel. Bazel remote seems not to work. Bazel can only put but can not get. When use bazel 5.1.1 bazel remote works again. More strange, bazel 5.2.0 can use the cache of 5.1.1. It seems that the artifact put by bazel 5.2 has problem.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Use bazel 5.2.0 and use
https://github.com/buchgr/bazel-remote
as remote cache likebazel build --remote_cache=http://localhost:9090
Which operating system are you running Bazel on?
Ubuntu 20.04
What is the output of
bazel info release
?release 5.2.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 master; git rev-parse HEAD
?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
The text was updated successfully, but these errors were encountered: