Skip to content

[8.8.0] Fix repo contents cache FileValue staleness#29084

Merged
iancha1992 merged 3 commits into
bazelbuild:release-8.8.0from
fmeum:rrcc-8.7.0-18
Jun 23, 2026
Merged

[8.8.0] Fix repo contents cache FileValue staleness#29084
iancha1992 merged 3 commits into
bazelbuild:release-8.8.0from
fmeum:rrcc-8.7.0-18

Conversation

@fmeum

@fmeum fmeum commented Mar 24, 2026

Copy link
Copy Markdown
Collaborator

Ensures that files under repo contents cache entries are not reported as missing after the cache has been deleted while the Bazel server is running. See the long comment in RepositoryFetchFunction for why this happens and how it is fixed.

Fixes #26450

Closes #28147.

PiperOrigin-RevId: 853622194
Change-Id: Ifba953b72258030e0a640ac49947ac5c5fc7620a
(cherry picked from commit 7019132)

@iancha1992 iancha1992 added this to the 8.7.0 release blockers milestone Mar 27, 2026
@iancha1992 iancha1992 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 Apr 24, 2026
@iancha1992 iancha1992 changed the title [8.7.0] 18/23: Fix repo contents cache FileValue staleness [8.8.0] 18/23: Fix repo contents cache FileValue staleness May 7, 2026
@iancha1992 iancha1992 changed the base branch from release-8.7.0 to release-8.8.0 May 7, 2026 18:07
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

Thank you for contributing to the Bazel repository! This pull request has been marked as stale since it has not had any activity in the last 30 days. It will be closed in the next 30 days unless any other activity occurs. If you think this PR is still relevant and should stay open, please post any comment here and the PR will no longer be marked as stale.

@github-actions github-actions Bot added the stale Issues or PRs that are stale (no activity for 30 days) label Jun 7, 2026
fmeum added 3 commits June 23, 2026 14:00
`.bzl` files are typically small, but can form deep DAGs that require a large number of sequential cache requests to fetch lazily. By prefetching them (as well as `REPO.bazel` files) eagerly, the wall time of one particular fully cached cold `--nobuild` build of Bazel itself decreased by a factor of 5.

Along the way, make remote repo contents cache failures non-fatal, matching the behavior of the remote cache.

Closes bazelbuild#27910.

PiperOrigin-RevId: 853153815
Change-Id: I368a14a845a8d9fb543f473d8c0c2178a4590c78
(cherry picked from commit 361c420)
…ailures`

Makes it easier to debug issues with this experimental feature and also matches the behavior of remote execution/caching.

Work towards bazelbuild#27965

Closes bazelbuild#27970.

PiperOrigin-RevId: 853238791
Change-Id: Id46ccbb105d93fd17114fab13b086d0b46139fb4
(cherry picked from commit fc5f160)
Ensures that files under repo contents cache entries are not reported as missing after the cache has been deleted while the Bazel server is running. See the long comment in `RepositoryFetchFunction` for why this happens and how it is fixed.

Fixes bazelbuild#26450

Closes bazelbuild#28147.

PiperOrigin-RevId: 853622194
Change-Id: Ifba953b72258030e0a640ac49947ac5c5fc7620a
(cherry picked from commit 7019132)
@fmeum fmeum changed the title [8.8.0] 18/23: Fix repo contents cache FileValue staleness [8.8.0] Fix repo contents cache FileValue staleness Jun 23, 2026
@fmeum fmeum removed the stale Issues or PRs that are stale (no activity for 30 days) label Jun 23, 2026
@fmeum fmeum marked this pull request as ready for review June 23, 2026 14:13
@fmeum fmeum requested a review from a team as a code owner June 23, 2026 14:13
@github-actions github-actions Bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Rules-Server Issues for serverside rules included with Bazel team-Core Skyframe, bazel query, BEP, options parsing, bazelrc team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Jun 23, 2026
@fmeum fmeum requested a review from Wyverald June 23, 2026 14:14
@iancha1992 iancha1992 enabled auto-merge June 23, 2026 18:23
@iancha1992 iancha1992 added this pull request to the merge queue Jun 23, 2026
Merged via the queue into bazelbuild:release-8.8.0 with commit 97aebd8 Jun 23, 2026
47 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Jun 23, 2026
@fmeum fmeum deleted the rrcc-8.7.0-18 branch June 24, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

soft-release-blocker Soft release blockers that are nice to have, but shouldn't block the release if it's the last one. team-Core Skyframe, bazel query, BEP, options parsing, bazelrc team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. team-Remote-Exec Issues and PRs for the Execution (Remote) team team-Rules-Server Issues for serverside rules included with Bazel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants