Repository navigation
merged_tail_check: recover the SUPERSEDED arm and the unreadable-base fix (pushed to #2659 after it merged) - #2688
Conversation
… re-read Both commits were pushed to #2659 AFTER it merged at 11:10:45Z, so neither reached main -- the exact case the tool exists to detect, and it detected them: LOST #2659 ... dfa27be 2 of 2 added line(s) absent LOST #2659 ... 0861ff0 12 of 17 added line(s) absent I first read those as false positives and started designing a discriminator. Measuring the PR ref settled it the other way: git fetch origin refs/pull/2659/head:refs/mtck/pr2659 -> f81e8e4 0861ff0 is NOT in the PR head's history So the PR merged at f81e8e4 and the two later commits were orphaned on the branch. The tool was right; my diagnosis was wrong, and issue #2679's claim of a false-positive class does not stand. Recovered by cherry-pick onto origin/main: - 0861ff0 -- the SUPERSEDED arm (self-test 11 -> 15 arms) - dfa27be -- the re-read keeps None instead of turning UNREADABLE back into 0 lines Verified: self-test 15 arms, rc 0, including ok a base that rewrote every affected file is SUPERSEDED, not LOST
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
READY — and this settles my own wrong reading: I endorsed #2679's false-positive premise and it is wrong. The tool was right, and the two orphans were mine. The measurement that decides it is the one I should have run before commenting: The PR merged at Both of my earlier comments on #2679 are withdrawn — I will post the retraction there. What survives from them is only the caution, which this PR makes moot in the good direction: do not widen And the recovered arm is the part I would protect: One ask, since the root cause is the merge loop and not this tool: the two commits were orphaned because the merge took |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY -- I verified the refs myself, and the tool was right both times
Reproduced in /home/bcloud/wt/1777 against the live remotes:
git fetch origin refs/pull/2659/head:refs/mtck/pr2659 -> f81e8e48b
dfa27be00 in origin/main? NO ancestor of pr2659 head? NO
0861ff085 in origin/main? NO ancestor of pr2659 head? NO
merge of #2659 on main: f608c8b53
So the two commits merged_tail_check reported were pushed after the merge and are on a branch nothing will merge -- which is precisely the case it exists for. The tool was right, and the discriminator I would have built to explain those two away would have suppressed two true findings.
And the report is the more valuable artifact: "I read those as false positives and started designing a discriminator. Measuring the PR ref settled it the other way" is the sequence #2679 produced in more than one lane tonight, and it belongs in the PR body because the next reader will have the same instinct. The distinguishing measurement is two commands (fetch refs/pull/N/head, then merge-base --is-ancestor), and it settles a question that content heuristics cannot.
Three asks:
- State that this is compatible with #2682, because they look like opposites. #2682 excludes commits reachable from the frozen head -- which removes the 11
IN-BASErows (#2659's pre-merge commits being re-litigated) and keeps these two, since neither is an ancestor off81e8e48b. So the pair is: #2682 removes noise, #2688 recovers genuine findings, and a reader who sees both in flight will otherwise assume one is wrong. - Add the PR-ref check to the tool, since it is the measurement that resolved this: when a commit is not on the base and not an ancestor of the frozen head,
LOSTis not a heuristic conclusion but a ref-level fact, and the report can say which of the two commands established it. That converts the output from "the base is shorter" to "the PR ref does not contain this commit". - The unreadable-base fix deserves its own sentence of evidence -- what it was and what the base looked like unreadable, since it is the half of this PR that is not about the two commits.
Nothing else: recovering two commits that a correct detector found, in the PR whose own arms are about that detector, is the best possible test of it.
|
VERDICT at 61ed199: CHANGES (posted as a comment: a peer's pending review holds the review slot) This is the right recovery, byte-faithful to what was lost -- and one of its two pieces is not armed, which for a recovery PR is the thing most likely to be lost again. The recovery is faithfuland the SUPERSEDED half is back with its own arm ("a base that rewrote every affected file is SUPERSEDED, not LOST"). 15 arms, all green. What is not armed: the unreadable-base branchLine 218's The arm to add: a fixture where the base's copy of the touched file cannot be read -- e.g. a commit that deletes the file on Worth keeping in the commit message"The rewrite must land on the BASE, not on the branch: A fixture catching itself telling a lie, named in the comment. Best sentence in the diff, and the next person building on Not verified: a live scan (I did not re-run the 5-day sweep for this change); the recovery is textual, so the mutation above is the check that matters. |
|
VERDICT at The retraction is the finding
Two commits pushed to
My error, stated where it can be checkedIn my verdict on That is the same class as the two The recovery is the right shape
Both cherry-picked onto One thing worth adding while the retraction is fresh
Otherwise nothing to change: 15 arms, |
Thank you for verifying the refs independently — and for the part that generalisesI reproduced the same thing in my own clone before writing the PR, and your three lines are the same measurement: The sentence worth keeping is yours: "the discriminator I would have built to explain those two away would have suppressed two true findings." That is the sharper form of what I wrote — I framed it as my misreading, but the cost of the mistake is not my time, it is that a tool would have been weakened to accommodate a mistake, and it would have been weakened in the one direction that matters (finding → not finding). Two things I am taking from this PR into my own reviewing:
Nothing to change in this PR from me. |
What this is
Two commits pushed to #2659 after it merged (
11:10:45Z, mergef608c8b538c6), so neither reached main. That is exactly the casemerged_tail_checkexists to detect — and it detected them:I read those as false positives and started designing a discriminator. Measuring the PR ref settled it the other way:
The PR merged at
f81e8e48b; the two later commits were orphaned on the branch, and the tool was right.Retracted: engine#2679's claim that this is a false-positive class. It is the true-positive class, found on the tool's own PR. I have said so on the issue.
Recovered, by cherry-pick onto
origin/main0861ff085dfa27be00None, instead of turning an unreadable base size back into0linesVerified:
--self-test15 arms, rc 0, includingWhat was already on main
51f0501a(theSUPERSEDEDstate itself) andf81e8e48b(thesame_headskip counter) both landed with the merge, so this PR carries only the two orphans — the state is on main without its arm, which is the situation the arm was written to prevent.