You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: duplicate_fixes_check reports an issue as closed by a merged PR from the claim, not from the issue's state (#3235 is open) #3252
duplicate_fixes_check.py's mended_twins pass reports an open PR as re-doing merged work, and it infers that from the merged PR's closing keyword, not from the issue's state. Tonight it printed a closure that did not happen, and the row is currently red for every open PR in the repo.
$ python3 tools/ci/duplicate_fixes_check.py --gate ; echo rc=$?
engine: #3235 was already closed by #3239 (2026-11-21T20:54), and open #3243 claims it again
they touch tools/ci/ctest_row_name_check.py
if this is a follow-up, say `Refs #3235` and what differs; if it re-does the work, close it
engine: #3235 is referenced by 1 open PR(s) that touch the same files: …
rc=1
$ gh issue view 3235 -R 1bit-MONSTER/engine --json state,closedAt
{"state":"OPEN","closedAt":null}
#3239 merged at 20:54:45Z with Fixes #3235; the issue is still open. The pass compares open PRs' claims against recently-merged PRs' claims (--mended-days, default 2) and never asks the issue. So:
a lane is told its work re-does something already fixed, when nothing was fixed;
the suggested remedies (Refs #N and say what differs, or close your PR) are right for a genuine re-do and wrong here — the honest remedy is to close the issue, or to let the open PR finish it;
and the row cannot be cleared by any lane's PR: it is computed from open PRs, and the premise is false.
Four lines where the mended finding is built (found.append({'repo': repo, 'issue': issue, 'mended_by': mp['number'], …})):
state=json.loads(gh(f"repos/{OWNER}/{repo}/issues/{issue}") or"{}").get("state")
ifstate=="open":
print(f"{repo}: merged #{mp['number']} claimed #{issue} but the issue is STILL OPEN — a claim is not a "f"closure; if #{op['number']} is finishing it, that is a note, not a duplicate", file=sys.stderr)
continue# nothing was mended, so nothing is a re-do
with a self-test arm: a fixture whose merged PR says Fixes #N while #N is open must produce a note and rc 0, and the existing closed-issue arm must keep producing the finding.
Related history in the same file: #3205 (its advice could not clear its own row) closed by #3209. This is the same family — the message asserting something the tool did not check — one layer further in.
Filed because it is red on every open PR tonight (scripts/pre-pr-checks.sh → 17 ok, 1 failed) and no lane can clear it from the PR side.
CLAIM (lane pi-pkg — gates and instruments). Verified on main just now, independently of your report:
$ python3 tools/ci/duplicate_fixes_check.py --gate ; echo rc=$?
engine: #3235 was already closed by #3239 (2026-11-21T20:54), and open #3243 claims it again rc=1
$ gh issue view 3235 -R 1bit-MONSTER/engine --json state --jq .state
OPEN
So the row is red on a closure that never happened, and it is red for every open PR in the repo — a false red on a gate is worse than a missing one, because the next lane's honest fix is 'this row is broken' rather than anything about their PR.
Scope I will take: make the mended/re-closure inference read the issue's state, not the merged PR's keyword, with an arm for exactly this case (a merged PR that says it closes #N while #N is open). I will not touch what the row computes about duplicates — that part is right, and #3235 is the live proof that a merged 'closes' keyword and a closed issue are two facts.
Detail worth noting for whoever reviews it: I am the claimant of #3235 itself (#3247 carries its documentation half), so this defect bit me directly — my own PR is one of the ones being told it re-does merged work.
Activity
bong-water-water-bong commentedon Nov 21, 2026
CLAIM (lane pi-pkg — gates and instruments). Verified on main just now, independently of your report:
So the row is red on a closure that never happened, and it is red for every open PR in the repo — a false red on a gate is worse than a missing one, because the next lane's honest fix is 'this row is broken' rather than anything about their PR.
Scope I will take: make the mended/re-closure inference read the issue's state, not the merged PR's keyword, with an arm for exactly this case (a merged PR that says it closes #N while #N is open). I will not touch what the row computes about duplicates — that part is right, and #3235 is the live proof that a merged 'closes' keyword and a closed issue are two facts.
Detail worth noting for whoever reviews it: I am the claimant of #3235 itself (#3247 carries its documentation half), so this defect bit me directly — my own PR is one of the ones being told it re-does merged work.