-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Fix repo contents cache FileValue staleness
#28147
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
Conversation
e4eaa49 to
385b89c
Compare
FileValue staleness
ba07bed to
f4e3f67
Compare
src/main/java/com/google/devtools/build/lib/skyframe/ExternalFilesHelper.java
Show resolved
Hide resolved
8604933 to
a89af2b
Compare
Wyverald
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't fully understand which part of this PR made the repo contents cache dir special. Is it just the DirtinessCheckerUtils::isCacheableType change?
src/main/java/com/google/devtools/build/lib/bazel/BazelRepositoryModule.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/skyframe/ExternalFilesHelper.java
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/skyframe/ExternalFilesHelper.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/skyframe/ExternalFilesHelper.java
Show resolved
Hide resolved
That depends on how strictly one interprets this: I read it as "The only way other than external repository directories...", which used to be true, but no longer is since the repo contents cache entries don't live under such directories (although of course they are reachable through them via symlinks). Ignoring that part, the conclusion "So the set of external files is small." is definitely wrong now since the repo contents cache file contributes a large number of |
It's really just that (plus the switch to |
I think that's a bit uncharitable -- I don't think we call
That I agree with. In fact it might have already been wrong before; any files pointed to by a |
Ensures that files under repo contents cache entries are not reported as missing after the cache has been deleted while the Bazel server is running. See the long comment in `RepositoryFetchFunction` for why this happens and how it is fixed. Fixes #26450 Closes #28147. PiperOrigin-RevId: 853622194 Change-Id: Ifba953b72258030e0a640ac49947ac5c5fc7620a
Ensures that files under repo contents cache entries are not reported as missing after the cache has been deleted while the Bazel server is running. See the long comment in `RepositoryFetchFunction` for why this happens and how it is fixed. Fixes #26450 Closes #28147. PiperOrigin-RevId: 853622194 Change-Id: Ifba953b72258030e0a640ac49947ac5c5fc7620a Co-authored-by: Fabian Meumertzheim <[email protected]>
Ensures that files under repo contents cache entries are not reported as missing after the cache has been deleted while the Bazel server is running. See the long comment in
RepositoryFetchFunctionfor why this happens and how it is fixed.Fixes #26450