-
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 7.1.1 re-runs analysis and re-fetches external repositories during each invocations #21835
Comments
@ivan-golub Could you please provide complete steps to reproduce this issue? |
Trying to get a repro project but its not trivial, I can repro within project with a lot of external dependencies but not in isolated new project. Added additional logs to issue description |
I'm hitting the same problem with dependencies built with This happens on versions |
@dieortin Could you share the |
I was seeing this issue in |
My issue turned out to be related to artifacts produced by rules_foreign_cc not being deterministic, as some build IDs end up in its build log file. |
Description of the bug:
After upgrade from bazel 7.0.2 to bazel 7.1.1 seeing an issue where bazel analysis cache is lost between invocations and "Analyzing: target"/"checking cached actions"/fetching external repositories run on each invocation vs being retained in-memory. Server pid doesnt check and there are no logs like
WARNING: something something has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed)
Reverting 18ba449 and related bd4bddf solves this issue
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?
macOS
What is the output of
bazel info release
?7.1.1
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
18ba449
Any other information, logs, or outputs that you want to share?
Logs from running same build command several times in a row
Expected (7.0.2 behavior)
Actual (7.1.1):
The text was updated successfully, but these errors were encountered: