Skip to content

Commit

Permalink
Correctly handle partial trees and nested artifacts in the prefetcher.
Browse files Browse the repository at this point in the history
Due to the existence of partial trees (tree artifacts whose files are not all
produced by the same action) and nested artifacts (artifacts whose output path
is a strict prefix of another artifact's), the prefetcher must not assume every
tree artifact is fetched as a whole. In addition, concurrent actions calling
the prefetcher might write to the same directory in the output tree, so they
must synchronize when making the directory temporarily writable.

Fixes bazelbuild#16333.
  • Loading branch information
tjgq committed Feb 27, 2023
1 parent 570e25f commit 6b4aeaa
Show file tree
Hide file tree
Showing 3 changed files with 294 additions and 276 deletions.
Loading

0 comments on commit 6b4aeaa

Please sign in to comment.