Repository navigation
fix(test): prevent anchor preparation from losing startup IPC - #200074
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesDelays the preparation fixture’s duplicate-start observer until the anchor has accepted its initial startup message. Example: The POSIX preparation test sends generation held-lineage-preparation, then held-lineage-preparation-replacement.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR makes a focused fixture repair with no concrete introduced defect found; its planned native validation remains pending. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe test fixture launches the real POSIX group anchor, holds its lineage preparation, and observes startup, cancellation, process creation, and cleanup through IPC and inherited pipes. flowchart LR
A[Preparation test] --> B[Fixture preload]
A --> C[Anchor startup handler]
C --> D[Held lineage preparation]
D --> E[Duplicate observer]
E --> F[Fixture facts]
F --> A
Technical reviewBest possible solution: Keep the observer registration inside the existing preparation gate, preserving the production startup owner and every lifecycle assertion. Do we have a high-confidence way to reproduce the issue? Source confirms the eager preload listener precedes installation of the production startup handler; the reported Bun timeout was not rerun during this read-only review. Is this the best way to solve the issue? This is the smallest complete ordering repair: reuse the existing preparation gate to defer observation without changing startup handling, deadlines, acknowledgments, or cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3d172a634700. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +4. Total +4 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 16, 2026, 5:59 AM ET / 10:59 UTC. |
(cherry picked from commit 3baa364)
Related: #199959
What Problem This Solves
Fixes a POSIX anchor preparation test timeout when its preload starts Bun IPC delivery before the anchor installs its startup handler.
User Impact
Developers can validate the anchor lifecycle without the fixture losing its initial startup message. There is no production behavior change.
Why This Change Was Made
Register the existing duplicate-start observer inside the held lineage preparation, after the real handler accepts the initial start and before the fixture reports
lineage-loading. The test already waits for that fact before sending a duplicate. All ten lifecycle cases, assertions, waits, acknowledgments, and cleanup remain unchanged.This fixture repair is required to validate the Bun update in the related PR; it does not resolve that PR's retention or Doctor investigation.
Evidence
git diff --checkpassed.bbebe49faffb1adb286e53a977d078df91951a9d. This closes the scoped native proof gap identified by local review, while remaining projected owner-boundary proof rather than exact PR-head CI.Set up runnerfailures from Boat’s 2,400-start quota and a downstream CI-gate failure; those startup failures did not execute their checks.3baa3645653f47caeeef6bf034232d9116149b7fon November 16 at 11:34:45 UTC. The landed helper matches the reviewed fix. This successful fixture-head CI and projected Bun proof do not qualify a new head of the separate Bun-pin PR.