Repository navigation
contrib-check: run the Python self-tests once, inside check-recipes - #681
Conversation
There was a problem hiding this comment.
Verdict: CLEAN: The removed self-test invocations remain covered by check-recipes, and their failures still fail the contributor check.
Checked
Duplicates: 0 new functions, types or constants. All 69 removed standalone invocations map to unchanged self-test commands in check-recipes.
Complexity: one explicit T1 skip added to plan construction; no Rust functions changed.
Silent failure: followed both retained wrapper paths through scheduler result files, report, and the contributor's red-unit count. Failures remain visible and nonzero.
Tests: both changed shell scripts pass bash -n. Static comparison confirms the 68 listed tool commands are unchanged; recipes.py --self-test is the 69th command. No tests changed; mutation review is not applicable.
Gates: no thresholds or test clauses changed. The deleted invocations duplicate retained checks.
Escape catalog: no matching defects; the plan-filter pipeline retains pipefail.
Notes
No Rust files changed. Full T0/T1 runs and the reviewer's isolated runtime checks were not repeated during validation.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
Filed outside this PR: #683
|
The review is done and the contribution check passed, so I'm merging this. |
contrib-check의 T0 단계가 같은 Python self-test를 두 번 돌리던 중복을 없애서 T0를 더 빠르게 만드는 변경입니다.What and why
just contrib-check --tier t0ran the Python self-tests twice. It addedrecipes-self-testand one unit for each self-test in theselftests=(array oftools/check-recipes.sh, 69 units in all (tools/contrib-check.sh:194to:199), and ran them one after another. Thecheck-recipesunit, which T0 also runs, calls the same commands:blk_selftestrunspython3 tools/recipes.py --self-test(tools/check-recipes.sh:79) andblk_pytoolsruns each tool of that array (tools/check-recipes.sh:439).In two public CI runs of T0, the 69 duplicate units took 230 s of a 944 s run and 338 s of a 1441 s run, about 24% of the wall time each.
T0 no longer adds those units.
check-recipesruns the same commands, so the checks are the same and no tool loses its self-test. If a self-test fails,blk_pytoolsnames the tool and prints its output. T1 skipsrecipes-self-testfromhost-nightly, becausecheck-recipesalready ran it in T0. The header comment anddocs/contrib/local-check.mddescribe the new split. The comment intools/check-recipes.shthat saidcontrib-check.shreads the same list is removed, since it no longer does.Release notes: Under the hood:
contrib-check --tier t0runs the Python self-tests once, insidecheck-recipes, and finishes sooner.Code shape
selftests=(array intools/check-recipes.sh.tools/contrib-check.shno longer parses it, so the second run path is gone.addlines, thesedthat read the array and the branch that stopped on an empty array are removed, along with the stale comment intools/check-recipes.shand the header text that named the self-tests.blk_pytoolswith the tool name and its output.check-recipes.cargo fmtandcargo clippy: no Rust changes (shell and Markdown only).Duplication found or removed (
path:line), or "none": the Python self-test commands ran from bothtools/contrib-check.sh:194to:199andtools/check-recipes.sh:79and:439. They now run only fromtools/check-recipes.sh.What I ran
Head
bc95e3c0068aa31982da4686cc9d5ad046df0b0e, base40fec962613b9f08e8318f7a53c133d4f58e65e8(main). Main and then the head ranjust contrib-check --tier t0on one Linux x86_64 machine, one run each.check-recipestook 185 s on main and 188 s on the head and passed on the head, so every self-test it runs passed.What I ran into
None of this blocks the PR.
avx512f,avx512_bf16and others). Every unit is about 1.5 to 2 times slower on the slower run, which points to the runner CPU. This PR does not change that.Hardware (if the change is for a machine)
One Linux x86_64 machine with an AMD Ryzen 5 PRO 6650H, no GPU, running only
just contrib-check --tier t0.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.