Skip to content

[8.8.0] Exclude repos with cross-repo symlinks from the remote repo contents cache - #30252

Merged
coeuvre merged 1 commit into
bazelbuild:release-8.8.0from
fmeum:rrcc-8.7.0-34
Jul 14, 2026
Merged

coeuvre merged 1 commit into
bazelbuild:release-8.8.0from
fmeum:rrcc-8.7.0-34

Conversation

@fmeum

@fmeum fmeum commented Jul 14, 2026 •

Copy link
Copy Markdown
Collaborator

This is meant as a temporary stopgap for the many symlink-related issues found with the remote repo contents cache and includes tests found while debugging #30149.

The new and old tests are parameterized in a test suite variable to keep the diff small and enable future experimentation with improved symlink support. As part of #30160, I'll investigate a more conceptual approach to symlink resolution that unifies the logic with that in RemoteActionFileSystem.

8.x adaptation: RepositoryUtils doesn't exist on 8.x, so the replantSymlinks changes are applied to RepositoryFunction#replantSymlinks, where this method lives on the release branch (see #30034). All other changes apply as is.

Fixes #30149.

RELNOTES: The remote repo contents cache no longer caches or restores repos with cross-repo symlinks, thus avoiding a large surface area for bugs. The effort to reenable this support is tracked by #30160.

Closes #30161.

PiperOrigin-RevId: 944468477
Change-Id: I4a435beaadb7c2df3e11acd910814736d2fb32c0
(cherry picked from commit e65fe06)

@fmeum
fmeum requested a review from a team as a code owner July 14, 2026 10:33
@github-actions github-actions Bot 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 Jul 14, 2026
…cache (bazelbuild#30161)

This is meant as a temporary stopgap for the many symlink-related issues found with the remote repo contents cache and includes tests found while debugging bazelbuild#30149.

The new and old tests are parameterized in a test suite variable to keep the diff small and enable future experimentation with improved symlink support. As part of bazelbuild#30160, I'll investigate a more conceptual approach to symlink resolution that unifies the logic with that in RemoteActionFileSystem.

Fixes bazelbuild#30149

No

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

RELNOTES: The remote repo contents cache no longer caches or restores repos with cross-repo symlinks, thus avoiding a large surface area for bugs. The effort to reenable this support is tracked by bazelbuild#30160.

Closes bazelbuild#30161.

PiperOrigin-RevId: 944468477
Change-Id: I4a435beaadb7c2df3e11acd910814736d2fb32c0
@coeuvre
coeuvre added this pull request to the merge queue Jul 14, 2026
Merged via the queue into bazelbuild:release-8.8.0 with commit ace9227 Jul 14, 2026
46 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jul 14, 2026
@fmeum
fmeum deleted the rrcc-8.7.0-34 branch July 14, 2026 14:13
@iancha1992 iancha1992 added this to the 8.8.0 release blockers milestone Jul 14, 2026
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.

3 participants