merge-fold: a stacked piece replays its already-folded parent, and the smoke record prints a false error
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start with .claude/skills/merge-fold/fold.sh, especially the commit selection near line 87 and the smoke record count near line 337. Build the three repository cases in the issue’s scratch harness and confirm the commit list, already-folded case, and missing-file stderr behavior; then remove the filter to verify the mutant makes case (a) fail. Done means the harness records those results and a fresh reviewer gives a MERGE verdict before the fix is folded as a TOOLS change.
Written by the indexing model from the issue text.
Description
Evidence at eeb31e8677b79d43a38156cc3feec82b1e1c819e
What the release tree says, read at the release tip:
.claude/skills/merge-fold/fold.sh:87:COMMITS=$(git -C "$REL" rev-list --reverse "$PREV..$TIP"). The fold replays every
commit between the release tip and the piece tip. It does not drop a commit whose patch is already on the release line..claude/skills/merge-fold/fold.sh:337:NAT_FROM=$(( $(wc -l < "$D/smoke-native-unit.txt" 2>/dev/null || echo 0) + 1 )).
The2>/dev/nullcomes after the<redirect, so the shell prints the missing-file error before the suppression applies, on every
run where the record file does not exist yet.
Measured in the batch records (work root, not in the repository):
- Batch 229 (piece
fe99a482a, the observe seam B0, whose parent568f97b04the release already holds asdf85c48a3): the
fold log readspiece commits, oldest first: 568f97b04... fe99a482a.... The pick of568f97b04came out empty
(cherry-pick.txt: "The previous cherry-pick is now empty"), and the fold stopped mid-pick. The batch was aborted, clean. git cherry release/v6.20.0 fe99a482aateeb31e867prints- 568f97b0413920ce8d9545da9b99ceb75fb47692(already present)
and+ fe99a482a246cb7297a7b7f17225ceb74e36275c(new).- The same holds for the next stacked piece:
git cherry release/v6.20.0 553aab7d510135b115591642d0c72218af7a72daprints
- 88df112500dfec9b01a1abde8a866deb574cf624(unit 1 of #2894, folded as4df1a76ac) and+ 553aab7d5....
Not shown
- Whether a fold whose whole piece is already on the release is meant to pass or stop. The harness below decides the
case by what the release line holds, not by an assumption. - The early class check (
fold.sh,piece_classoverPREV...TIP) reads the parent's changes too. It is conservative (a
class can only come out as more-gated), and it is not changed here. The check on the replay readsPREV...HEAD, which is exact. - Whether any other open piece is stacked on an already-folded parent beyond the observe stack (
fe99a482a,290ff11fd,
27a498bad,b1ec3b5b5) and553aab7d5.
Falsifier
At eeb31e867, a fold of fe99a482a alone, with the script as it stands, lists one commit in piece commits, oldest first.
The fold log of batch 229 shows two (568f97b04 and fe99a482a), so this issue is wrong if the one-commit listing appears.
Work
Test first, each item with what it must show:
- A scratch harness (its output recorded in the commit;
fold.shhas no test harness). It builds three small repositories:
(a) a stacked piece whose parent is already on the release line by an equal patch: the commit list must be the piece alone;
(b) a piece with nothing on the release line: the commit list must be every commit, unchanged;
(c) a piece every commit of which is already on the release line: the fold must stop with a message that says so.
Case (a) fails on the current code (it lists the parent). fold.sh: the commit list keeps only the commits thatgit cherry release/v6.20.0 <tip>marks+, in rev-list order. The
function is bracketed by markers so the harness can run it unchanged.fold.sh:2>/dev/nullmoves before the<redirect on the line that counts the record lines. The harness shows that a
missing record file prints nothing on stderr and counts as zero.- Mutant proof: remove the filter in step 2 and show that case (a) fails, with the output pasted, then restore.
- A fresh review of the change (a reviewer that did not write it), a MERGE verdict on the tip, then the fold of the fix as a
TOOLS change. Then the stacked pieces fold in order, each as its own batch.
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 37m
- Merged PRs (30d)
- 524
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EchoTools/nevr-runtime
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
EchoTools/nevr-runtime#2910 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EchoTools/nevr-runtime#2909 ·
Maintainers usually reply within 1 day
-
build: the generated defaults header is written 0600, so a seat outside nevr-build cannot read itOpenbacklog
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2901 · 1 comment ·
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EchoTools/nevr-runtime#2897 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day
-
good first issue help wanted phase:0 priority:P3 type:task
Difficulty 2/5 1-3 hours Newbie friendliness 67/100