-
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
Stale transition value #13997
Comments
Interesting report. I'll give it a look as soon as I can... |
Thanks. I confirmed this. It's cache key imprecision when trying to cache transition execution: Lines 77 to 81 in 0428828
I think this is as simple as storing the full The point of the cache was to avoid redundant execution of expensive transitions. I'd want to do a few quick performance tests to check that this fix doesn't slow anything down (I don't think it will). Thanks for catching this! |
FYI I have a pending fix for this at https://bazel-review.googlesource.com/c/bazel/+/178498. I just want to check it doesn't introduce performance regressions before submitting. |
@bazel-io fork 5.2 |
@bazel-io flag |
@bazel-io fork 5.2.0 |
…s change. Fixes bazelbuild#13997 PiperOrigin-RevId: 406886706 (cherry picked from commit fe644be)
I have following code that I am using to create a transition. It transitions on //hal/mach:mach build setting as defined below
I create the following using the above
When I change the mach to a invalid value, say
armX
, I get an error, but if I change it again toarmY
, I still get an error saying thearmX
is invalid.I don't understand why I am still getting stale values.
I have a minimal example here https://github.com/nikhilkalige/bazel-select-impl-test , but this does not seem to suffer the same problem, where as my larger codebase fails to pick up the changes to files.
I am only seeing this error with newer version of bazel, I tried it out 5 post release (1a7d524) and one more slightly older version too.
The text was updated successfully, but these errors were encountered: