test: fix flaky TestCommandConcurrencyCapAndFailureCancelSiblings #332

Closed
opened 2026-07-14 09:04:04 +02:00 by dries · 0 comments
Owner

Parent

#311, follows #314

What to build

internal/workflows test TestCommandConcurrencyCapAndFailureCancelSiblings is timing-flaky: it failed once in a pre-commit hook and passed on retry/in isolation. Make it deterministic so it cannot intermittently fail CI.

Acceptance criteria

  • The test no longer depends on wall-clock timing/sleeps for ordering; it synchronizes on observable state.
  • The concurrency-cap and sibling-cancellation behavior remains fully asserted.
  • The test passes reliably under go test -race -count=20 for the package.
  • No production behavior change unless a real race is found; if so, fix it and note it.

Blocked by

## Parent #311, follows #314 ## What to build `internal/workflows` test `TestCommandConcurrencyCapAndFailureCancelSiblings` is timing-flaky: it failed once in a pre-commit hook and passed on retry/in isolation. Make it deterministic so it cannot intermittently fail CI. ## Acceptance criteria - [ ] The test no longer depends on wall-clock timing/sleeps for ordering; it synchronizes on observable state. - [ ] The concurrency-cap and sibling-cancellation behavior remains fully asserted. - [ ] The test passes reliably under `go test -race -count=20` for the package. - [ ] No production behavior change unless a real race is found; if so, fix it and note it. ## Blocked by - #314
dries closed this issue 2026-07-16 00:56:10 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dries/ocman#332
No description provided.