Repository navigation
Pass env variable instructing CI to write Bazel cache - #10248
Merged
Merged
Conversation
GMNGeoffrey
marked this pull request as ready for review
August 30, 2022 22:12
ScottTodd
approved these changes
Aug 30, 2022
Collaborator
|
That's pretty amazing - great find :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
So it turns out that the postsubmit jobs were never actually writing to
the remote cache here. How were they still getting cache hits then?
Because until last week, the Kokoro postsubmit jobs were still
writing that cache. So given that they were running concurrently with
the GitHub jobs, we had a pattern that was totally consistent with
GitHub actions postsubmit jobs writing the cache: an initial build that
is slow followed by fast builds from a populated cache. The last Kokoro
build of the TF integration binaries was for
e4dc88c3d1, so everything up to
that point was cached. When we next upgraded LLVM and invalidated a big
chunk of the cache, we no longer had anything writing it and builds
became very slow as they got no cache hits. Even more fun, I had ruled
out infrastructure issues because I could revert back to the old commit
and get a fast TF build, but of course that's just because the old
stuff was still cached!
This is basically impossible to test on presubmit because those runners
aren't allowed to write to the cache and I've put a lot of effort into
making it impossible to run presubmits to touch any postsubmit stuff.
(probably) fixes #10237