Repository navigation
A moved head's test fixture clears its breaking flag at the move - #29
Merged
Merged
Conversation
A build's guilt is fixed at its push, so the fixture no longer needs the old head to stay breaking for a tick after the author pushes. Left that way, a build pushed with the new head in that tick was held guilty. No test's values change.
There was a problem hiding this comment.
🟢 Approved
The replay test fixture timing and comment update has no active review issues.
No open issues 🎉
What changed in this PR
Corrects the replay test fixture so a replacement head is immediately treated as non-breaking, while existing builds retain their push-time guilt. Production evaluation code is unchanged.
Changes:
- Clears
p.breakswhen the head moves, rather than one tick later. - Updates the fixture comment to describe retained build guilt accurately.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or rungh pr ready --undo.
Click "Ready for review" or rungh pr readyto reengage.
| File | Description |
|---|---|
eval/live_replay_test.go |
Corrects movesHead flag timing and clarifies its comment. |
Review effort: Balanced
jeremy
added a commit
that referenced
this pull request
Nov 27, 2026
* train/main: A moved head's test fixture clears its breaking flag at the move (#29)
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.
One finding from the automatic review of the guilty-head change, which reported after that change had merged. Tests only: the eval's code does not change.
The fixture
movesHeadkept a pull request breaking for one tick after its author pushed a new head, so the old head's builds would fail while they stood. Since a build's guilt is fixed at its push, that tick is not needed, and a build pushed with the new head inside it was wrongly held guilty. The flag now clears at the move. No test's values change;go test ./eval/passes.Lands after tonight's rows and comparison have posted, so the build they are made from does not move.