Skip to content

Invalidate unresolved symlink info after deletion in the RAFS#29495

Open
fmeum wants to merge 4 commits into
bazelbuild:masterfrom
fmeum:29480-fix-symlink-deletion
Open

Invalidate unresolved symlink info after deletion in the RAFS#29495
fmeum wants to merge 4 commits into
bazelbuild:masterfrom
fmeum:29480-fix-symlink-deletion

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented May 8, 2026

Description

When a path is deleted while using the RemoteActionFileSystem, cached symlink resolutions have to be invalidated for the original path and all intermediate resolved paths, not just the final resolved path.

Motivation

Fixes #29480

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

@fmeum fmeum changed the title Invalidate cached symlink info after deletion in the RAFS Invalidate unresolved symlink info after deletion in the RAFS May 12, 2026
@fmeum fmeum force-pushed the 29480-fix-symlink-deletion branch from 051c03e to 53daf82 Compare May 18, 2026 09:47
@fmeum fmeum marked this pull request as ready for review May 22, 2026 08:17
@fmeum fmeum requested a review from a team as a code owner May 22, 2026 08:17
@fmeum fmeum requested a review from tjgq May 22, 2026 08:17
@fmeum
Copy link
Copy Markdown
Collaborator Author

fmeum commented May 22, 2026

@bazel-io fork 9.1.1

@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 May 22, 2026
@fmeum
Copy link
Copy Markdown
Collaborator Author

fmeum commented May 22, 2026

@bazel-io fork 8.8.0

Copy link
Copy Markdown
Contributor

@tjgq tjgq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring this one out. Is it possible to also add a unit test in PathCanonicalizerTest?

@fmeum fmeum requested a review from tjgq May 23, 2026 18:43
@tjgq tjgq added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Symlink outputs cause runfiles manifest failures when same name package is created

2 participants