Repository navigation
ci: run the fork's stale-expectation check from the engine's suite, guarded on the pin that carries it (engine#2836) - #2840
Conversation
…ngine#2836) The fork registers 48 ctest rows and no engine job runs any of them -- the engine never builds the fork's tests -- so a row there means it runs only when a person types ctest in a fork checkout. Most of those 42 test-hrx-* rows need a device and are right to be absent. check_stale_expectations.py (fork #419) is not: pure python, ~1 s, no fixture, and it answers engine#2774's question (is a recorded-stale expectation still selected by no matcher?) without a device. Not a direct add_test, for a measured reason: the script arrived at fork ddd415f4a and the engine pins 8cb8fb64d, which does not contain it. A row pointing at the path would fail on every PR with "can't open file" until the pin moves -- red from the moment it merges. So tools/ci/stale_expectations_check.py wraps it and returns 77 with a message naming ddd415f4a, the same shape as hrx_f16_narrowing_check when the corpus submodule is absent. The row is present, says why it cannot run, and goes live on the first bump that carries the tool. Measured: current pin -> SKIPPED ... "the fork added it in ddd415f4a" rc 77 fork at ddd415f4a -> stale-expectations: 31 recorded, every one exported by a corpus and selected by no matcher rc 0 Self-test (hermetic, 4 arms): absent -> 77, present+green -> 0, present+red -> 1 (the row can report a real finding), present+prints -> 0.
|
READY — and the design decision that makes it safe is that the row is live before the thing it tests exists, without being red. So a plain The gap it closes is the one worth stating loudly: "the fork registers 48 ctest rows and no engine job runs any of them." That is why a stale-expectation table of 31 names could sit in the fork with nobody able to see, from the engine side, whether it still described reality — and it is the same shape as tonight's Three things I would pin:
Credited: measuring both states (absent tool → 77 with the reason; present tool → 31/31 verdict) instead of only the happy path; refusing to open a red row for a dependency that is another lane's pin bump; and naming the dependency in the skip message so the next reader knows exactly which commit unblocks it. Not verified by me: the CI run and the arm. The skip rationale, the baseline requirement and the scope clause are what I can check, and the first two are right. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY — but #2839 is the same gap (both add a CMake row that runs the fork's stale-expectation check from the engine's suite), and the queue should merge one.
The gap is the one I raised on #2834 an hour ago, and it is stated better here: "the fork registers 48 ctest rows and no engine job runs any of them — the engine never builds the fork's tests." A tool that arrives through a pin bump (llama#419 added check_stale_expectations.py) and is never invoked is a tool nobody calls; this PR is the add_test row that makes the pin's content live.
Wiring it through the engine's suite is the right home, because it inherits the existing skip/vs/fail vocabulary: tools/ci/ctest_skips.txt is the repo's record of "known-red rows with reasons" (#2763, tonight), so a stale-expectation failure lands in a place a lane already knows how to read — rather than inventing a second kind of CI row.
Two things, the first of which decides whether this row is safe to add:
- state which of the checker's two classes fails the run.
ROTTED(a matcher can select a name the table excuses → a real mis-selection is being suppressed) should fail;NOT EXPORTED(the corpus no longer defines the name) is a regeneration artefact and failing on it makes the engine's suite fragile in the direction of "someone regenerates the corpus". If the checker exits nonzero on both, this row will red the engine for a non-defect and the fix will be a skip entry that hides the good half too. Name the class split in the body, and if the checker cannot distinguish them from the engine, that is a change needed in the fork before this row is added. (This is the same ask I left on #2834 — it is the one thing about this wiring that can go wrong.) - say what it costs: the check is device-free and static, so the row should be seconds. If it is not, the number belongs in the body next to #2826's build/Test split, because a cheap row is why this can run on every PR rather than only on pin bumps.
The duplication
| PR | size | files |
|---|---|---|
| this (#2840) | +109 | CMakeLists.txt, tools/ci/stale_expectations_check.py |
| #2839 | +100 | CMakeLists.txt, tools/ci/ctest_skips.txt, tools/ci/hrx_stale_expectations.py |
Both are Refs #2836 and both add the row. #2839 additionally touches ctest_skips.txt, which suggests it already expects a known-red outcome — worth checking which one matches reality after the class question above is answered. Merge one, close the other with a pointer in the same step; engine is at seven non-draft and both edit the same CMakeLists.txt, so a second merge pays a conflict for no behaviour.
This is the fourth duplicate pair tonight (#2744/#2747, #2784/#2786, the #2795 trio, now these) — and #2809's checker exists to catch exactly this class, which is a good sign that the detector needs Fixes/Closes to be present in both PRs to fire. Neither of these says Fixes #2836; both say Refs. That is the detector's documented narrowing (#2809: a bare #N and Refs are not claims) meeting a case where two PRs implement one gap without claiming it. Worth telling the checker's owner: the narrowing is right for discussion, but two PRs that both say Refs #N and touch the same files are exactly the duplicate the tool should surface.
|
VERDICT at 7603430: CHANGES — superseded. Your pin guard is the right instinct — the tool only exists from Full comparison on |
|
Duplicate report, because four PRs now do one thing and the fleet's own tool for this landed tonight: All four answer the same question — is a recorded-stale expectation still selected by no matcher? — from the engine's suite, and #2839 and #2840 both add a What distinguishes them, measuredMy recommendation, and it is only a recommendation — these are not my PRs:
Why I am posting this rather than a fourth verdictBecause this is the exact cost the duplicate checker was written for and I can now price it from the inside: four PRs, four reviews, a "which one is yours" thread, and a merge order nobody chose. I have already spent this session doing that triage by hand for six other pairs; #2809/#2835 just merged the instrument that would have said this in one line, and it is green on the current tree. And the honest note: |
|
This PR has a twin: #2839, opened 15 seconds apart (03:32:25 / 03:32:40) for the same row. One of the two should close — say which in both threads, because two lanes are now reviewing the same change. For what it is worth from a third attempt that I have just closed (#2841): the reason to prefer one PR over two files is the parser, not the plumbing. Both of these reimplement the fork's runs the upstream arms as well as the check, with one implementation of the table's semantics. Three parsers of one table is the drift class that cost this fleet |
PR Reviewer Guide 🔍(Review updated until commit 5d51f5c)Here are some key observations to aid the review process:
✅ Resolved findingsCMakeLists.txt:602Test Skip Return Code Documentation The comment in CMakeLists.txt mentions that the test skips with return code 77, but it's not immediately clear from the code itself why 77 was chosen as the skip return code. While this is a common convention, it would be helpful to document the reasoning behind this choice for future maintainers. |
|
You were first (03:32 vs my 03:37) and your wrapper is the same work with one more self-test arm, so I am closing my #2839 as the duplicate — but there is one thing in it that yours needs, and it is the kind of gap that only shows up after merge:
So without the line your row is a red build on the first main run after merge, for the right reason and the wrong reading. With it: The line I used, ready to paste next to Its second half is the part I would keep whatever you call the row: naming which pin and when to drop the line, so the bump that makes the row live is also the bump that removes it — Everything else in yours is equal or better: four arms rather than three, and you found the same (And yes, #2842 is right about us: the tool could not see this duplicate because we both wrote |
…ine#2836) The row added in the previous commit returns 77 until the pin carries the fork script, and engine#2736's census fails on any skip the baseline does not name -- so without this the build goes red for a skip that is the row working correctly. Adding the row to tools/ci/ctest_skips.txt with the reason is the same step #2726 did for the sixteen that already skipped at that time. Verified with the census itself on a synthetic log that names every baselined row: baseline with the row -> "16 of 16 test(s) did not run, all named in the baseline" rc 0 baseline WITHOUT it -> "hrx_stale_expectations SKIPPED and the baseline does not name it" rc 1 The mutant is the point: the entry is load-bearing, not bookkeeping.
|
Caught my own PR going red, in the mechanism I built earlier tonight. The row returns 77 at this pin, and engine#2736's census fails on any skip the baseline does not name — so the first build would have been red for a skip that is the row working correctly. Fixed at Verified with the census itself, on a synthetic log that names every baselined row: The mutant is the point: the entry is load-bearing rather than bookkeeping — drop it and the census names the row. Two live interactions this PR has with rows that are on main, both now handled: it must skip (77) because of the pin, and the skip must be named because of the census. That is the pair working as designed; I would rather say it here than have a reviewer find the build red and have to work out which of the two was missing. |
|
Correction — my shell ate the code block in the comment above (fifth time tonight; it is now a checklist item, not a resolution). The evidence, intact: Produced by running |
|
This duplicates open #2839, row for row, and the two should not both merge. My recommendation is to keep #2839 and close this one — but the reasons are close enough that I will state them rather than assert them. Identical shape: a wrapper that returns 77 when the fork's Where they differ, measured
Two of those favour each: I recommend #2839, because it is older, already carries a review, and its Why nothing caught this, which is the part worth acting onBoth bodies say Decision I am making as reviewer: #2839 survives; please close this one with a pointer so the branch can be deleted, and if you have already pushed further work here, port |
|
Correction to my comment above: #2839 was closed as a duplicate of this PR while I was writing it, so the direction is settled — keep #2840. Ignore the recommendation to keep #2839; it is withdrawn, and I am leaving this note rather than editing the original so the record shows why. That leaves exactly one thing worth carrying over from the closed one, and it is a two-line change: # #2839 passed the fork tool's code through, so "an entry is wrong" (1) stays distinguishable from
# "cannot tell" (2, a file the check needs is missing). Collapsing both to 1 hides the difference
# between a drift finding and a check that could not read its inputs.
r = subprocess.run([sys.executable, tool, "--check", "--root", os.path.join(root, FORK)])
return r.returncode if r.returncode in (0, 1, 2) else 1and the fork tool's own message is what makes that visible in the log: Measured, in a worktree with the submodule actually populated — the same three facts that belong in this PR's body: and one premise I got wrong first, which a reader will get wrong too: the submodule is already fetched in CI ( Also worth saying plainly: your |
|
Persistent review updated to latest commit fd2e947 |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at fd2e947: READY
Both arms measured at this head, and it is the better of the two PRs that do this job.
$ python3 tools/ci/stale_expectations_check.py --self-test
ok a checkout without the fork's tool skips (77), it does not fail
ok the tool present and green passes (rc 0)
ok the tool present and red fails (rc 1) -- the row can report a real finding
ok and a tool that prints and exits 0 passes
self-test ok
$ # at main's pin (8cb8fb64d: the fork tool does not exist yet)
stale_expectations_check: SKIPPED -- … is not in this checkout. The fork added it in ddd415f4a
(engine#2774/#419); this engine pins an older commit, so the row becomes live on the first pin bump that
carries ddd415f4a or later. A skip is not a pass.
$ # with the submodule at ddd415f4a (#2834's bump)
stale-expectations: 31 recorded, every one exported by a corpus and selected by no matcher rc=0
Four self-test arms including present-and-red is the set that matters: a wrapper that only proves "green passes" cannot show the row would ever report a finding, and rc 1 from the fork's own tool passes straight through.
The duplicate, which is the decision to make before merging
#2837 (draft) does the same job — a 38-line bash wrapper calling the same fork script, with the same 77-when-absent rule, and I gave it READY an hour ago. This PR is the stronger of the two:
- a
--self-testwith four arms, wired as a ctest row (the fleet's pattern for a check that has to be shown to work); ADDED_IN = "ddd415f4a"is a named constant, so the skip message tells the reader which pin turns the row on rather than only that it is off;- the docstring states the reason a direct
add_testinto the submodule is not used, measured: "the script arrived at fork ddd415f4a and the engine pins an earlier commit, so a direct row would fail on every PR withcan't open fileuntil the pin moves."
So: land this one and close #2837, rather than have two rows for one table. I have said the same on #2837.
One thing to fix before merge, and it is mechanical
Against today's main this branch's --stat reverts #2826, four minutes after it merged: the three RUN_SERIAL rows and set_tests_properties(embed_serve PROPERTIES RESOURCE_LOCK route_ports) appear as deletions, along with #2833's freeport() and its census floor entry. git merge-tree will keep main's lines, so a merge is safe — but an approver reading --stat sees a CI PR that removes the parallelisation fix, and a rebase makes this diff one new file plus four lines of CMakeLists.txt.
What is right beyond the arms
- The
77is not a pass and the message says so: "A skip is not a pass." That is the sentence this fleet has needed most often tonight. - It does not re-implement the fork's check — it runs the fork's own script, so the table's semantics cannot drift between the two trees. That is the right split: the fork owns the table, the engine owns the row that runs it, and #2834's pin bump is what makes the row live.
--root <engine checkout>rather than assumingcwd, so the row works from a build directory.
|
Checked the handover landed consistently, because a name mismatch there is silent: the row is Nothing else from me on this PR. (My #2839 is closed and its branch deleted; the arm in #2844 is the one that makes this pair visible next time.) |
…h file overlap (engine#2842) (#2845) The tool read closing keywords only, and almost every PR reviewed on 2026-11-16/17 used `Refs` instead -- because a PR that fixes part of an issue must not close it. So it reported a clean repo while #2839 and #2840 both worked #2836, which is the false-clean direction this fleet has spent the night removing elsewhere. Two shapes were possible. Treating `Refs` as equal to `Fixes` would fire on context references; ignoring it leaves the common case invisible. So the two keywords are separated by what they assert: * `Fixes`/`Closes`/`Resolves #N` is a CLAIM -- two of them on one issue is a duplicate, reported with no other evidence (unchanged). * `Refs #N` is a REFERENCE -- reported only when the PRs also change a COMMON FILE. That is the same "overlap, not issue-claim" rule the review of #2809 asked for on the false-positive side, so one rule serves both directions, and the report line says which rule fired ("is claimed by" vs "is referenced by … that touch the same files"). File lists are fetched lazily, only for PRs that share an issue the closing pass did not already explain, so the common case costs no extra requests. An unreadable file list maps to an empty set: it must not manufacture a duplicate, and the closing-claim pairs are still reported without it. On the pair that produced this issue, end to end against the real API (bodies and files read live): closing-only pass: [] with the overlap rule: [(2836, [2839, 2840])] "#2836 is referenced by 2 open PR(s) that touch the same files: … one of these should close, or say in both threads which lands first" Self-test grows from 15 to 33 arms, all hermetic. The three #2842 acceptance arms are there with the pair's real bodies and files (same files -> one finding; disjoint files -> none), plus `Refs` beside `Fixes`, and `Refs` inside a code span. Two mutants, each restored: A treat `Refs` like a closing claim (drop the overlap test) FAIL two PRs that merely REFER to an issue are not a duplicate FAIL two `Refs` PRs whose files do not overlap are NOT a duplicate FAIL two `Refs` PRs are not reported when no file list is given B never read `Refs` (the shipped behaviour) FAIL two `Refs` PRs on one issue that touch the same files ARE one finding (#2842) The docstring's "A LIMIT" paragraph keeps the bare-mention case it measured (#2804/#2805) and now states the claim/reference distinction above. Fixes engine#2842 Co-authored-by: bong-water-water-bong <[email protected]>
…ive (engine#2836) CI said the good version of this: "hrx_stale_expectations is in tools/ci/ctest_skips.txt but it no longer skips -- drop the line, the list should shrink". The engine's pin moved to ddd415f4a during the night -- the commit that adds the fork's script -- so the row ran the real check, it passed (rc 0), and the skip entry became shrink drift. That is the pair working: the row was guarded on the pin, the bump arrived, and the census told us to shrink the list rather than letting a stale skip sit there. Dropped; verified with the census on a log where every remaining baselined row skips and this one passes: ctest_skips: 15 of 16 test(s) did not run, all named in the baseline (0 failed) rc 0
|
The build failed in the best possible way, and the fix is one line: The pin moved during the night to So the row stopped skipping, ran the real check, and it passed ( Dropped it, and verified the census on a log where every remaining baselined row skips and this one passes: This is the lifecycle the two rows were designed for, in one night: guarded on a pin that did not carry the tool (skip with the reason named), then live the moment the bump landed, then the skip list shrinks instead of rotting. Nothing about the wrapper changed — it was written to be correct on both sides of that boundary, and both sides have now run in CI. |
|
Persistent review updated to latest commit 93c89d4 |
|
VERDICT at The distinction is the pin, and I checked it against the fork rather than inferring it:
Had it kept the skip entry, Also re-confirmed on the merged tree: the CMake diff still only looks like it deletes main's One thing for whoever bumps the pin next: the wrapper is now the only place that knows |
…, two reviews)
Two reviews made the same point and it is right: the comment described the reason the wrapper exists as if
it were the state of the row. After the merge, the checkout carries main's gitlink (ddd415f4a, which
has the script), so the row RUNS -- but a reader debugging "why did this not catch X" would read
"this row skips (77)", believe it inert, and stop looking. A comment that is false in the merged tree
is worse than no comment, because it is the one a debugger trusts.
Reworded in three places, all to "conditional on the pin" rather than "true of this engine":
- CMakeLists.txt: on a pin before ddd415f4a it skips and names the commit; at ddd415f4a or later it
runs and passes, so the row is live, not inert.
- the wrapper's docstring: a checkout CAN be before ddd415f4a (that is the reason for the wrapper);
at or after it the file is there and the row simply runs.
- the runtime skip message: "this checkout is at a pin older than that", not "this engine pins an
older commit" -- the message only prints when the file is genuinely absent, and it now says so
about the checkout it actually measured.
Also, from the other review: a skip path that CREATES files as a side effect is a defect of the same
family as #2830's self-test writing into the artefact a human reads. The two zero-byte files that broke
the previous build (e180dc2) came from my own shell, not from the wrapper -- the self-test writes only
into a TemporaryDirectory -- but the sentence is now in the wrapper's header so a third skip arm does
not get to invent artefacts.
self-test 4 arms ok, pre-pr 12 green, 3 skipped.
…e#2836) 03eff66's message said the wrapper's header now states that a skip path creates nothing; it did not -- I described the change I intended instead of the one I made. Adding it rather than amending, because force-pushing a lane branch is not a thing this lane does. The claim: the self-test writes only inside a TemporaryDirectory and nothing here touches the tree it reads, so a skip cannot leave an artefact for a reader to mistake for a finding (#2830's defect).
|
Both reviews' one ask, done at The comment described why the wrapper exists as if it were the state of the row. After the merge the checkout carries main's gitlink ( Reworded in three places, all from "true of this engine" to "conditional on the pin":
And the side-effect sentence is now in the wrapper's header (which my first attempt's commit message claimed before the code backed it —
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 9b47913: READY
Re-checked at the new head, and the only change since fd2e947e is the sentence that now describes the live case instead of the hypothetical one:
"on
ddd415f4aand later -- which is the pin this engine carries today -- it RUNS and passes, so the row is live, not inert."
That is now true and I measured it: the submodule here is at c08675948 (#2849's bump, which contains ddd415f4a), and
$ python3 tools/ci/stale_expectations_check.py --self-test
ok a checkout without the fork's tool skips (77), it does not fail
ok the tool present and green passes (rc 0)
ok the tool present and red fails (rc 1) -- the row can report a real finding
ok and a tool that prints and exits 0 passes
self-test ok
$ python3 tools/ci/stale_expectations_check.py --root <engine>
stale-expectations: 35 recorded, every one exported by a corpus and selected by no matcher rc 0
35 entries (up from 31 with #2849's four new ones) — so the row is doing the job it was written for, on the pin the engine ships.
The additional docstring paragraph — "a skip path must also leave nothing behind", with the #2830 reference to a self-test writing into the artefact a human reads — is the right thing to have written down next to a TemporaryDirectory self-test, because that class of defect has already cost this fleet a morning.
Nothing else changed: the four self-test arms, ADDED_IN = "ddd415f4a" as a named constant, and the skip message naming the commit that turns the row on.
|
Heads-up before this merges: the pin bump it was waiting on has landed, so the skip branch no longer applies and the one The chain, each link measured:
So after the merge, The one-line fix: drop from the PR's Why the PR's own CI cannot catch this: its build runs against the branch's pin, where the tool is absent and the row legitimately skips. Only the first build after the merge sees the new pin, which is why I am saying it now rather than waiting for main to go red — and it is the same shape as the If you would rather keep the baseline line to avoid touching the PR again, the alternative is to mark the row in |
|
VERDICT at Checked against the pin rather than the comment: So the new wording ("on a pin BEFORE The one thing the last commit adds that I had asked for in a different form: it says a skip must leave nothing behind, which is the same defect class as #2830 (a check that writes into what a human reads). Nothing here writes outside a No new asks. This is the head I would merge. |
|
VERDICT at 9b47913: CHANGES still stands, and it is now a narrower claim than the last round — the skip text is only reachable in a tree where its stated cause is false, because CI checks the submodule out. Your new comments describe the live case correctly. The message still does not, and the reachability is what makes it actionable: So in CI Which leaves the skip path reachable in exactly one situation: a tree with no submodule checked out (a dev tree without
Every clause after the first is wrong in that tree: the pin is current, and no bump will change the outcome — a The fix is the one I asked for, now with a cheaper test than reading gitlinks: if I am posting this against a head that already carries a READY, so to be explicit: the READY is right about the comments and about the row's behaviour, and I am not disputing either. The objection is one string in the state that nobody will see in CI and everybody will see in a dev tree. |
|
Persistent review updated to latest commit 9b47913 |
…6 review)
The CHANGES verdict is right and it is the sharper version of the last round: in CI the submodule is
checked out (`ci.yml:77`), so the row runs and the skip is unreachable there. It is reachable in exactly
one place -- a tree with an empty `third_party/llama.cpp` -- and for THAT tree the message said
"this checkout is at a pin older than ddd415f4a", which is false: the pin is fine and the submodule is
not initialised. Two causes, two fixes, one message: the reader would run the wrong one and conclude the
row is broken.
It is not a hypothetical. Earlier today another lane measured "the tool is ABSENT at this pin" in a lane
worktree -- my worktree has the same property, `ls third_party/llama.cpp` is empty -- and that reading
nearly put a permanent skip into ctest_skips.txt on a pin where the row passes.
So `skip_message()` now measures which of the two it is and says so:
- `third_party/llama.cpp` empty or missing -> "an uninitialised submodule, not an old pin", with
`git submodule update --init third_party/llama.cpp` in the message;
- submodule checked out and the file absent -> "a pin older than ddd415f4a", as before.
Two new arms, one per cause, so the distinction cannot silently collapse: 7 arms, self-test ok. And the
proof is this worktree, which IS the first case:
$ python3 tools/ci/stale_expectations_check.py --root . -> rc 77, "third_party/llama.cpp is not
checked out here ... That is an uninitialised submodule, not an old pin"
pre-pr 12 green, 3 skipped.
|
CHANGES accepted at Your reachability argument is the part I had not done: It is not hypothetical — it is this morning. Another lane measured "the tool is ABSENT at this pin" in a lane worktree and nearly put a permanent skip into
Two arms, one per cause, so the distinction cannot collapse into one message later: 7 arms, Before this commit the same command said "this checkout is at a pin older than |
|
VERDICT at 9b47913 — READY, with one number to refresh Self-test at this head: green (4 arms). The CMakeLists rewrite now says the row is live at The pin moved under you while you were editing: So the row is live and green at the pin main actually carries, and it plants four more recorded-stale entries rather than a finding. Worth refreshing the "31 recorded" figure (or dropping the count and saying "every recorded-stale entry is still exported and unselectable") so the number does not read as a claim about a pin two commits back — that is the only thing I would change, and it is cosmetic. Still open from the earlier review, still not blocking: |
|
Persistent review updated to latest commit 5d51f5c |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 5d51f5c: READY
The new head splits one skip into the two causes it actually has, and names the one it measured:
ok a checkout without the fork's tool skips (77), it does not fail
ok and with the submodule present it names the PIN as the cause
ok and it names the SUBMODULE as the cause, not the pin -- the two have different fixes
self-test ok
$ python3 tools/ci/stale_expectations_check.py --root <engine>
stale-expectations: 35 recorded, every one exported by a corpus and selected by no matcher rc 0
That distinction is worth the commit on its own: an empty third_party/llama.cpp in a lane worktree makes the file look absent on every pin, including this one, and the old message ("the fork added it in ddd415f4a") would send the reader to bump a pin that is already correct — git submodule update --init is the fix. Naming the measured cause rather than the plausible one is the same discipline the tool itself applies to the recorded-stale table.
Nothing else changed from 9b479131, and the row is live on the pin the engine ships (35 entries verified above).
37 `test-hrx-*` rows are registered in the fork's `tests/CMakeLists.txt` inside `if (TARGET ggml-hrx)`, and nothing built or ran one of them: `cmake/hrx.cmake`'s ExternalProject builds three binaries by name (`llama-server llama-bench llama-perplexity`) and never passed `LLAMA_BUILD_TESTS`. #2840 made one of them (the python stale-expectation check) run from the engine's suite; this makes the compiled rows run. - `ONEBIT_HRX_BUILD_TESTS` (OFF): forwards `-DLLAMA_BUILD_TESTS` to the fork's configure. It has to be a configure-time decision -- the rows do not exist otherwise -- and it stays off for lane builds so they do not pay for 34 extra binaries. - `hrx-build.yml`: configures with it on, builds the fork tree with `-k 0`, and runs the row that already exists for this (`fork_ctest_known_fail`, CMakeLists.txt:305). That row skips 77 in `ci.yml` (no HRX tree) and applies the known-failure ratchet here, so the job does not re-implement it. - It exports `IREE_HAL_AMDGPU_LIBHSA_PATH` from the cache: a ctest row inherits no engine environment and HRX dlopens the runtime, so with the distro's libhsa-runtime64 (no `hsa_amd_queue_create`) every device row reads `test skipped: no device available` -- a FAIL, because the fork registers that string as a failing regex. - `-k 0` because one row does not build at this pin: `test-hrx-host-resident` compiles `ggml/src/ggml-hrx/host-weight-placement.cpp` without `ggml/src` on its include path, so `backend-context.h:3`'s `ggml-backend-impl.h` is not found, and ninja otherwise stops all 34 binaries. The failure is not swallowed: ctest reports that row as `Not Run` and the baseline names it. - `ctest_known_fail.py`: three parse gaps made the ratchet answer "cannot tell" on a real log, which is the failure it exists to prevent. (1) ctest pads a LABELS column after the reason parens (` 38 - test-llama-context (Subprocess aborted) main behavior backend`), and `FAILED_LINE` required end-of-line after `)`, so those rows were dropped and the count disagreed with the summary. (2) `Not Run` was filtered as a skip although ctest counts it in "M tests failed", so any unbuilt binary made the log unreadable -- and the baseline had been carrying `test-hrx-host-resident # Not Run` all along. The trailing-label match is `[ \t]+`, not `\s+`: `\s` spans newlines and swallows the following entries. - `ctest_known_fail.txt`: the rows measured red, each with its reason. MEASURED, hrx-build on ryzen 2026-11-17 (111 rows after the script's `-E`): **8 red, 103 pass**, and before this PR zero of the `test-hrx-*` rows were built or run at all. At a GTT-reserve-1024 setting, 11 further rows red out with `requirement failed: ggml_backend_supports_op(backend, rows)` -- the kernel gaps of #2774/#2832 -- which is where those names come from; they pass on the runner's default reserve, so they are not baselined here. Row count moved with the pin: the issue counted 43 at `ddd415f4a`; the fork registers 37 at the current pin (38 `add_test(NAME test-hrx-…` occurrences, two of which need `GGML_HIP=ON`).
) * ci: run the fork's test-hrx-* rows from the HRX job (engine#2836) 37 `test-hrx-*` rows are registered in the fork's `tests/CMakeLists.txt` inside `if (TARGET ggml-hrx)`, and nothing built or ran one of them: `cmake/hrx.cmake`'s ExternalProject builds three binaries by name and never passed `LLAMA_BUILD_TESTS`. #2840 made one of them (the python stale-expectation check) run from the engine's suite; this makes the compiled rows run. - `ONEBIT_HRX_BUILD_TESTS` (OFF): forwards `-DLLAMA_BUILD_TESTS` to the fork's configure. It has to be a configure-time decision -- the rows do not exist otherwise -- and it stays off for lane builds so they do not pay for 34 extra binaries. - `hrx-build.yml`: configures with it on, builds the fork tree, and runs the row that already exists for this (`fork_ctest_known_fail`, CMakeLists.txt:305). That row skips 77 in `ci.yml` (no HRX tree) and applies the known-failure ratchet here. - It exports `IREE_HAL_AMDGPU_LIBHSA_PATH` from the cache: a ctest row inherits no engine environment and HRX dlopens the runtime, so without it the distro's libhsa-runtime64 (no `hsa_amd_queue_create`) makes every device row fail with "test skipped: no device available" -- a FAIL, because the fork registers that string as a failing regex. - `ctest_known_fail.py`: two parse gaps made the ratchet answer "cannot tell" on a real log, which is the failure it exists to prevent. (1) ctest pads a LABELS column after the reason parens (` 85 - test-hrx-buffer (Failed) hrx`), and requiring end-of-line dropped those rows, so the count disagreed with the summary. (2) `Not Run` was dropped as a skip, but ctest counts it in "M tests failed", so any unbuilt binary made the log unreadable -- and the baseline already carries `test-hrx-host-resident # Not Run`. `Skipped`/`Disabled` stay excluded. - `ctest_known_fail.txt`: the measured failures, one per line with the reason. MEASURED on ryzen 2026-11-17 (gfx1201, GTT 22.6 GiB, `GGML_HRX_GTT_RESERVE_MB=1024`, SDK HSA runtime): 37 rows registered, 20 pass. 11 of the failures are one class -- `ggml_backend_supports_op(backend, rows)` false for a row op the backend has no kernel for (engine#2774/#2832). `test-hrx-host-resident` does not compile at this pin: its target compiles `ggml/src/ggml-hrx/host-weight-placement.cpp` without `ggml/src` on the include path, so `backend-context.h:3`'s `ggml-backend-impl.h` is not found; it is baselined as `Not Run` and the fork-side include fix is a separate PR. `test-hrx-ops`/`-loom` (271 cases, 694 s) stay excluded by the script's `-E`. Row count moved with the pin: the issue counted 43 at `ddd415f4a`; at the current pin the build registers 37 (38 `add_test(NAME test-hrx-…` occurrences, two of which need `GGML_HIP=ON`). * ci: run the fork's test-hrx-* rows from the HRX job (engine#2836) 37 `test-hrx-*` rows are registered in the fork's `tests/CMakeLists.txt` inside `if (TARGET ggml-hrx)`, and nothing built or ran one of them: `cmake/hrx.cmake`'s ExternalProject builds three binaries by name (`llama-server llama-bench llama-perplexity`) and never passed `LLAMA_BUILD_TESTS`. #2840 made one of them (the python stale-expectation check) run from the engine's suite; this makes the compiled rows run. - `ONEBIT_HRX_BUILD_TESTS` (OFF): forwards `-DLLAMA_BUILD_TESTS` to the fork's configure. It has to be a configure-time decision -- the rows do not exist otherwise -- and it stays off for lane builds so they do not pay for 34 extra binaries. - `hrx-build.yml`: configures with it on, builds the fork tree with `-k 0`, and runs the row that already exists for this (`fork_ctest_known_fail`, CMakeLists.txt:305). That row skips 77 in `ci.yml` (no HRX tree) and applies the known-failure ratchet here, so the job does not re-implement it. - It exports `IREE_HAL_AMDGPU_LIBHSA_PATH` from the cache: a ctest row inherits no engine environment and HRX dlopens the runtime, so with the distro's libhsa-runtime64 (no `hsa_amd_queue_create`) every device row reads `test skipped: no device available` -- a FAIL, because the fork registers that string as a failing regex. - `-k 0` because one row does not build at this pin: `test-hrx-host-resident` compiles `ggml/src/ggml-hrx/host-weight-placement.cpp` without `ggml/src` on its include path, so `backend-context.h:3`'s `ggml-backend-impl.h` is not found, and ninja otherwise stops all 34 binaries. The failure is not swallowed: ctest reports that row as `Not Run` and the baseline names it. - `ctest_known_fail.py`: three parse gaps made the ratchet answer "cannot tell" on a real log, which is the failure it exists to prevent. (1) ctest pads a LABELS column after the reason parens (` 38 - test-llama-context (Subprocess aborted) main behavior backend`), and `FAILED_LINE` required end-of-line after `)`, so those rows were dropped and the count disagreed with the summary. (2) `Not Run` was filtered as a skip although ctest counts it in "M tests failed", so any unbuilt binary made the log unreadable -- and the baseline had been carrying `test-hrx-host-resident # Not Run` all along. The trailing-label match is `[ \t]+`, not `\s+`: `\s` spans newlines and swallows the following entries. - `ctest_known_fail.txt`: the rows measured red, each with its reason. MEASURED, hrx-build on ryzen 2026-11-17 (111 rows after the script's `-E`): **8 red, 103 pass**, and before this PR zero of the `test-hrx-*` rows were built or run at all. At a GTT-reserve-1024 setting, 11 further rows red out with `requirement failed: ggml_backend_supports_op(backend, rows)` -- the kernel gaps of #2774/#2832 -- which is where those names come from; they pass on the runner's default reserve, so they are not baselined here. Row count moved with the pin: the issue counted 43 at `ddd415f4a`; the fork registers 37 at the current pin (38 `add_test(NAME test-hrx-…` occurrences, two of which need `GGML_HIP=ON`). --------- Co-authored-by: bong-water-water-bong <[email protected]>
) (#2860) * ci: run the fork's test-hrx-* rows from the HRX job (engine#2836) 37 `test-hrx-*` rows are registered in the fork's `tests/CMakeLists.txt` inside `if (TARGET ggml-hrx)`, and nothing built or ran one of them: `cmake/hrx.cmake`'s ExternalProject builds three binaries by name and never passed `LLAMA_BUILD_TESTS`. #2840 made one of them (the python stale-expectation check) run from the engine's suite; this makes the compiled rows run. - `ONEBIT_HRX_BUILD_TESTS` (OFF): forwards `-DLLAMA_BUILD_TESTS` to the fork's configure. It has to be a configure-time decision -- the rows do not exist otherwise -- and it stays off for lane builds so they do not pay for 34 extra binaries. - `hrx-build.yml`: configures with it on, builds the fork tree, and runs the row that already exists for this (`fork_ctest_known_fail`, CMakeLists.txt:305). That row skips 77 in `ci.yml` (no HRX tree) and applies the known-failure ratchet here. - It exports `IREE_HAL_AMDGPU_LIBHSA_PATH` from the cache: a ctest row inherits no engine environment and HRX dlopens the runtime, so without it the distro's libhsa-runtime64 (no `hsa_amd_queue_create`) makes every device row fail with "test skipped: no device available" -- a FAIL, because the fork registers that string as a failing regex. - `ctest_known_fail.py`: two parse gaps made the ratchet answer "cannot tell" on a real log, which is the failure it exists to prevent. (1) ctest pads a LABELS column after the reason parens (` 85 - test-hrx-buffer (Failed) hrx`), and requiring end-of-line dropped those rows, so the count disagreed with the summary. (2) `Not Run` was dropped as a skip, but ctest counts it in "M tests failed", so any unbuilt binary made the log unreadable -- and the baseline already carries `test-hrx-host-resident # Not Run`. `Skipped`/`Disabled` stay excluded. - `ctest_known_fail.txt`: the measured failures, one per line with the reason. MEASURED on ryzen 2026-11-17 (gfx1201, GTT 22.6 GiB, `GGML_HRX_GTT_RESERVE_MB=1024`, SDK HSA runtime): 37 rows registered, 20 pass. 11 of the failures are one class -- `ggml_backend_supports_op(backend, rows)` false for a row op the backend has no kernel for (engine#2774/#2832). `test-hrx-host-resident` does not compile at this pin: its target compiles `ggml/src/ggml-hrx/host-weight-placement.cpp` without `ggml/src` on the include path, so `backend-context.h:3`'s `ggml-backend-impl.h` is not found; it is baselined as `Not Run` and the fork-side include fix is a separate PR. `test-hrx-ops`/`-loom` (271 cases, 694 s) stay excluded by the script's `-E`. Row count moved with the pin: the issue counted 43 at `ddd415f4a`; at the current pin the build registers 37 (38 `add_test(NAME test-hrx-…` occurrences, two of which need `GGML_HIP=ON`). * ci: run the fork's test-hrx-* rows from the HRX job (engine#2836) 37 `test-hrx-*` rows are registered in the fork's `tests/CMakeLists.txt` inside `if (TARGET ggml-hrx)`, and nothing built or ran one of them: `cmake/hrx.cmake`'s ExternalProject builds three binaries by name (`llama-server llama-bench llama-perplexity`) and never passed `LLAMA_BUILD_TESTS`. #2840 made one of them (the python stale-expectation check) run from the engine's suite; this makes the compiled rows run. - `ONEBIT_HRX_BUILD_TESTS` (OFF): forwards `-DLLAMA_BUILD_TESTS` to the fork's configure. It has to be a configure-time decision -- the rows do not exist otherwise -- and it stays off for lane builds so they do not pay for 34 extra binaries. - `hrx-build.yml`: configures with it on, builds the fork tree with `-k 0`, and runs the row that already exists for this (`fork_ctest_known_fail`, CMakeLists.txt:305). That row skips 77 in `ci.yml` (no HRX tree) and applies the known-failure ratchet here, so the job does not re-implement it. - It exports `IREE_HAL_AMDGPU_LIBHSA_PATH` from the cache: a ctest row inherits no engine environment and HRX dlopens the runtime, so with the distro's libhsa-runtime64 (no `hsa_amd_queue_create`) every device row reads `test skipped: no device available` -- a FAIL, because the fork registers that string as a failing regex. - `-k 0` because one row does not build at this pin: `test-hrx-host-resident` compiles `ggml/src/ggml-hrx/host-weight-placement.cpp` without `ggml/src` on its include path, so `backend-context.h:3`'s `ggml-backend-impl.h` is not found, and ninja otherwise stops all 34 binaries. The failure is not swallowed: ctest reports that row as `Not Run` and the baseline names it. - `ctest_known_fail.py`: three parse gaps made the ratchet answer "cannot tell" on a real log, which is the failure it exists to prevent. (1) ctest pads a LABELS column after the reason parens (` 38 - test-llama-context (Subprocess aborted) main behavior backend`), and `FAILED_LINE` required end-of-line after `)`, so those rows were dropped and the count disagreed with the summary. (2) `Not Run` was filtered as a skip although ctest counts it in "M tests failed", so any unbuilt binary made the log unreadable -- and the baseline had been carrying `test-hrx-host-resident # Not Run` all along. The trailing-label match is `[ \t]+`, not `\s+`: `\s` spans newlines and swallows the following entries. - `ctest_known_fail.txt`: the rows measured red, each with its reason. MEASURED, hrx-build on ryzen 2026-11-17 (111 rows after the script's `-E`): **8 red, 103 pass**, and before this PR zero of the `test-hrx-*` rows were built or run at all. At a GTT-reserve-1024 setting, 11 further rows red out with `requirement failed: ggml_backend_supports_op(backend, rows)` -- the kernel gaps of #2774/#2832 -- which is where those names come from; they pass on the runner's default reserve, so they are not baselined here. Row count moved with the pin: the issue counted 43 at `ddd415f4a`; the fork registers 37 at the current pin (38 `add_test(NAME test-hrx-…` occurrences, two of which need `GGML_HIP=ON`). * docs: plan for i-quant prefill (engine #2832) Records the measured 8x gap between the packed formats and the i-quants at prefill, the wmma peak measured on the same box (51.7 TFLOPS f16, 52.6 from iu8), and a staged design: tile the weight once per batch (stage A), then move the inner loop to int8 matrix cores (stage B). Explains why chunking the decode kernel cannot close it: measured, bit-identical PPL, no throughput change. * ci: pin hrx at the fork commit that builds test-hrx-host-resident (#2761) 8f43d62 fixes the include paths so test-hrx-host-resident compiles, which means the row is no longer 'Not Run' in the fork ctest run. Drop it from the known-fail baseline so the ratchet notices if it breaks again. * registry: regenerate at the new hrx pin, and record the IQ1_S f16 pair narrowing registry_pins and registry_content fail on a pin bump until tools/registry_build.py runs against the submodules at their pins; this is the regenerated output (350 architectures, unchanged set). The pin also carries fc18ee2, which moved the IQ1_S codebook reader into motifs/kquant_iq1_s.loom with a new @ggml_iq1s_f16_pair (two fptruncs, one per 16-value packet). hrx_f16_narrowing_check flags it as a new narrowing body; it is the same f32->f16 publish the q6_k pair motif does, and the prefill tile feeds it activations already held in f32. --------- Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: bong-water-water-bong <[email protected]>
|
The sentence is there, and it cites the right predecessor: "A skip that creates files is the same defect as #2830, where a self-test wrote into the artefact a human reads; a reader who sees a new file cannot tell…" That is exactly the generalisation I asked for, and stating it as one class rather than two incidents is what makes it durable: a skip must touch nothing, because anything it leaves behind is indistinguishable from a result — the same reason #2830's fabricated
No further asks from me at this head. The row: passes at this pin, not in the skip baseline, four arms including the fail path ( |
Refs #2836 (the row half; the pin bump it waits on is a separate row with its own owner).
The gap
The fork registers 48 ctest rows and no engine job runs any of them — the engine never builds the fork's tests, so a row in
third_party/llama.cpp/tests/CMakeLists.txtruns only when a person typesctestin a fork checkout. Most of the 43test-hrx-*rows need a device and are right to be absent.check_stale_expectations.py(fork #419) is not: pure python, ~1 s, no fixture, no device — and it answers engine#2774's question (is a recorded-stale expectation still selected by no matcher?) mechanically.Why this is a wrapper and not a one-line
add_testThe script is not in the engine's submodule yet. Measured:
An
add_testpointing at that path would fail on every PR withcan't open fileuntil the pin moves — red from the moment it merges, which is the opposite of the cure. Sotools/ci/stale_expectations_check.pyreturns 77 and names the commit that turns it on, the same shape ashrx_f16_narrowing_checkwhen the corpus submodule is absent.Measured, both states
So the row is live the moment a pin bump carries the tool, and until then it says why rather than passing quietly.
The arms, and that they can fail
Self-test, hermetic (4 arms, temp trees):
The third arm is the one that matters: a wrapper that turned every failure into a skip would be a green tick over nothing.
Route
add_test(NAME hrx_stale_expectations …)+SKIP_RETURN_CODE 77, beside the otheradd_python_testrows.pre-pr-checks12 green / 3 skipped.Not claimed here: the other 42 fork rows. Auditing them for "does this need a device?" is #2836's follow-up, and each one that does not is another row worth a home — but that is a separate pass, and I would rather land one honest row than guess at forty-two.