Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented May 23, 2025

We have had user's report spurious build failures due to the disk cache GC collecting files under the output base when output base and disk cache were set up at the same path.

We have had user's report spurious build failures due to the disk cache GC collecting files under the output base when output base and disk cache were set up at the same path.
@fmeum fmeum requested a review from a team as a code owner May 23, 2025 09:25
@fmeum fmeum requested review from Wyverald and tjgq and removed request for a team May 23, 2025 09:25
@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 23, 2025
@fmeum
Copy link
Collaborator Author

fmeum commented May 23, 2025

We might need something more elaborate here as repo contents and disk cache probably also shouldn't share a directory. Maybe BlazeModules should report their managed directories?

Copy link
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.

The error messages don't match the condition we're testing for.

To be clear: a cache inside the output base should be ok (though perhaps ill-advised), only the output base inside a cache is a problem?

Separately - should we canonicalize paths so that the check isn't defeated by a symlink?

@fmeum fmeum requested a review from tjgq May 26, 2025 16:16
@fmeum fmeum marked this pull request as draft May 26, 2025 16:27
@fmeum
Copy link
Collaborator Author

fmeum commented May 26, 2025

Canonicalizing paths requires more care as symlinks may not exist, will mark as ready for review again when that is fixed.

@fmeum fmeum force-pushed the managed-directories branch from 58d31c5 to 5a8197e Compare May 26, 2025 17:07
@fmeum fmeum marked this pull request as ready for review May 27, 2025 08:05
@fmeum
Copy link
Collaborator Author

fmeum commented May 27, 2025

CI is green now. I also added comments on why intermediate symlinks don't need to be checked.

@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 Jul 16, 2025
@fmeum
Copy link
Collaborator Author

fmeum commented Jul 16, 2025

@bazel-io fork 8.4.0

@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jul 21, 2025
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Jul 21, 2025
We have had user's report spurious build failures due to the disk cache GC collecting files under the output base when output base and disk cache were set up at the same path.

Closes bazelbuild#26138.

PiperOrigin-RevId: 785412502
Change-Id: I44865ce44782a21a4cc15b61f0e0c9d4f13ea194
fmeum added a commit to fmeum/bazel that referenced this pull request Aug 7, 2025
We have had user's report spurious build failures due to the disk cache GC collecting files under the output base when output base and disk cache were set up at the same path.

Closes bazelbuild#26138.

PiperOrigin-RevId: 785412502
Change-Id: I44865ce44782a21a4cc15b61f0e0c9d4f13ea194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants