You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[6.1.0] Handle remote cache eviction when uploading inputs for remote actions. (bazelbuild#17605)
* Extract code for cleaning stale state when remote CAS evicted blobs into another class.
PiperOrigin-RevId: 512049304
Change-Id: I87e9e6bcd4d4c4d8be27be13cfb8ba70b199b6e6
* Handle remote cache eviction when uploading inputs for remote actions.
Previously, we handle remote cache eviction when downloading inputs for local actions. However, it's possible that when Bazel need to re-execute an remote action, it detected that some inputs are missing from remote CAS. In this case, Bazel will try to upload inputs by reading from local filesystem. Since the inputs were generated remotely, not downloaded and evicted remotely, the upload will fail with FileNotFoundException.
This CL changes the code to correctly handles above case by reading through ActionFS when uploading inputs and propagate CacheNotFoundException.
Related to bazelbuild#16660.
PiperOrigin-RevId: 512568547
Change-Id: I3a28cadbb6285fa3727e1603f37abf8843c093c9
* Fix tests
---------
Co-authored-by: kshyanashree <[email protected]>
0 commit comments