Skip to content

Commit

Permalink
[6.2.0] Correctly handle templated tree artifacts in the prefetcher. (b…
Browse files Browse the repository at this point in the history
…azelbuild#17735)

Due to the existence of templated tree artifacts (tree artifacts where each file is produced by a separate action) and nested artifacts (artifacts whose output path is a descendant 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.

PiperOrigin-RevId: 513205572
Change-Id: I827c4643643f63c9425e63bdf9177805c5f0f409
  • Loading branch information
tjgq authored Mar 11, 2023
1 parent 60749d5 commit 3526c72
Show file tree
Hide file tree
Showing 4 changed files with 375 additions and 266 deletions.
Loading

0 comments on commit 3526c72

Please sign in to comment.