Skip to content

Review binding test: release the writer after the judge waits - #318

Merged
professorpalmer merged 1 commit into
devfrom
fix/review-binding-wait-test
Nov 20, 2026
Merged

professorpalmer merged 1 commit into
devfrom
fix/review-binding-wait-test

Conversation

@professorpalmer

Copy link
Copy Markdown
Owner

The writer thread in test_the_judge_waits_for_a_live_writer released its claim after a fixed 0.4 s sleep. On a slow Windows runner the judge started after that, saw no live writer, and never recorded review_waits_for (KeyError on test-windows (2) of release PR #316, run 44776410658). The test passed on Windows in #314 and #315.

The writer now waits until the judge saves its wait record, then writes and releases. A main-thread assert checks that the judge waited.

Locally: 40 of 40 runs pass. Test-only change.

The writer thread released its claim after a fixed 0.4 s sleep. On a
slow Windows runner the judge started later than that, saw no live
writer, and never recorded review_waits_for (KeyError, test-windows
shard 2 of release PR #316). The writer now waits until the judge saves
its wait record, then writes and releases.
@professorpalmer
professorpalmer merged commit e263b60 into dev Nov 20, 2026
18 checks passed
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