Skip to content

session: wait for both parts to start before landing them in the park test - #1676

Merged
AbirAbbas merged 2 commits into
devfrom
fix/parts-admitted-race
Sep 30, 2026
Merged

AbirAbbas merged 2 commits into
devfrom
fix/parts-admitted-race

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

TestAParentHandedADivisionBeforeItStartedOpensOnTheReportsAndNotOnTheWait turned #1674's touched packages gate red on fc7feb003 with 1 parts were admitted, want the two that were proposed. It passed on re-run.

Cause. The test counts the parts its runner has seen right after the parent parks. A part reaches that runner on a goroutine of its own (TaskGraph.runFrontier), and the parent parks on the parts it has outstanding, not on their runners having started. So on a loaded box the park can come first.

Fix. Wait (bounded, waitFor) for both parts to start before landing them. Test-only; no product code changes.

Proof.

  • With a 300 ms sleep injected into the second part's runner, the old assert fails 3/3 with the exact CI message, and the new wait passes 3/3.
  • Unmodified, the test passes 30/30 at -cpu=1,2,8.

🤖 Generated with Claude Code

AbirAbbas and others added 2 commits September 29, 2026 15:51
… test

TestAParentHandedADivisionBeforeItStartedOpensOnTheReportsAndNotOnTheWait
counted the parts the test's runner had seen right after the parent parked.
A part reaches that runner on a goroutine of its own, and the parent parks
on the parts it has outstanding, not on their runners having started, so on
a loaded CI box the park came first and the test read one part (#1674's
gate on fc7feb0). It now waits for both.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@AbirAbbas
AbirAbbas merged commit f769be4 into dev Sep 30, 2026
4 checks passed
@AbirAbbas
AbirAbbas deleted the fix/parts-admitted-race branch September 30, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant