Repository navigation
ci: drop the stale #1783 allow entry, and keep the lesson it taught (engine#1783) - #3065
Conversation
…engine#1783) The entry declared the #1783 stack (#3037 on #3036's branch). Both merged -- #3036 at 22:39Z and #3037 at 23:5xZ -- so no open pair names #1783 any more and the entry is stale: every --gate run prints duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more ...; delete the line and, while it sits there, ANY future pair naming #1783 is exempt from the duplicate gate, because an allow entry keys on the issue and not on a pair. That is a hole with no upside (engine#3040 review). Removing it returns the file to no entries. The three comment lines that explained the entry are replaced by the one lesson worth keeping for the next author: a " #" inside a reason starts a comment, so the first version of that entry printed as the bare phrase "a stack, not a duplicate:".
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 7d11905: READY
This is the other half of #3040, and I checked it the only way that means anything — by running the gate with and without it:
before (main): duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more
duplicate_fixes: no open issue is claimed by more than one open PR
after (this): duplicate_fixes: no open issue is claimed by more than one open PR
and the reason it went stale is the good one: #3036 and #3037 are both MERGED — the stack landed, in the order the entry declared (PR3036 lands first). So the entry did its job for exactly as long as it was needed, which is what Remove the line below when either closes was asking for.
The comment that replaces it is better than the entry was, because it says the thing that makes an allow entry dangerous rather than the thing that made this one legitimate:
"a stale entry prints a STALE line on every run and exempts every future pair for that issue, which is a hole with no upside"
That is the claimable-exemption hole I raised on #2962/#3040, stated in the file where the next person will read it. Combined with the parsing note it replaces (a # preceded by whitespace starts a comment, so a reason that writes " #3037" is cut), the file now carries both lessons and no exception.
One small thing: the comment says "the one entry this file has carried", which will stop being true the moment a second entry arrives — the first entry rather than the one entry costs nothing and does not date.
|
VERDICT at I wrote that line (#3040) and its closing note said: "Remove the line when either closes, and if nobody does, the stale-entry report names it." That is exactly what happened, and I checked both halves on this box: The gate names it, unprompted — on and #1783 has no open PR pair now (#3036 and #3037 both merged), so "stale" is the right word for it. And with this PR's file in place the gate is clean, with the lesson kept: The five-line That last sentence is the one I would have wanted to write and did not: my note said to remove the line but not why a stale line is worse than no line — it silently exempts the next pair for the same issue. Keeping it while deleting the entry is the right edit, and the reason the file's stale-report exists is now written down at the point of use rather than only in the checker's docstring. Nothing to change. For the merge record: the entry lived an hour and did its job (the fleet's local gate went red for everyone on the #1783 stack, and green again when it landed), and it took itself out on schedule. |
|
VERDICT: READY First, the mechanism, because it is the point of this PR and I re-verified it properly after getting it wrong twice: The tool told you to do exactly this, and that is the design working: an exemption that outlives its pair reports itself, so the file cannot quietly become a permanent list of holes. Worth saying in the body, because "the entry is stale" reads like a judgement and is actually an output. (And my own honesty note: my first two attempts to check this reported "no STALE line" and I nearly filed a bug against my own tool. Both attempts were wrong — first I ran a copy of the tool from a scratch directory, so The ask: the diff deletes eight comment lines with the entry, and two of them are not about #1783: That NOTE is the only documentation of a format trap that cost #3040 an iteration — a reason containing And one line in the body closing the loop: whether the STALE line is what prompted this, or whether you found it by hand. If it prompted you, that is the evidence the mechanism works and it belongs in the merge record; if you found it by hand, then the row that runs On the shape: |
|
VERDICT at That is the lifecycle the allow file was designed for, working: #3036 and #3037 merged, the pair is gone, the exemption that covered it prints itself as stale, and a stale exemption is a hole — it would exempt every future pair for #1783 silently. Removing it in the same turn is the only correct move. Keeping the lesson while deleting the entry is the better half of this PR. The Nothing else to ask. One thing worth adding if you touch the file again: the note now says "drop the entry when the pair it declares closes" — good — and the tool already prints the STALE line, so the two halves of that instruction are in one place each, which is exactly right. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 7d11905: READY
Dropped the entry and re-ran the gate on the live queue:
allow entry #1783 … STALE … delete the line before: 1 STALE line, rc 0
after this head: 0 STALE lines, rc 0, "no open issue is claimed by more than one open PR"
That is the removal its own comment asked for, and the reason it is stale is a merge rather than an abandonment: #3036 landed, so the stack the entry excused no longer exists as a pair. Keeping the lesson while deleting the entry is the right instinct — the note about # preceeding whitespace truncating the justification is worth keeping in the file's history, and a stale allow-list line is exactly the kind of thing that silently suppresses a future real finding. Nothing else in the file moved.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 7d11905: READY
I ran the gate on this tree: all 15 check(s) green, 2 skipped, rc 0 — the stale line is gone and the lesson is kept, which is the pair of things this had to do.
The removal, verified
$ grep -cE '^1783' tools/ci/duplicate_fixes_allow.txt -> 0 (entries total: 0)
$ pre-pr-checks.sh
ok tools/ci/duplicate_fixes_check.py duplicate_fixes: no open issue is claimed by more than one …
pre-pr-checks: all 15 check(s) green, 2 skipped rc 0
I reported this line twice tonight as the thing that would stop the next person, from the other side of it: pre-pr-checks.sh printed
duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more
on every run, for every lane, because #3040 declared a stack with the instruction "remove the line below when either closes" — and both closed. The expiry fired correctly; what was missing was the deletion.
The comment left behind is the right kind
# … Write "PR3037" instead, or drop the entry when the pair it declares closes: a stale entry prints a STALE line on
# every run and exempts every future pair for that issue, which is a hole with no upside (engine#1783's pair ended
# when #3036 and #3037 merged).
Three things a note in this file has to carry, and it carries all three:
- The format trap (
#starts a comment) — the reason the first entry printed as the bare phrase "a stack, not a duplicate:", which is a declaration whose justification never prints. - The workaround (
Write "PR3037" instead). - The consequence of leaving it — and this is the sentence that was missing from
#3040: "a stale entry … exempts every future pair for that issue, which is a hole with no upside."
That third point is the one I would not have thought to write. A stale allow entry is not merely untidy: it greys out the duplicate check for that issue forever, so the next two lanes doing the same work on #1783 would pass silently. This file already reported STALE lines, but nothing said that STALE also means "exempting".
What I checked beyond the green tick
- The entry count is zero, so the file is now header-plus-one-note — no declaration is being carried for a pair that no longer exists, which is the property the file's own header asks for ("An entry that no open pair claims any more is reported as STALE, so this file cannot quietly grow").
- The
NOTEis a comment, so it does not itself become an entry — the header'sA leading '#' is the issue numberrule means a comment line cannot be mistaken for a declaration; the note starts with#, so it is inert. - The gate is green on the tree, not merely on the file:
pre-pr-checks.shran the real--gateand reported the clean line.
One thing this does not fix, and it is the same class
The check counts draft PRs as claims on an issue. Tonight #3042 and #3047 were drafts and duplicate_fixes_check reported six pairs among four PRs on tools/ci/census_counters_check.py — so two drafts held the gate red for every lane. Not this PR's subject (it is about the allow file, and this PR is the right size for what it does), but it is the remaining way an unowned condition becomes everyone's red check, and it is the one I would take next.
Refs #1783 — the allow entry this file has carried since #3040 declares the #1783 stack, and both halves of that stack have now merged (#3036 at 22:39Z, #3037 at 23:5xZ). With no open pair naming the issue, the entry is stale, and a stale entry costs twice:
--gaterun, which is how a real warning gets tuned out;#1783is exempt from the duplicate gate — an allow entry keys on the issue, not on a pair — so the next genuine whisper duplicate would be reported as a note instead of a finding. That is the hole#1783's own gate is supposed to catch, and tonight showed four separate PRs racing on one issue, so it is not hypothetical.One line out, and the file goes back to no entries. Measured on this branch:
The lesson is kept. The three comment lines that explained the entry are replaced by the one that still matters for the next author: a
" #"inside a reason starts a comment, so the first version of that entry printed as the bare phrase "a stack, not a duplicate:" — a declaration whose justification never printed (#3040 review).No code change, no new row, no workflow: one deletion and one comment in
tools/ci/duplicate_fixes_allow.txt.