Skip to content

A moved head's test fixture clears its breaking flag at the move - #29

Merged
jeremy merged 1 commit into
mainfrom
replay-review-followups
Nov 27, 2026
Merged

jeremy merged 1 commit into
mainfrom
replay-review-followups

Conversation

@jeremy

@jeremy jeremy commented Nov 27, 2026

Copy link
Copy Markdown
Member

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 movesHead kept 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.

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.
@jeremy
jeremy marked this pull request as ready for review November 27, 2026 08:29
Copilot AI balanced review requested due to automatic review settings November 27, 2026 08:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.breaks when 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 run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
eval/​live_replay_test.go Corrects movesHead flag timing and clarifies its comment.

Review effort: Balanced

@jeremy
jeremy merged commit 3f0cd3c into main Nov 27, 2026
5 checks passed
@jeremy
jeremy deleted the replay-review-followups branch November 27, 2026 08:49
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)
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.

2 participants