Repository navigation
test(#117): idle-broadcast cooldown test waits on evidence, appends whichever loop wins - #119
Merged
Merged
Conversation
…pends whichever loop wins Leg 1: setup b's DUP twin collapsed on a b-win, so the store assertion was red on correct code whenever the harness queued b's subscriber first. Both canned replies are now genuinely new - the pinned invariant is the call count, not the content (dedup has its own gate tests). Leg 2: waitFor(calls>0) unblocks at call initiation and a naked sleep(150) had to cover parse -> runWriteGate (locked append) -> evidence; on loaded Windows runners the append overran. Evidence is recorded after the gate returns - the compaction twin already uses this completion signal. Red leg re-verified: per-setup cooldown (pre-#108) -> Expected 1, Received 2.
|
🎉 This PR is included in version 0.14.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The idle-broadcast cooldown test had two independent race legs on slow/busy runners, both filed in #117. It reddened Windows CI on #114 (run 40357282402); on macOS we also saw a lone vanishing red under full-suite load consistent with leg 1.
Leg 1 — winner indeterminacy. The harness bus queues each
event.subscribeindependently, so whichever loop reaches the shared cooldown first pays the model call. Setupb's canned reply wasDUP_CONTENT, which the write gate collapses without appending — ab-win left the store at 1 row and reddened the assertion on correct code.Leg 2 — fixed-sleep completion.
waitFor(calls > 0)unblocks at call initiation; a nakedsleep(150)then had to cover the whole real-fs chain (parse →runWriteGateincl. locked append → evidence record).Fix (both legs):
FRESH_CONTENT/FRESH_CONTENT_B) — the store ends at seed + winner's row whichever loop wins. The pinned invariant is the CALL COUNT; the dedup leg belongs to the gate's own tests.auto_capture_*), whichrecordwrites afterrunWriteGatereturns — the same pattern the compaction twin already uses. Thesleep(150)survives only as the no-second-fire window, after the first capture is done.Verified:
Expected: 1, Received: 2(both setups pay).tscclean, biome lint clean.test:type — no release bump.Fixes #117.