Skip to content

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Jan 10, 2026

Since this behavior is quite surprising (it definitely was to the author), this change also improves the test coverage for repo contents cache deletion by asserting that non-BUILD files within it actually exist on disk rather than just exist from the point of Skyframe.

Also fix a crash observed while working on the test improvements.

@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Jan 10, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces several valuable improvements. It clarifies the invalidation logic for REPO_CONTENTS_CACHE_DIRS by making an implicit assumption explicit with a fail-fast exception. It also fixes a crash when an invalid repository rule is referenced by a target, and adds a new test to cover this scenario. Furthermore, the test coverage for the repository contents cache is significantly improved by verifying file contents, not just caching behavior. Finally, the update to the test infrastructure to provide real-time process output is a great quality-of-life improvement for developers. The changes are well-structured and look good.

Along the way, improve the test coverage for repo contents cache deletion by asserting that non-BUILD files within it actually exist on disk rather than just exist from the point of Skyframe.

Also fix a crash observed while working on the test improvements.
@fmeum fmeum added the soft-release-blocker Soft release blockers that are nice to have, but shouldn't block the release if it's the last one. label Jan 10, 2026
@fmeum
Copy link
Collaborator Author

fmeum commented Jan 10, 2026

@bazel-io fork 9.0.0

@fmeum fmeum requested a review from Wyverald January 10, 2026 19:09
@fmeum fmeum removed the soft-release-blocker Soft release blockers that are nice to have, but shouldn't block the release if it's the last one. label Jan 10, 2026
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-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants