-
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
no-cache
tag does not apply to the persistent action cache
#15516
Comments
@bazelbuild/remote-execution |
Here's a smaller repro with a trivial test rule:
Confirmed with a Bazel built at HEAD. Note that is isn't remote execution related; a local build exhibits the issue. |
FYI, the @bazelbuild/remote-execution team also covers any caching. |
Does adding |
When running Tiago's example with |
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 1+ years. It will be closed in the next 90 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 ( |
Still seeing this in Bazel 6.3.2. Used "external" tag as a work-around. |
no-cache
tagno-cache
tag does not apply to the persistent action cache
Copying from #19909 for the benefit of future readers dealing with cache-busting issues: There are three caches involved:
The Skyframe cache will always be hit on incremental builds and there's afaik no way to disable it. The persistent action cache can be disabled by |
Description of the bug:
According to https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes, adding the
no-cache
tag should "[result] in the action or test never being cached (remotely or locally)". This is false, at least using a toolchain that I have written.I was able to work-around this issue by instead setting the
external
tag.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
macOS
What is the output of
bazel info release
?release 6.0.0-pre.20220216.3
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
?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: