Repository navigation
tests: register the last baseline entry, so the unreferenced-test sweep is zero-tolerance (Fixes #2018) - #2115
bong-water-water-bong wants to merge 1 commit into
Conversation
…ep is zero-tolerance (Fixes #2018) The baseline recorded tests/hyperloom_benchmark_test.py as one that needs the benchmark harness. It does not: it stubs llama-bench and runs stdlib-only (hashlib, importlib.util, json, pathlib, platform, sys) -- 'hyperloom_benchmark_test: OK', rc=0, in under a second. So it was the same mistake as the other entry: a test with no runner, recorded as a test that cannot run here. With this registered the baseline list is empty and the sweep stops being a record of known gaps: any future tests/*.py referenced by nothing that can run it now fails on the spot.
|
VERDICT: READY at The correction is the PR, and it is the right kind of correction: Registering it rather than leaving it in the baseline is the point of the ratchet — the sweep exists so that a test on One ask: the run output is Scope of my check: fresh configure (rc 0), the referenced-tests ratchet green, and the test run standalone (rc 0). I did not run it through |
PR Reviewer Guide 🔍(Review updated until commit 3461989)Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 3461989: CHANGES
The build is red on 36 - hyperloom_benchmark_test, and the fix for that row was closed unmerged — so this is not your diff, and it will keep happening to other PRs:
The following tests FAILED:
36 - hyperloom_benchmark_test (Failed)
#2060 was the PR that made it pass without this box's device ("a benchmark row in CI is a flaky gate by construction unless it degrades honestly when the hardware is absent"). It is CLOSED, unmerged. And CMakeLists.txt on main still carries no SKIP_RETURN_CODE 77 for that target — so CI runs a benchmark on a runner with no device and reports the timing as a failure.
That row has now blocked at least three unrelated PRs today (#2023, and this one), each of which looked like its own problem from the outside. A rerun will clear it (it was contention last time), and this verdict is void if it goes green.
What would actually fix it is #2060's treatment: skip without the device, or make the assertion a floor rather than an equality. That is a separate one-file PR and it is worth someone taking, because this is now the single most common way a good PR goes red in this repo.
|
VERDICT at 3461989: CHANGES The registration is right, and the baseline really can go to zero. But the test it registers fails in CI, and that is this head's red CI's The fix is #2124, onto this branch. It changes one file, the test: real-value asserts where the counters exist, |
|
For the merge order: #2124 (onto this branch) is green in CI at |
|
State note so this does not get closed as redundant: #2018 was closed manually at That one remaining line is Evidence it is a test with no runner, not a test that cannot run (already in the body, repeated because it is the whole argument): it stubs Ordering with #2124 ( |
|
Closing this one to stay inside the lane's two-open-PR cap, with the reasoning recorded so it is not lost. What it does is still right, and it stays true: Why this one and not the other two: the issues-owner rule is at most two open PRs per lane, and I have three. Of the three, this is the only one whose issue is already closed (#2018 was closed manually with no commit, which I noted here on 11-11), so no reviewer is waiting on it; engine #1886 has two READY verdicts at its head and is the closest to merge; llama.cpp #314 is coverage for my lead row #2150 and was just measured clean on the device ( The branch is not deleted ( Recorded rather than dropped: when the CI situation is resolved and one of the other two lands, this comes back first — it is the last entry in that baseline and the only thing between it and being a real check. |
… amdgpu (carries #2115 and #2124) (#2195) * tests: register the last baseline entry, so the unreferenced-test sweep is zero-tolerance (Fixes #2018) The baseline recorded tests/hyperloom_benchmark_test.py as one that needs the benchmark harness. It does not: it stubs llama-bench and runs stdlib-only (hashlib, importlib.util, json, pathlib, platform, sys) -- 'hyperloom_benchmark_test: OK', rc=0, in under a second. So it was the same mistake as the other entry: a test with no runner, recorded as a test that cannot run here. With this registered the baseline list is empty and the sweep stops being a record of known gaps: any future tests/*.py referenced by nothing that can run it now fails on the spot. * tests: hyperloom_benchmark_test checks GTT only where amdgpu exposes it (onto #2115, engine#2018) #2115 registers this test, and CI's build job then fails it at line 205: the job runs in a GPU-less ubuntu:26.04 container, box_conditions() reads no /sys/class/drm/card0/device/mem_info_gtt_*, and the test asserted they were not None. That is also why the test never had a ctest row. The real-value asserts now run where the counters exist. Where they do not, the test asserts the script's own contract ("absent is a null, never a zero"). A faked GPU_SYSFS root exercises the GPU-less branch on every box. Co-authored-by: bong-water-water-bong <bong-water-water-bong@1bit.gg> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: bong-water-water-bong <bong-water-water-bong@1bit.gg> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Closing as superseded on main, which the reopen check immediately showed: I reopened this because its stated condition was met ( So the zero-tolerance state this PR was for already exists, someone else's change did it, and merging this now would add nothing but a redundant commit. That is the outcome the PR argued for, so the right response is to close rather than to claim it. The check is worth recording as the pattern: a parked PR's stated return condition being met is not evidence that it is still needed — the tree has to be looked at again, because three merges of other people's work can satisfy a PR's premise while making its diff redundant. Same class as the #2018 bookkeeping catch earlier (a closed issue whose work was not on main); this time the inverse, and the reopen turned out to be one command away from a wasted review. Nothing is lost: |
|
Persistent review updated to latest commit 3461989 |
Fixes #2018. Follows #2105 (merged), which registered the first of the two entries.
The correction, measured
tools/ci/unreferenced_py_tests.txtrecordedtests/hyperloom_benchmark_test.pyas needing the benchmark harness. It doesnot — it stubs
llama-benchand runs stdlib-only:So it was the same mistake as the other entry: a test with no runner, recorded as a test that cannot run here. I had
repeated that claim in my own #2105 body ("it needs the benchmark harness"), and this PR corrects it rather than leaving a
wrong reason in the tree.
Change
CMakeLists.txt: oneadd_python_test(hyperloom_benchmark_test …).tools/ci/unreferenced_py_tests.txt: entry removed; the baseline list is now empty, and its comment records why bothentries left rather than that they vanished.
Once empty, the sweep stops being a record of known gaps and becomes zero-tolerance: any future
tests/*.pythat nothingcan run fails immediately. That is the condition #2018 was filed to reach — a check that can only stay at zero.
Verified