Repository navigation
The daily row counts passing candidates thrown away unlanded - #13
Merged
Merged
Conversation
A candidate that passed and is deleted before any plan lands it is a whole build that proved a tree and landed nothing. The live row counts them once each, with how many had a member whose head moved and how many a member that left the queue, and the daily row trips at more than 3.
The limit of three a day was set for hey-native-apps. The table line stays in every queue's row.
There was a problem hiding this comment.
🟢 Approved
No active review issues remain for the live discarded-candidate reporting change.
No open issues 🎉
What changed in this PR
Adds live reporting for passing merge-queue candidates deleted without landing, replacing the manual count in the daily row while leaving replay behavior unchanged.
Changes:
- Counts each discarded passing candidate once, with separate head-moved and member-left counts.
- Displays the metric for every queue and adds a tripwire above three for
hey-native-apps. - Adds tests for counting rules, window boundaries, and repository-specific tripwire behavior.
[!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_window_test.go | Tests discarded-candidate counting and exclusions. |
| eval/live_metrics.go | Computes discarded-candidate totals and reason counts. |
| eval/daily-row.jq | Renders the counts and repository-specific tripwire. |
| eval/daily_row_test.go | Tests daily-row output and tripwire thresholds. |
Review effort: Balanced
This was referenced Nov 25, 2026
* train/main: The replay draws no build time from a verdict first read after an outage (#10)
jeremy
added a commit
that referenced
this pull request
Nov 26, 2026
* train/main: The daily row counts passing candidates thrown away unlanded (#13)
jeremy
added a commit
that referenced
this pull request
Nov 26, 2026
* commit 'a8862e5f58004e2cb44f6c609ae30ce9ea74fe23': The charter's cap on wrong ejections holds to about a fifth (#14) The daily row also gives the four hours before its window (draft) (#18) The daily row holds no limit on builds per landing (draft) (#17) The daily row counts passing candidates thrown away unlanded (#13) The replay draws no build time from a verdict first read after an outage (#10)
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.
Context
A candidate that passes and is then deleted without landing is a whole build that landed nothing. It happens when a member's head moves while the candidate builds, or a member leaves the queue. The limit is three a day in hey-native-apps, and until now the count came from a scratch script read by hand each night.
Change
The live row counts them:
passing_candidates_thrown_away, withthrown_away_head_movedandthrown_away_member_leftbeside it. A candidate counts once, when a tick in the window deletes it while it has passed with members on it and no recorded plan lands its commit. A candidate can have both reasons, or neither (the trunk moved under it).The daily row gets one table line in every queue's row, and a tripwire sentence in hey-native-apps' row when the count is over three.
Nothing in the replay changes. The replay check over hey-native-apps' recorded windows (24 lines) prints the same as main's, and with
-likethe simulated block andover_liveare byte-identical to main's on 24 Nov.The recorded days
hey-native-apps, 01:17Z to 21:17Z (16 Nov from 08:17Z): thrown away / head moved / member left.
These match the scratch script on all nine days. hey2 reads 0 on 22, 23 and 24 Nov.
None of the 30 counted commits is in main's history: all 30 are in the repository and none is an ancestor of main as of 00:02Z on 25 Nov. For 6 of the 30, a land action names some of the candidate's member merges, each time landing a different commit that was itself a passing candidate in that tick. The counted build still landed nothing.
The real row path, run from this branch for 24 Nov with nothing posted, exits 0 for both queues: hey-native-apps reads "2: 0 with a member's head moved, 2 with a member gone from the queue" and its tripwire line is unchanged; hey2 reads "none".
Every other field of the row is unchanged from main on three rows compared whole (hey-native-apps 18 and 24 Nov, hey2 24 Nov).
Tests
TestLiveCountsPassingCandidatesThrownAwayUnlanded: twelve cases, each shown to fail with its guard removed: head moved, member left, both, deleted twice, landed then deleted, landed after the window, failed, pending, empty chain, a check rather than a candidate, deleted before the window, deleted at the window's end.TestDailyRowTripsOverThreePassingCandidatesThrownAwayInHeyNativeApps: no tripwire at 3, one at 4, none at 4 in another repository.Not done
rows.tsv: comparable counts have none, and a changed header sets the old file aside.