Skip to content

[8.7.0] Deduplicate identical repo contents cache entries during GC #29071

Merged
iancha1992 merged 1 commit into
bazelbuild:release-8.7.0from
fmeum:rrcc-8.7.0-05
Apr 1, 2026
Merged

[8.7.0] Deduplicate identical repo contents cache entries during GC #29071
iancha1992 merged 1 commit into
bazelbuild:release-8.7.0from
fmeum:rrcc-8.7.0-05

Conversation

@fmeum

@fmeum fmeum commented Mar 24, 2026

Copy link
Copy Markdown
Collaborator

Such entries are created when multiple Bazel servers fetch the same repo at the same time and waste space.

This has been tested manually by running many concurrent Bazel commands with different output bases. After the specified idle delay, only a single repo remained for each entry and subsequent runs with all these output bases succeeded and shared that one entry.

Closes #26682.

PiperOrigin-RevId: 797358986
Change-Id: Ib6dc5f718a8e8e1e76b1e2804ad6ada765baee1e
(cherry picked from commit 9bb6c19)

Such entries are created when multiple Bazel servers fetch the same repo at the same time and waste space.

This has been tested manually by running many concurrent Bazel commands with different output bases. After the specified idle delay, only a single repo remained for each entry and subsequent runs with all these output bases succeeded and shared that one entry.

Closes bazelbuild#26682.

PiperOrigin-RevId: 797358986
Change-Id: Ib6dc5f718a8e8e1e76b1e2804ad6ada765baee1e
(cherry picked from commit 9bb6c19)
@fmeum fmeum changed the title [8.7.0] 05/23: Deduplicate identical repo contents cache entries during GC 8.7.0] Deduplicate identical repo contents cache entries during GC Mar 27, 2026
@fmeum fmeum changed the title 8.7.0] Deduplicate identical repo contents cache entries during GC [8.7.0] Deduplicate identical repo contents cache entries during GC Mar 27, 2026
@fmeum fmeum marked this pull request as ready for review March 27, 2026 14:50
@fmeum fmeum requested a review from a team as a code owner March 27, 2026 14:50
@fmeum fmeum requested a review from Wyverald March 27, 2026 14:51
@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 Mar 27, 2026
@iancha1992 iancha1992 added this to the 8.7.0 release blockers milestone Mar 27, 2026
@iancha1992 iancha1992 enabled auto-merge March 27, 2026 18:56
@iancha1992 iancha1992 added this pull request to the merge queue Apr 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 1, 2026
@iancha1992 iancha1992 added this pull request to the merge queue Apr 1, 2026
Merged via the queue into bazelbuild:release-8.7.0 with commit 6d0a30a Apr 1, 2026
47 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Apr 1, 2026
@fmeum fmeum deleted the rrcc-8.7.0-05 branch April 3, 2026 20:06
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants