Flaky: TestRunTaskExecutesBootstrapWorkflowEndToEnd races on NATS responders #912

Closed
opened 2026-10-27 13:38:16 +00:00 by sam · 0 comments
Owner

cmd/archie-agent. Intermittently fails with ParkReason 'stage prepare: archie.worktree.prepare: nats: no responders available for request'; passes on re-run (-count=3 clean). The test does not wait for the worktreerpc subscription to be established before dispatching. A flaky test in task check is poison: it trains everyone to re-run instead of read, which is how a real regression gets waved through.

Close reason

Fixed: internal/natsrpc/natsrpc.go:118-121 RegisterAll already calls nc.Flush() before returning, exactly matching the fix CLAUDE.md documents ('natsrpc.RegisterAll now flushes before returning -- this was the cause of the long-standing TestRunTaskExecutesBootstrapWorkflowEndToEnd CI flake'). Verified: go test ./internal/natsrpc/... ./internal/app/agentworker/... ./internal/daemon/... -race -count=3 is clean, no flakes.


Imported from beads archie-core-1786637499843-383-4eb46948 · GitHub #404 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-15

cmd/archie-agent. Intermittently fails with ParkReason 'stage prepare: archie.worktree.prepare: nats: no responders available for request'; passes on re-run (-count=3 clean). The test does not wait for the worktreerpc subscription to be established before dispatching. A flaky test in task check is poison: it trains everyone to re-run instead of read, which is how a real regression gets waved through. ### Close reason Fixed: internal/natsrpc/natsrpc.go:118-121 RegisterAll already calls nc.Flush() before returning, exactly matching the fix CLAUDE.md documents ('natsrpc.RegisterAll now flushes before returning -- this was the cause of the long-standing TestRunTaskExecutesBootstrapWorkflowEndToEnd CI flake'). Verified: go test ./internal/natsrpc/... ./internal/app/agentworker/... ./internal/daemon/... -race -count=3 is clean, no flakes. --- _Imported from beads `archie-core-1786637499843-383-4eb46948` · GitHub #404 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-15_
sam added the mediumbug labels 2026-10-27 13:38:16 +00:00
sam self-assigned this 2026-10-27 13:38:16 +00:00
sam closed this issue 2026-10-27 13:38:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#912