Skip to content

[8.8.0] Compare paths as fragments in AbstractActionInputPrefetcher - #30690

Open
fmeum wants to merge 1 commit into
bazelbuild:release-8.8.0from
fmeum:cp-8.8.0-27627
Open

[8.8.0] Compare paths as fragments in AbstractActionInputPrefetcher#30690
fmeum wants to merge 1 commit into
bazelbuild:release-8.8.0from
fmeum:cp-8.8.0-27627

Conversation

@fmeum

@fmeum fmeum commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

This is required because execRoot might be located on an action file system overlaying the host file system where downloads are written (see the changes in b8589c3 for context).

Without this fix, a directory that is temporarily made writable during the materialization of a tree artifact isn't recognized as living under the exec root, so it is silently left with its output permissions and files can't be moved into place. This has been observed as a tree artifact whose top-level directory was writable while a subdirectory was left read-only, surfacing as a spurious missing CAS blob error since all materialization errors are converted into that.

PiperOrigin-RevId: 830480221
Change-Id: I217b81a81da80f2050c4ec9082ef5f18cb9a0bc9
(cherry picked from commit 1e9d843)

8.8.0 adaptation: on this branch setWritable additionally short-circuits on external repository paths under the output base and obtains the exec root lazily via execRoot(), so the fragment comparison is applied to the existing execRoot() check rather than replacing the condition wholesale.

This supersedes #30680, which applies the original patch verbatim and thereby drops the external repository check as well as referencing execRoot as a field, which doesn't exist on this branch.

bazelbuild#27627)

This is required because `execRoot` might be located on an action file
system overlaying the host file system where downloads are written (see
the changes in
bazelbuild@b8589c3
for context).

PiperOrigin-RevId: 830480221
Change-Id: I217b81a81da80f2050c4ec9082ef5f18cb9a0bc9
(cherry picked from commit 1e9d843)
@fmeum
fmeum marked this pull request as ready for review August 12, 2026 14:32
@fmeum
fmeum requested a review from a team as a code owner August 12, 2026 14:32
@github-actions github-actions Bot added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Aug 12, 2026
@iancha1992
iancha1992 enabled auto-merge August 12, 2026 16:23
@iancha1992 iancha1992 added this to the 8.8.0 release blockers milestone Aug 12, 2026
@iancha1992

Copy link
Copy Markdown
Member

@fmeum Is the failure related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants