The fold gate's map-coverage check is inseparable from its names checks, so the rows cannot be deferred alone
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- testing-qa
Research direction
Start in tools/internal/testmap/testmap_test.go, at TestTheRepositoryMapCoversEveryTrackedFileAndNamesRealTests (line 307), and run go -C tools test -count=1 -run 'TestTheRepositoryMapCoversEveryTrackedFileAndNamesRealTests' ./internal/testmap to see the single uncovered-file error. Split it into a coverage function (the m.Uncovered(list) loop at 325-327) and a names function (checks at 383-409), both reading the git ls-files output through one shared helper. Done means both run under -run, and each fails on its own mutant: an emptied coverage loop passes, a mapped-but-untracked file fails the names test.
Written by the indexing model from the issue text.
Description
Evidence at 1645b639c
tools/internal/testmap/testmap_test.go:307is one test,TestTheRepositoryMapCoversEveryTrackedFileAndNamesRealTests. Its coverage check is the loop overm.Uncovered(list)at lines 325 to 327. Its names checks run in the same function: the add_executable check at line 383, the just-recipe check at 387, the Go-package check at 391, the pytest check at 395, and the check that every target is used at 406 to 409.tools/internal/testmap/testmap_test.gois the same at3f767d639(no commit in1645b639c..3f767d639changestools/).- At
3f767d639:go -C tools test -count=1 -skip 'TestTheRepositoryMapCoversEveryTrackedFileAndNamesRealTests' ./internal/testmapexits 0. The-skipremoves the coverage check and the names checks together. - At
3f767d639:go -C tools test -count=1 -run 'TestTheRepositoryMapCoversEveryTrackedFileAndNamesRealTests' ./internal/testmapexits 1 with one error line,tracked file .claude/skills/merge-fold/SKILL.md is in neither files nor none of its directory's component. That file is tracked and has no row intools/test_map/.
Found while folding a piece that adds a tracked file to the release line. The fold gate cannot defer that file's row alone, because the one function that checks rows also checks names.
Not shown
- How many folds on the release line were blocked by the coverage check. Not measured. The red batch records I read (031, 033, 062 and 065) were row drift, not this gate.
- Whether the names checks fail on a tree that deletes a gtest target, a just recipe, a Go package or a pytest file that the map names. Not run.
- Whether the build host can regenerate
tools/test_map/on a schedule. Not checked.
Falsifier
go -C tools test -list '.*' ./internal/testmap at 1645b639c lists a second test function that runs only the coverage check. Then the coverage check can already be skipped alone, and this issue's claim is wrong.
Work
- Test-only, in
tools/internal/testmap/testmap_test.go: split the function intoTestTheRepositoryMapCoversEveryTrackedFile(the coverage check alone) andTestTheRepositoryMapNamesRealTests(the rest), sharing one helper that readsgit ls-files. Each function gets a mutant proof: the coverage function fails on a tracked file with no row and passes when its loop is emptied; the names function fails on a mapped file that is not tracked, and on a dropped directory set or tracked set. - The fold gate (
.claude/skills/merge-fold/SKILL.md, section 4) skips the coverage function by name, and runs the names checks. - When the build host has regenerated
tools/test_map/, remove the skip.
Related: #2804 (a test-map tree recipe runs Wine tests).
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 7m
- Merged PRs (30d)
- 634
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
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EchoTools/nevr-runtime#2823 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2822 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
EchoTools/nevr-runtime#2821 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
EchoTools/nevr-runtime#2819 ·
Maintainers usually reply within 1 day
-
docs(adr): ADRs 0034, 0035, 0038, 0043, 0045, 0046, 0048, 0049 and 0050 are accepted as writtenOpendocumentation
Difficulty 2/5 Under an hour Newbie friendliness 78/100
EchoTools/nevr-runtime#2818 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
patrick-hudson/put.gd-desktop#2044 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
uxlfoundation/oneDNN#6604 · 1 comment ·
Maintainers usually reply within 2 days