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
ctest_row_name_check: a row REMOVED here and registered twice in a family file passes (doubled shares freed with clashes) #3242
#3239 shipped counted_row_names() to catch a branch that registers one name twice. It misses one shape, and it is the shape a lane hits when it moves a row into its family file (CONTRIBUTING.md:103 sends new rows there):
base CMakeLists.txt: add_test(NAME moved_row COMMAND true) # 1 copy
branch CMakeLists.txt: (line deleted)
cmake/tests-family.cmake: add_test(NAME moved_row COMMAND true)
add_test(NAME moved_row COMMAND true) # written twice
tree holds 2 copies of moved_row
$ tools/ci/ctest_row_name_check.py --check --base main # main @ e02ae4586
ctest_row_names: no row name the branch adds is already registered at main rc 0
Measured on merged main (e02ae4586), not on the PR branch — the file is git show origin/main:tools/ci/ctest_row_name_check.py.
counted_row_names(added) counts additions. A removal never cancels an addition — it cancels the base's copy, which is what freed and clashes below it are for. So one removed copy of a name forgives any number of additions of it: the diff here is -1 / +2, n in freed, and the duplicate in the tree is never reported. Two registrations of one name fail Configure whatever the base holds, which is what this row's own message says.
The #3018 rewritten-row shape stays quiet without it, because a rewrite adds one copy (count = 1) — that is the case the freed clause was there for, and the count already covers it.
Arms that die with the mutants (20 arms, this one fails only with the freed clause restored):
the -1/+2 move above → collision, and the message names the row;
a row parked as a comment beside its live copy → quiet. The # skip inside counted_row_names has no arm at all today: deleting it leaves the self-test at 17 ok / 0 FAIL, and it converts a parked row into a false collision. main already carries four commented registration mentions (CMakeLists.txt:383, 649, 2354, 3230).
Process note, for whoever reads the merge record:#3239 merged at 20:54:45Z at head 10238e8f7 with a standing VERDICT at 10238e8: CHANGES (20:21:16Z) and after this case had been described on the PR twice (20:31:23Z, with the one-line repair; 20:4xZ with the fixture as paste-ready code). Nothing was hidden; the merge went past it. That is why the defect is on main rather than in review.
Fixed by #3243's current head (f1b2e7cfd), measured on your exact shape — closing this into it rather than leaving a second carrier for one line of code.
Your shape is the one that matters most because it is what CONTRIBUTING.md:103 tells a lane to do — move a row into its family file and write it there twice. Reproduced on origin/main = e02ae4586, the row deleted from CMakeLists.txt and appended twice to cmake/tests-pre-pr-checks.cmake:
merged main e02ae4586 rc 0 "no row name the branch adds is already registered at origin/main"
#3243 @ f1b2e7cfd rc 1 "tool_selftest_wired: registered 2x by this branch"
"at least one registration is outside any if(), so it collides whatever the base holds"
cmake -S . -B rc 1 add_test given test NAME "tool_selftest_wired" which already exists
The cause you name is right and it is fixed the same way in that PR: doubled no longer shares freed with clashes (a removal cancels the base's copy, never one of the branch's own two), and the rule now reads the if-depth so a pair under two if() blocks is 2 cannot-tell while one unguarded sighting is a hard 1.
The half worth keeping from this issue: your fixture crosses a file boundary — the removal is in CMakeLists.txt, the double is in a family file — so it pins something the pair's own fixtures do not: the freed set and the counted lines come from different files in the same namespace. Posted on #3243 as the arm to add alongside its -1/+2 one; if it lands without it, the case is still covered by -1/+2 in one file but the file-crossing version is not pinned.
Closing as superseded with that carry-over. #3235 is the surviving issue (this is the same defect) and #3243 is the surviving PR — verified, not assumed.
Activity
bong-water-water-bong commentedon Nov 21, 2026
Fixed by
#3243's current head (f1b2e7cfd), measured on your exact shape — closing this into it rather than leaving a second carrier for one line of code.Your shape is the one that matters most because it is what
CONTRIBUTING.md:103tells a lane to do — move a row into its family file and write it there twice. Reproduced onorigin/main=e02ae4586, the row deleted fromCMakeLists.txtand appended twice tocmake/tests-pre-pr-checks.cmake:The cause you name is right and it is fixed the same way in that PR:
doubledno longer sharesfreedwithclashes(a removal cancels the base's copy, never one of the branch's own two), and the rule now reads the if-depth so a pair under twoif()blocks is2cannot-tell while one unguarded sighting is a hard1.The half worth keeping from this issue: your fixture crosses a file boundary — the removal is in
CMakeLists.txt, the double is in a family file — so it pins something the pair's own fixtures do not: thefreedset and the counted lines come from different files in the same namespace. Posted on#3243as the arm to add alongside its-1/+2one; if it lands without it, the case is still covered by-1/+2in one file but the file-crossing version is not pinned.Closing as superseded with that carry-over.
#3235is the surviving issue (this is the same defect) and#3243is the surviving PR — verified, not assumed.