You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: fa_split_expectation_check runs only its self-test, so the fixture+guard invariant is unchecked on main #2925
fa_split_expectation_check.py merged (#2900, 9b3e27a6) with a row that runs --self-test only. The invariant it was written for — "every decode-split expectation has the padded fixture AND the matcher compares storage against the padded capacity" — is therefore still evaluated nowhere on main.
--self-test proves the tool's fixtures. The real check is --check, the join across third_party/llama.cpp's tests/hrx-ops-test.cpp and dispatch-flash-attention.cpp, and it passes today:
$ python3 tools/ci/fa_split_expectation_check.py --check --root <engine>/third_party/llama.cpp
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard
but nothing runs it, so the state that engine#2870/#418 exist to prevent — a fixture that allocates kv slots for a matcher that walks ceil(kv/64)*64, or a matcher that drops the storage guard — is checked only when a lane remembers to type the command.
What should change
Two lines, in the same place the --self-test row already sits. --root must be the fork, not the engine tree (the two paths are fork-relative; at the engine root the tool answers cannot tell: no …/tests/hrx-ops-test.cpp), and 2 (cannot tell) should map to a reported skip so a checkout without the submodule is not a red row:
The tool returns 2 for "cannot tell" and 1 for a real violation; the row above turns 2 into a skip and leaves 1 as red, which is the distinction the rest of tools/ci uses.
Why this is an issue and not a PR
Per today's queue rule the build queue is the bottleneck and tooling PRs are held until the open-PR count drops; this needs no build (source-only, ~0.1 s) and one line of CMake, so it should ride the next change that touches CMakeLists.txt rather than take a queue slot on its own.
Filed from the review of #2900, where I downgraded my own CHANGES so the tool could land rather than hold a queue slot for a second row — this is that row, recorded.
--root is the fork, as the issue says — both paths the tool joins are fork-relative, and at the engine root it answers cannot tell. CI checks the fork out (ci.yml:110), so the row runs there; a lane without the submodule gets that cannot tell as a red row, which is the stance submodule_pin_check already takes — and is why I registered no skip code: a SKIP_RETURN_CODE here would need a ctest_skips.txt entry that CI then never skips, i.e. a baseline line that goes stale on the first green run. That exact rot cost me a red build this morning on the row I added in #2840.
Both directions verified, because a row that cannot fail is the defect this issue is about:
$ … --check --root third_party/llama.cpp
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard rc 0
# against a copy of the fork with the two guard comparisons in dispatch-flash-attention.cpp replaced:
matcher: the test expects the split kernel and the matcher no longer compares storage against the padded
capacity, so it may claim a walk past the binding (the fault #418 removed) rc 1
pre-pr-checks 13 green / 2 skipped.
Why a branch and not a PR: the engine holds 5 non-draft PRs and the owner's rule is no new docs/ci/diag/tooling PRs until the count is under 5. This is a ci row, so it waits. If the count drops and I have not opened it within the hour, the branch is one git push away — say so here rather than letting it look abandoned.
PR: #2929 — the --check row, rooted at the fork (live in CI thanks to ci.yml:110).
Wiring it surfaced a second defect in the tool, measured before changing it: the guard check was any(g in dispatch_text for g in GUARD), so a matcher that kept the value comparison and dropped the key one passed — half of the fault #418 removed, which the row would have reported green. It is all(...) now, its --self-test fixture emits both comparisons (that fixture is why the weaker rule survived its own test), and there is a new arm for the half-invariant case. Verified by mutation: the combined if (key->ne[1] < … || value->ne[1] < …) neutralised → red under either rule; key half deleted → passed before, fails now.
Closing: fixed by #2927, which merged but did not close this issue (the body's Closes engine#2925 did not fire, which is how I found it still open).
Verified on main rather than from the PR body:
CMakeLists.txt:1556 add_test(NAME fa_split_expectation_check … --self-test) <- the fixture row (#2900)
CMakeLists.txt:1565 add_test(NAME fa_split_expectation … --check --root …/third_party/llama.cpp) <- the real check (#2927)
and the real check is green at the engine's pinned fork:
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard
So the defect this issue named — "runs only its self-test, so the fixtures it was written to protect are the only thing it evaluates" — is gone: the invariant is now evaluated on the fork tree at the pin, and a regression in either half (fixture padding, or the matcher's storage guard) fails a row.
Two things worth carrying forward from the review of #2927, since they are the parts a future reader will need:
The row reds, rather than skips, when the submodule is absent — deliberate (a check that cannot look must not be green), and its comment justifies it by citing submodule_pin_check, which does not exist in this tree. The real pin row, config_pin_check, reads the tree only and never needs the submodule, so it is not that precedent. Worth correcting in the comment, or moving to SKIP_RETURN_CODE 77 + a baseline entry so the state is visible in ctest_skips.txt instead of looking like a finding.
Activity
bong-water-water-bong commentedon Nov 20, 2026
Claimed (cl-game) — implemented and verified, holding the PR as a branch because the queue rule forbids a new tooling PR at 5 open.
Branch
cl-game/2925-fa-split-check, one commit, two lines inCMakeLists.txtnext to the existing self-test row:--rootis the fork, as the issue says — both paths the tool joins are fork-relative, and at the engine root it answerscannot tell. CI checks the fork out (ci.yml:110), so the row runs there; a lane without the submodule gets thatcannot tellas a red row, which is the stancesubmodule_pin_checkalready takes — and is why I registered no skip code: aSKIP_RETURN_CODEhere would need actest_skips.txtentry that CI then never skips, i.e. a baseline line that goes stale on the first green run. That exact rot cost me a red build this morning on the row I added in #2840.Both directions verified, because a row that cannot fail is the defect this issue is about:
pre-pr-checks13 green / 2 skipped.Why a branch and not a PR: the engine holds 5 non-draft PRs and the owner's rule is no new docs/ci/diag/tooling PRs until the count is under 5. This is a
cirow, so it waits. If the count drops and I have not opened it within the hour, the branch is onegit pushaway — say so here rather than letting it look abandoned.bong-water-water-bong commentedon Nov 20, 2026
PR: #2929 — the
--checkrow, rooted at the fork (live in CI thanks toci.yml:110).Wiring it surfaced a second defect in the tool, measured before changing it: the guard check was
any(g in dispatch_text for g in GUARD), so a matcher that kept the value comparison and dropped the key one passed — half of the fault #418 removed, which the row would have reported green. It isall(...)now, its--self-testfixture emits both comparisons (that fixture is why the weaker rule survived its own test), and there is a new arm for the half-invariant case. Verified by mutation: the combinedif (key->ne[1] < … || value->ne[1] < …)neutralised → red under either rule; key half deleted → passed before, fails now.bong-water-water-bong commentedon Nov 20, 2026
Closing: fixed by #2927, which merged but did not close this issue (the body's
Closes engine#2925did not fire, which is how I found it still open).Verified on
mainrather than from the PR body:and the real check is green at the engine's pinned fork:
So the defect this issue named — "runs only its self-test, so the fixtures it was written to protect are the only thing it evaluates" — is gone: the invariant is now evaluated on the fork tree at the pin, and a regression in either half (fixture padding, or the matcher's storage guard) fails a row.
Two things worth carrying forward from the review of #2927, since they are the parts a future reader will need:
submodule_pin_check, which does not exist in this tree. The real pin row,config_pin_check, reads the tree only and never needs the submodule, so it is not that precedent. Worth correcting in the comment, or moving toSKIP_RETURN_CODE 77+ a baseline entry so the state is visible inctest_skips.txtinstead of looking like a finding.--self-testbecausetests_referenced_checkdemands a runner, and I never added the row that evaluates the question. A tool whose arms run while its question does not is the state test-hrx-ops: 13 flash-attention rows expect the split/next_q8 kernel and get the general one #2870/census: review HrmTextForCausalLM as not an alias, report-only (#402) #418 exist to prevent, and it took a second PR to close it.