Skip to content

[9.1.0] Materialize RRCC symlinks via prefetching (https://github.com/bazelbuild/bazel/pull/28683) - #29197

Merged
iancha1992 merged 1 commit into
bazelbuild:release-9.1.0from
bazel-io:cp28683-9.1.0-083546
Apr 8, 2026

Conversation

@bazel-io

@bazel-io bazel-io commented Apr 2, 2026

Copy link
Copy Markdown
Member

Description

When using the remote repo contents cache, repo materialization now uses the same code path as local action input prefetching for symlinks. This ensures that each symlink is only materialized once and that there are no races in case symlinking is not atomic (on Windows with default settings).

Along the way, remove unreachable code from UploadManifest.

Motivation

Fixes #28575

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

Closes #28683.

PiperOrigin-RevId: 893359962
Change-Id: If0eb64e41858a4b9298c2609d83160b0ecbfd451

Commit 90eb56e

@bazel-io
bazel-io requested a review from a team as a code owner April 2, 2026 08:36
@bazel-io bazel-io added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Apr 2, 2026
@bazel-io
bazel-io requested a review from Wyverald April 2, 2026 08:36
@Wyverald

Wyverald commented Apr 2, 2026

Copy link
Copy Markdown
Member

This requires #28962 to be resolved first

@iancha1992
iancha1992 requested a review from meteorcloudy April 2, 2026 21:11
@iancha1992
iancha1992 enabled auto-merge April 2, 2026 21:11
@fmeum

fmeum commented Apr 7, 2026

Copy link
Copy Markdown
Collaborator

@iancha1992 Could you rebase this PR now that ff56bc1 has been merged?

### Description
When using the remote repo contents cache, repo materialization now uses the same code path as local action input prefetching for symlinks. This ensures that each symlink is only materialized once and that there are no races in case symlinking is not atomic (on Windows with default settings).

Along the way, remove unreachable code from `UploadManifest`.

### Motivation
Fixes bazelbuild#28575

### Build API Changes

No

### Checklist

- [x] I have added tests for the new use cases (if any).
- [ ] I have updated the documentation (if applicable).

### Release Notes

RELNOTES: None

Closes bazelbuild#28683.

PiperOrigin-RevId: 893359962
Change-Id: If0eb64e41858a4b9298c2609d83160b0ecbfd451
@iancha1992
iancha1992 force-pushed the cp28683-9.1.0-083546 branch from fd483d0 to 60b267f Compare April 7, 2026 19:11
@iancha1992

Copy link
Copy Markdown
Contributor

@Wyverald @meteorcloudy @fmeum Ready now.

@iancha1992
iancha1992 added this pull request to the merge queue Apr 8, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit 1c8efb3 Apr 8, 2026
1 check passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Apr 8, 2026
modularbot pushed a commit to modular/modular that referenced this pull request Apr 27, 2026
This pulls in bazelbuild/bazel#29197, which
fixes an "error replanting symlinks" error we see fairly frequently in
CI.

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

Labels

team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants