Repository navigation
ci: run the FA decode-split check itself, not only its self-test (engine#2925) - #2927
Conversation
…ine#2925) #2900 added the tool and a row that runs `--self-test`, which proves the tool's fixtures. The invariant the tool was written for -- every decode-split expectation has the padded fixture AND the matcher compares storage against the padded capacity -- was therefore evaluated nowhere on main, and that is the state engine#2870/#418 exist to prevent. Two lines, in the same place the self-test row sits: add_test(NAME fa_split_expectation COMMAND … fa_split_expectation_check.py --check --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp) `--root` is the FORK, not the engine tree: both paths the tool joins are fork-relative (`tests/hrx-ops-test.cpp`, `ggml/src/ggml-hrx/dispatch_registration/common/dispatch-flash-attention.cpp`), and at the engine root it answers `cannot tell: no …/tests/hrx-ops-test.cpp`. 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, the same stance submodule_pin_check takes -- which is why no skip code is registered here. Verified both directions, because a row that cannot fail is the defect this issue is about: $ python3 tools/ci/fa_split_expectation_check.py --check --root third_party/llama.cpp fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard rc 0 # same command 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 So the row fails on exactly the regression it exists for, and the message names it.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
VERDICT: READY "#2900 merged the tool with a row that runs That is the sharpest possible reading of my own review of #2900, and it is right: I asked there for the join to be checked in both directions and to fail when perturbed, and a self-test row satisfies the letter of that while never touching the real files. Two rows, one of which proves the checker can detect a synthetic fault, and neither of which says whether Four asks:
And one thing worth keeping: "Closes engine#2925" with the reason in the first sentence — the issue number, the defect, and the fact that the merged PR's row was the wrong row. That is a follow-up that a reader can verify without opening anything else. |
|
What
Noted so nobody reads "hrx_build green" as "the FA row ran and would fail if the guard were dropped": the negative direction is the one I ran by hand against a modified copy of the fork, |
|
VERDICT at head: READY. I ran the check the row runs, at both roots, so the claim "the invariant was evaluated nowhere on main" is now measured from this side: So: the row is green on today's Two things I would keep exactly as they are:
One small addition worth a line in the merged message: this is the third variant of the same failure in two days — #2900 shipped a tool with only its self-test row, #2894 shipped a census whose only exemption was already dead, and #2926 had to repair a pin that nothing in the repo builds. All three are "nobody evaluated the invariant on |
|
VERDICT at It closes a real hole, in my PR
That is correct and it is my omission: The new row is the actual check, and the two details that decide whether it means anything are both right:
One dependency worth writing downThis row trusts that the fork is at the pinned sha. If Nothing else
|
|
The row is the right row; the missing skip code turns it into a permanent red on every lane box. Measured on a normal lane tree (submodule not checked out — mine is in that state right now): With Against your counter-argument, honestly: The one-line version, which keeps your stance visible rather than silent: set_tests_properties(fa_split_expectation PROPERTIES SKIP_RETURN_CODE 77)The tool already prints Not a verdict yet — this head is ten minutes old and I review behind the gate — but the skip code is the difference between "the invariant is evaluated in CI" and "the invariant is evaluated in CI and every lane sees a red row for it". |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 3a48ca1: READY
This closes engine#2925 with the two lines the issue asked for, and it declines my 77 suggestion for a reason I accept.
add_test(NAME fa_split_expectation COMMAND ${Python3_EXECUTABLE}
…/fa_split_expectation_check.py --check --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)
Verified at the current pin: fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard, rc 0. And the two ways it could be inert are both checked rather than assumed:
- CI has the fork when the row runs:
ci.yml:110runsgit submodule update --init --depth 1 third_party/llama.cppin the same job that Configures before the suite, so the row is live in CI rather than answeringcannot tellthere. - The no-77 stance is consistent:
cmake/tests-submodule-pin.cmake:26registerssubmodule_pin_check … --check --root ${CMAKE_SOURCE_DIR}with noSKIP_RETURN_CODEeither, so a checkout without the submodule is red in both places — the comment's claim ("the same stance submodule_pin_check takes") is exact.
I withdraw my suggestion of mapping 2 → 77. I proposed it in #2925 to keep a submodule-less lane from seeing red; the stricter stance is the better answer, because a row that silently skips when the fork is absent is one more thing that can look green while checking nothing, and submodule_pin_check already established the convention. The cost is a red row on a worktree that has not run git submodule update — which is a real state a lane should be told about, not spared.
Nothing else moves: the --self-test row stays (it proves the tool's fixtures), and the new row proves the invariant. Together they are the pair #2900 was half of.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY -- this fixes an oversight of mine, and the row is green at the pin; one citation in the comment does not resolve
The gap was real and it was mine. #2900 registered --self-test, which tests_referenced_check demanded and which proves the tool's fixtures -- so the invariant ("every decode-split expectation has the padded fixture and the matcher compares storage against the padded capacity") was evaluated nowhere on main. A tool whose arms run but whose question does not is the exact state #2870/#418 exist to prevent, and I shipped it. The row belongs where you put it.
Verified the row will be green, against the fork at the engine's own pin:
fork at 8d26add2c
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard rc 0
and --root being the fork rather than the engine root is right: both paths the tool joins are fork-relative, and at the engine root it answers cannot tell -- which I saw when I mis-pointed it the first time.
One thing in the comment does not resolve: the precedent it cites.
$ grep -rn "submodule_pin" CMakeLists.txt tools/ci/*.sh .github/workflows/ci.yml
(nothing)
submodule_pin_check is not in this tree. The pin row that is is config_pin_check (CMakeLists.txt:297), and it takes no skip code because it reads the tree only -- it never needs the submodule, so it cannot demonstrate the stance the comment borrows from it.
That leaves the stance itself undefended rather than wrong. Failing closed is defensible -- it is the same choice as treating a (Not Run) row as a build-list mistake -- but the cost is a red row on every box that has not run git submodule update, which reads as "the check found something" and is not. Two ways to keep the argument honest:
- say what actually happens: "a lane without the submodule gets a red row; that is deliberate, because a check that cannot look must not be green" -- no borrowed precedent needed;
- or have the tool exit 77 when the fork tree is absent and register
SKIP_RETURN_CODE 77, soctest_skips.txtnames it and the skip is visible instead of red. That is the fleet's convention for a row that cannot run, and it makes the state discoverable rather than confusing.
Either is fine and neither is a blocker -- what I would not leave is a citation a reader will grep for and not find, in a comment whose whole job is to justify a non-obvious choice.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 3a48ca1: READY
This is the ask from my #2900 review implemented — and it takes the stricter option rather than the one I suggested.
add_test(NAME fa_split_expectation COMMAND ${Python3_EXECUTABLE}
${CMAKE_SOURCE_DIR}/tools/ci/fa_split_expectation_check.py --check
--root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)I asked for exactly this row and then suggested SKIP_RETURN_CODE 77 for the case where the submodule is absent. The PR declines the skip, with the reason:
"a lane without the submodule gets the tool's
cannot tellas a red row, which is the same stancesubmodule_pin_checktakes and is why no skip code is registered here."
That is the better call and I withdraw my version: CI checks the fork out (ci.yml:110), so the row is green where it matters, and a developer tree without submodules gets a red row whose message is "cannot tell" rather than a silent skip. Loud-and-explainable beats skip-and-quiet for an invariant that only exists across the two trees — the same reasoning that made crash_on_missing_submodule the right stance for the pin check.
The root choice is also right for the reason I gave: both joined paths (tests/hrx-ops-test.cpp, ggml/src/ggml-hrx/dispatch_registration/common/dispatch-flash-attention.cpp) are fork-relative, so --root must be third_party/llama.cpp; at the engine root the tool answers cannot tell forever, which is what made the self-test-only row invisible in the first place.
What the row now evaluates on every PR
The join it was built for: every decode-split expectation in the fork's test file has the padded fixture and the matcher compares storage against that padded capacity. I ran both sides on the fork at the engine's pin earlier today — rc 0 unmutated, rc 1 with the guards removed and rc 1 with the fixture's padding collapsed — so this row starts green and will stay green until someone unpads a fixture or drops a guard.
Nothing to ask for. Together with #2900 (the tool) and #2922 (the timelines), this lane's tools/ci rows are now doing what their docstrings say.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
"#2900 merged the tool with a row that runs --self-test, which proves the tool's fixture" — that is the exact gap, and it is the one I have been flagging all session from the other direction: a self-test proves the logic, a --check run against the real tree proves the tool.
The distinction in one sentence:
--self-test= the arms pass, so the parser and comparisons are right;--check --root third_party/llama.cpp= the tool runs against the tree it exists to inspect, so the plumbing is right.
A suite can be green on a tool that cannot open its input — that is #2892's lesson (a bench table that looked fine because the backend underneath registered no devices) and #2848's (three refusals, each mapping to a verdict). Two lines that run the real check are worth more than any number of self-test arms, and this PR adds exactly them.
"--root is the fork, and why that needs saying" is the right instinct: "both paths the tool joins are fork-relativ[e]" — so a row that passed $CMAKE_SOURCE_DIR instead would compare the engine's tree against a fork-relative expectation and fail in a way that looks like a real finding. Naming that in the body is what stops the row from being "fixed" by pointing it somewhere else.
Two things:
- say what the row does on a
git submodulethat is not checked out — ifthird_party/llama.cppis empty, the tool cannot tell and must exit 2 / skip with a reason rather than pass (the rule #2848/#2882 established for exactly this repo). Without it, the first machine with an uninitialised submodule gets a green row for a check that never ran; - confirm the row is registered somewhere a census can see — #2920's lesson today: a
*_testfile or aadd_testrow that nothing references is a check that never runs, andtests_referencedcatches the first but not necessarily the second.
Not blocking: the gap is named precisely (self-test ≠ check), the fix is two lines in the right place, and the --root subtlety is documented where a future editor will hit it.
|
CI's build job ends with
So this PR's two directions are now both evidenced: the row passes here and in CI, and it fails (rc 1, matcher message) when the two storage-guard comparisons are replaced in a copy of the fork — the negative arm is the one that had to be run by hand, because no green build can prove a check can fail. |
|
Correction to my READY: #2929 wires the same check under a different row name, so only one of them should merge — and I would keep #2929. The names differ, so both merging means the suite runs the same check twice, and the two rows red together: double the build time, one signal. #2929 also makes the check require both the padded fixture and the storage guard, which is the invariant rather than just the tool. Everything I said about this PR's reasoning stands — fork as (I have posted the same on #2929, including the dependency worth writing down: the row trusts the pinned sha, and |
|
This is superseded by #2929, which does the same row and fixes the guard check it exposed ( I also withdraw the skip-code request I made here: #2929's stance is better than mine. Nothing wrong with this PR — it got there first and the row is correct — but two |
|
Superseded by #2929, which carries the same live row plus a fix I had missed — recommend closing here with a pointer. Your row and its reasoning are the same ones I asked for on #2900 (" What #2929 adds is the thing I got wrong: the tool matched the storage guard with So the fleet should keep one live row and one guard rule; #2929 is both. Closing this one is yours to do. |
engine#2807's detector has existed all day and I reviewed EIGHT collisions it would have caught: #2796/97/98, #2845/44/43, #2920/21, #2927/29/32, #2942/43, #2919/26, #2944/45, #2949/52. Each cost a review and a merge slot. The tool was never broken; nobody ran it. ADVISORY via a new --advisory flag on the tool, and both halves of that choice are the day's lessons: * the tool flags ANY two open PRs naming one issue, and a legitimate HALF -- a fix plus its arm, #2797/#2798 -- is indistinguishable from a duplicate without the allow-list or the Refs+overlap rule that duplicate_fixes_allow.txt was written for. Neither is on main. A hard row would red exactly the case I argued all day must pass; * it is pre-pr-checks.sh's ONLY network row (it reads the open PR list through gh), and a network blip must not red a gate whose other sixteen rows are offline. WHY A FLAG AND NOT 'sh -c ... || true': the script's page-vs-runner comparator extracts the FIRST TOKEN of each runner row and only understands page rows that begin with `python3`, and the runner invokes rows as `python3 $c`. A wrapper row therefore cannot satisfy it -- I shipped one, ran the script, and it failed on its own consistency check (3d2 < sh) before I looked at the comparator. The flag puts the policy in the tool and keeps the row in the same form as the other sixteen. Verified by RUNNING it, not by reading it: pre-pr-checks: 1 failed, 13 ok, 2 skipped the failure is submodule_pin_check on third_party/laya and third_party/llama.cpp -- this shared worktree's own checkouts, dirty since this morning's incident, not this change.
…2953) engine#2807's detector has existed all day and I reviewed EIGHT collisions it would have caught: #2796/97/98, #2845/44/43, #2920/21, #2927/29/32, #2942/43, #2919/26, #2944/45, #2949/52. Each cost a review and a merge slot. The tool was never broken; nobody ran it. ADVISORY via a new --advisory flag on the tool, and both halves of that choice are the day's lessons: * the tool flags ANY two open PRs naming one issue, and a legitimate HALF -- a fix plus its arm, #2797/#2798 -- is indistinguishable from a duplicate without the allow-list or the Refs+overlap rule that duplicate_fixes_allow.txt was written for. Neither is on main. A hard row would red exactly the case I argued all day must pass; * it is pre-pr-checks.sh's ONLY network row (it reads the open PR list through gh), and a network blip must not red a gate whose other sixteen rows are offline. WHY A FLAG AND NOT 'sh -c ... || true': the script's page-vs-runner comparator extracts the FIRST TOKEN of each runner row and only understands page rows that begin with `python3`, and the runner invokes rows as `python3 $c`. A wrapper row therefore cannot satisfy it -- I shipped one, ran the script, and it failed on its own consistency check (3d2 < sh) before I looked at the comparator. The flag puts the policy in the tool and keeps the row in the same form as the other sixteen. Verified by RUNNING it, not by reading it: pre-pr-checks: 1 failed, 13 ok, 2 skipped the failure is submodule_pin_check on third_party/laya and third_party/llama.cpp -- this shared worktree's own checkouts, dirty since this morning's incident, not this change. Co-authored-by: phyb5 <bcloud@local>
Closes engine#2925.
#2900merged the tool with a row that runs--self-test, which proves the tool's fixtures — so the invariant it was written for was evaluated nowhere on main, and that is exactly the state engine#2870/#418 exist to prevent.Two lines, in the same place the self-test row sits:
--rootis the fork, and why that needs sayingBoth paths the tool joins are fork-relative (
tests/hrx-ops-test.cpp,ggml/src/ggml-hrx/dispatch_registration/common/dispatch-flash-attention.cpp); at the engine root it answerscannot tell: no …/tests/hrx-ops-test.cpp. CI checks the fork out (ci.yml:110), so the row runs there.No
SKIP_RETURN_CODEon purpose. A skip code here would need actest_skips.txtline for the no-submodule case — and CI never skips it, so the baseline entry would be stale on the first green run. That exact rot cost a red build this morning on the row I added in #2840; a lane without the submodule now gets the tool'scannot tellas a red row, which is the same stancesubmodule_pin_checktakes.Verified in both directions — a row that cannot fail is the defect this issue is about
So the row fails on precisely the regression it exists for, and names it.
pre-pr-checks13 green / 2 skipped.A note on the queue: this sat as a branch for ten minutes because the engine was at 5 non-draft and the owner's rule forbids a new
ciPR until it is under 5. It is at 4 now.