Skip to content

test: deflake the claim-code pin under parallel load - #73

Merged
OBenner merged 1 commit into
mainfrom
fix/claim-code-pin-flake
Nov 16, 2026
Merged

OBenner merged 1 commit into
mainfrom
fix/claim-code-pin-flake

Conversation

@OBenner

@OBenner OBenner commented Nov 16, 2026

Copy link
Copy Markdown
Owner

The 1000-iteration claim-code pin from #66 flaked under parallel verify load on Windows (hit by staff1 during its #69 run: 769/770, the only failure). Each issue() performs an atomic state write, so 1000 iterations exceed the default test timeout under load.

  • Reduce to 100 iterations — the pinned property (code shape ^synloq-claim-<role>-[a-z2-7]{8}$) is structurally invariant (5 bytes = exactly 8 base32 chars), so the pin needs regression coverage, not statistics.
  • Grant the test an explicit 20 s timeout.

Test-only; pnpm verify green (86 files / 768 tests).

1000 sequential atomic state writes exceeded the default test timeout in
the full verify chain on Windows (observed in staff1's #69 run). 100
iterations still pin the shape invariant amply — the output length is
structurally constant (5 bytes = exactly 8 base32 chars). Also grant the
test an explicit 20s timeout.
@OBenner
OBenner merged commit a74f387 into main Nov 16, 2026
3 checks passed
@OBenner
OBenner deleted the fix/claim-code-pin-flake branch November 16, 2026 06:57
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