Skip to content

Avoid repeating R2C2 repository materialization - #31216

Open
dzbarsky wants to merge 1 commit into
bazelbuild:masterfrom
dzbarsky:codex/r2c2-materialization-upstream
Open

dzbarsky wants to merge 1 commit into
bazelbuild:masterfrom
dzbarsky:codex/r2c2-materialization-upstream

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Recheck repository marker presence inside TaskDeduplicator's per-key supplier: another caller may finish materialization after the initial check but before task submission. This prevents a duplicate operation from writing a missing marker and crashing; callers joining an active operation still receive its result.

RELNOTES: None

A caller can observe the marker before a prior materialization finishes
but submit work after TaskDeduplicator forgets the completed operation.
Recheck marker presence inside the per-key supplier to avoid submitting
a second operation that writes a missing marker.

A deterministic regression reproduces the null pointer on the old code
and passes with the recheck. Joined-task failures still propagate.
@dzbarsky
dzbarsky requested a review from a team as a code owner September 19, 2026 19:42
@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 Sep 19, 2026
@fmeum
fmeum requested a review from tjgq September 19, 2026 19:51
@fmeum

fmeum commented Sep 19, 2026

Copy link
Copy Markdown
Collaborator

@bazel-io fork 9.3.0

@github-actions github-actions Bot added the community-reviewed Reviewed by a trusted community contributor label Sep 19, 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 community-reviewed Reviewed by a trusted community contributor 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