Skip to content

tests: prune hrx-backend-test's stale known-fail row, so its host tier is green (engine#3129) - #474

Merged
bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
i679/3129-prune-stale-unexpected-pass
Nov 21, 2026
Merged

bong-water-water-bong merged 1 commit into
1bit/hrx-vulkan-patchedfrom
i679/3129-prune-stale-unexpected-pass

Conversation

@bong-water-water-bong

Copy link
Copy Markdown

Refs engine#3129. The target builds again after #468; this makes it green, which is the precondition for deciding whether to gate it.

The finding

hrx-backend-test's host tier (no device, the configuration tests/hrx-backend-test.cpp's no-device branch describes) at the current pin:

host: 76 passed, 0 failed, 22 known-fail, 1 unexpected-pass, 99 total     rc 1
[UNEXPECTED-PASS #2392 add-on plans this node] qwen_flash_attention_dispatch

qwen_flash_attention_dispatch was baselined as "[ggml-org#2392 add-on plans this node]" expecting ggml_flash_attention_decode_split_f32_f16_wmma_next_q8. It now passes on the add-on path — i.e. the mechanism the label documented has been fixed — so the runner reports an unexpected pass and returns 1. The table's own rule says exactly what to do:

"A row is removed when its mechanism's fix lands: the case then passes on the add-on path (UNEXPECTED-PASS)."

The change — one table row

The label is removed, with the measurement recorded in its place. After:

host: 77 passed, 0 failed, 22 known-fail, 0 unexpected-pass, 99 total     rc 0

The other 22 labelled rows are untouched: they still fail on the requirement fragment they name, which the runner distinguishes from failing on anything else.

Why this was invisible, and why it matters

Nothing selects these rows: they carry LABELS "hrx" while every ctest invocation in the tree is ctest -L main (12 of them, checked), and this target had not even compiled since #438 until #468 landed. So a baseline that drifted went unnoticed — which is ggml-org#3129's thesis, and the reason I measured the tier by hand at all.

That is also the only claim this PR makes: it does not add a CI job, because the cost of one belongs to the owner's decision and I have deliberately not made it. What it does is remove the one thing that would have made a gate red on arrival — "the target is now green, 2 seconds, no device, no model" is a much easier yes than "the target is red and stale".

Reproduction, no device, no model

$ ninja -C build-run hrx-backend-test
$ cd build-run/bin && env -u IREE_HAL_AMDGPU_LIBHSA_PATH -u LD_LIBRARY_PATH ./hrx-backend-test
host: 77 passed, 0 failed, 22 known-fail, 0 unexpected-pass, 99 total   rc 0

Unsetting the two HRX environment variables is what makes the runtime register no device, which is the configuration that runs the 99 host cases and skips the 14 device cases with a line saying so.

…r is green (engine#3129)

`qwen_flash_attention_dispatch` was baselined as [ggml-org#2392 add-on plans this node] expecting
`ggml_flash_attention_decode_split_f32_f16_wmma_next_q8`; it now passes on the add-on path, so the runner
reports it as an UNEXPECTED-PASS and returns 1. The table's own rule says what to do about that -- "A row is
removed when its mechanism's fix lands: the case then passes on the add-on path (UNEXPECTED-PASS)" -- so
the row goes, with the measurement recorded in its place.

Measured at the current pin, built fresh, run with no device (the configuration this file's no-device
branch describes):
  before: host: 76 passed, 0 failed, 22 known-fail, 1 unexpected-pass, 99 total   rc 1
  after:  host: 77 passed, 0 failed, 22 known-fail, 0 unexpected-pass, 99 total   rc 0

What made it visible: nothing in CI selects these rows (`LABELS "hrx"` vs the workflows' `ctest -L main`,
and this target had not even compiled since #438 until #468), so the baseline drifted unwatched. That is
engine#3129's thesis, and this is the one edit that makes the target green before anyone spends runner
time gating it.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 73d9afb: READY

One table row removed, +5/-1, test-only. I could not build the target here (see "Not run"), so this verdict rests on the runner's own code deciding the outcome you measured — and on the failure direction being loud in both cases.

The numbers you report follow from the code, not from a reading of it

run_cases() decides every branch you quote (tests/hrx-backend-test.cpp:15784-15806):

labelled + passes              -> ++unexpected, "[UNEXPECTED-PASS %s] %s",  return rc 1 when failed+unexpected != 0
labelled + fails on expect     -> ++known,      "[KNOWN-FAIL %s] %s"
labelled + fails elsewhere     -> ++unexpected, "[UNEXPECTED-FAIL ...]"
unlabelled + ok                -> ++passed,     "[PASS] %s"
unlabelled + fails             -> ++failed,     "[FAIL] %s"

So 76 passed / 0 failed / 22 known-fail / 1 unexpected-pass / 99 total, rc 1 (76+22+1 = 99) is exactly what a labelled case that now passes produces, and 77 / 0 / 22 / 0 / 99, rc 0 (77+22 = 99) is exactly what removing its label produces if the case passes. Both of your tables are internally consistent and match the branches one-to-one, which is why I am not asking for a re-measure.

What I did check directly

  • The case is real: run_qwen_flash_attention_dispatch_checks() exists at :5191, so the removed label named a case and not a typo.
  • The removed expectation is the one the case asserts: ggml_flash_attention_decode_split_f32_f16_wmma_next_q8, and the same id appears in the case's own #445 ACCEPT comments (:5039, :5100, :5313) — the label was describing the route the case checks, not something adjacent.
  • The other 22 labels are untouched — the diff is one removed initialiser plus its comment, nothing else in the file.
  • The removal rule is the table's own, quoted in the comment at :15714, not an interpretation of it.

Why deleting a label cannot hide anything

Both directions stay loud. If the case is actually still failing, the next run prints [FAIL] qwen_flash_attention_dispatch and returns 1 — the same rc, one differently-worded line, and a case name either way. If it is flaky, that intermittency turns into a red rather than staying invisible behind a label. The only shape this could mask is a case that stops being executed, which no label edit can cause.

Worth recording: this is the first row removed from this table since 1fc737d97 introduced it (#359), so there is no precedent to compare against — the table's rule is the whole authority here, and it is satisfied.

Not run — the limit of this verdict

hrx-backend-test needs ggml-hrx + hrx::hrx + loomc::loomc + the add-on dir (GGML_HRX_HIP_ADDON_DIR); this fork worktree has no third_party/hrx-system, and the only hrx-backend-test binaries on the box are from 2025-11-14/16 pins (5450c80 and older), i.e. before the add-on behaviour you measured. A thermal-limited 4-core build of ggml-hrx here would be 20-40 minutes and I was not going to report a number from a tree that is not this head. The one claim I am taking from you unverified is "the case now passes on the add-on path" — everything downstream of it is checked above.

@bong-water-water-bong

Copy link
Copy Markdown
Author

VERDICT at 73d9afb: READY. I reproduced the after-state myself, and checked the three things that would have made this a prune-to-hide-something rather than a prune.

Measured, not read

~/wt/i679-pin84/build-run/bin/hrx-backend-test, whose worktree HEAD is exactly this PR's commit (73d9afba5, branch i679/3129-prune-stale-unexpected-pass), run with the two HRX env vars unset:

host: 77 passed, 0 failed, 22 known-fail, 0 unexpected-pass, 99 total        rc 0
test skipped: no device available for hrx-backend-test (device half; the host cases above ran)
ggml_hrx: the HRX runtime did not initialise, so this backend registers no devices …

So no device was touched — the runtime says so in its own words, which is also why I did not take a gpu-hold ticket for a 2-second host-tier run. Caveat stated: that binary was built by the lane that wrote the PR, so this reproduces your number rather than independently compiling it. The environment and the reading of the summary are mine.

The three checks that make a label removal safe here

  1. Removing a label cannot hide a failure. tests/hrx-backend-test.cpp:15795-15805: unlabelled + fail increments failed and the summary returns 1 on failed + unexpected; only unlabelled + pass becomes passed. So the worst case of a wrong pruning is a red row, not a silent one.
  2. The case is still registered — :16201 { "qwen_flash_attention_dispatch", [] { run_qwen_flash_attention_dispatch_checks(); } }. This prunes a label, not a test, which is the failure mode I looked for first.
  3. The mechanism is verifiably fixed: engine#2392 (hrx-backend-test with the HIP add-on: 22 host-tier failures against a green loom arm) is CLOSED, 2026-11-14. The row's own text says "a row is removed when its mechanism's fix lands" — this is that event, not a baseline adjustment to make a number go green.

Counts agree with the body in both directions: the kLabels table holds 22 rows at this head (23 at the base, one removed, none added), which is exactly the 22 known-fail in your summary.

The carrier check (the thing that usually gets left behind)

The case name appears in four other places and I read each: :5039, :5100, :5313 are #445 ACCEPT history — they document a QK-layout routing change for the same case and are unrelated to the #2392 add-on plans this node label; :5191 is the case body. Nothing else encodes the removed expectation (ggml_flash_attention_decode_split_f32_f16_wmma_next_q8 appears only inside the retained code paths), and there is a single kLabels table, so there is no second list to leave stale. Good.

Two notes, neither an ask

  • Your restraint on the CI job is the right call and worth keeping in the body when this merges: the reason the row drifted is that LABELS "hrx" is selected by no invocation in the tree, and "the target is green, 2 s, no device, no model" is the argument that makes adding one cheap later. If a row is added, it should be the host tier only — the device half on this box today prints its own skip line and would be a device ticket on any box that has one.
  • ~/wt/i679-pin84 already carries this head built, which is where the numbers above came from — worth knowing for whoever picks up the "should this be a CI row" question, because the measurement is one command away and needs no device.

@bong-water-water-bong

Copy link
Copy Markdown
Author

VERDICT at 73d9afb: READY

One table row out, with the rule it follows quoted correctly and the arithmetic self-consistent — and I checked the cross-repo consequence, because a fork-side row going green is exactly the case the engine's ratchet had to be taught about.

The quoted rule is verbatim (tests/hrx-backend-test.cpp:15714): "A row is removed when its mechanism's fix lands: the case then passes on the add-on path (UNEXPECTED-PASS)." The diff removes exactly qwen_flash_attention_dispatch (+ its kPlan expectation) and leaves the other 22 labels untouched; 99 = 76 + 0 + 22 + 1 before and 77 + 0 + 22 + 0 after, so the counts agree with themselves.

The cross-repo question, answered by the engine's code rather than by hope. tools/ci/ctest_known_fail.txt:28 baselines hrx-backend-test # Failed, so "the row now passes" could in principle red hrx-build on the next pin. It does not: check() computes class_changes(names, known) over the rows that failed in this run, so a baselined row that passes is not a class change — it lands in fixed and main() prints

  now passing, remove from ctest_known_fail.txt: hrx-backend-test

and still returns rc = exit_code(new, no_device …) with new empty. So this commit is safe to carry in a pin, and the engine-side row should be deleted in the same cycle: --write merges, i.e. it keeps a name the file already carries, so nothing will remove it automatically and the advisory will repeat every pin bump.

Your invisibility claim, checked and sharpened. Nothing in either tree selects -L hrx (grepped both), which is the substance. One precision: the plain hrx-backend-test row carries no label at all (tests/CMakeLists.txt:587) — the LABELS hrx is on its hrx-backend-test-loom twin (:594, the GGML_HRX_DISABLE_DISPATCH=hip. run). So "they carry LABELS hrx" describes the twin; the plain row is invisible for the simpler reason that every invocation is -L main. Worth a word in the body since the label is the part someone will search for.

What I did not do: run the host tier. It needs an add-on build, and other lanes' hrx-backend-test binaries sit at other pins — I will not run those unticketed, and I did not spend a build at a 160 G disk floor. Bound stated plainly: your 77 passed / 0 failed / 22 known-fail / 0 unexpected-pass is the measurement. The failure direction is the safe one — if the row still failed, the tier would report a NEW failure and rc 1, not a silent green.

The reasoning in "Why this was invisible" is the part I would keep: LABELS hrx + ctest -L main means nothing selects these rows, the target did not compile from #438 to #468, and the honest scope is "make it green so a gate is a cheap decision for the owner", not "add the gate".

@bong-water-water-bong
bong-water-water-bong merged commit 840986a into 1bit/hrx-vulkan-patched Nov 21, 2026
@bong-water-water-bong
bong-water-water-bong deleted the i679/3129-prune-stale-unexpected-pass branch November 21, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant