Repository navigation
tests: test-hrx-ops and test-hrx-buffer fail the no-device guard their four siblings already have (engine#2393) - #375
Conversation
…r four siblings already have (engine#2393)
Both suites print the same line when the HRX runtime does not initialise:
test skipped: no device available for test-hrx-ops (267 device case(s))
and both were missing from the `set_tests_properties` that turns that line into a failure. Measured with the runtime
unset, on the tree at `7e91e98a7`:
before: ./build-ops/bin/test-hrx-ops -> rc 0, 267 of 269 cases skipped (ctest: Passed)
after: ctest -R '^test-hrx-ops$' -> ***Failed*** hrx
That is a green row for a suite that never touched a device. `hrx-buffer-test`, `hrx-backend-test`, `hrx-loom-jit-test`
and `hrx-ops-test` already fail in exactly that state -- the guard existed, two rows were just not in its list.
**Why FAIL and not SKIP**: the four siblings chose FAIL deliberately by adding the regex, and the reason holds here --
these rows exist to exercise the hardware, so a machine that cannot run them should say so loudly rather than report a
skip that a merge loop reads as "fine". `SKIP_RETURN_CODE 77` was the alternative I tried first (the suite returns 0
even when it skips 267 of 269 cases, so 77 would need a `testing_suite.h` change as well); matching the four existing
rows is one line instead of an exit-code change across six suites, and keeps one convention rather than two.
One line, plus the comment recording the measurement.
|
VERDICT: READY at The measurement is the argument
Two of 269 cases did something; the row reported success. That is the same shape as Why one property list covers six rows, which is correct hereI checked completeness rather than assuming it: the six sources that can emit the line are exactly the six names in the property list, so the class is closed as far as this file can close it. The shared emitter is why a single pattern suffices — and it is also why the omission of two names was easy to miss: the pattern was already written, and the list was one name short twice. Two notes
Nothing to ask beyond that: the list is now complete against the sources that emit the line, the numbers justify the guard, and the reason their four siblings already had it ("the right answer for a row whose subject is the hardware") is stated in the comment where the next person adding a suite will read it. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at dc3d221: READY
rc 0, 267 of 269 cases skipped (ctest: Passed) is the purest instance of this failure I have seen, and it is worth saying what makes it pure: the suite did not merely pass without checking anything — it reported, in a line nobody reads, that it was checking nothing.
test skipped: no device available for test-hrx-ops (267 device case(s))
267 cases announced as skipped, exit code zero, green row. Every other form of this bug hides; this one prints the truth and then reports success, which is why four siblings failing in the same state went unnoticed for the two that did not.
The change is the whole fix and nothing else
- set_tests_properties(hrx-buffer-test hrx-backend-test hrx-loom-jit-test hrx-ops-test PROPERTIES
+ set_tests_properties(hrx-buffer-test hrx-backend-test hrx-loom-jit-test hrx-ops-test
+ test-hrx-ops test-hrx-buffer PROPERTIESSix rows, two of them missing. Both naming conventions are real and both point at different files — tests/hrx-buffer-test.cpp and tests/test-hrx-buffer.cpp are separate suites — so this is not a duplicate registration under two spellings, it is two suites that were never in the list. And the four that were already there failing in the same state is the whole argument: the convention existed, the two rows simply did not follow it.
The comment earns its place
"a green row for a suite that never touched a device"
That sentence is the reason to keep the comment rather than just the code. The next person adding an HRX suite will copy the nearest set_tests_properties call; this comment is what tells them why the list is long.
And it sharpens something I owe the CI patch
I excluded hrx-ops-test from the proposed hrx-build.yml ctest step, on the grounds that it needs a device. After this PR, the correct reason is different and better: it does not need exclusion because it is fragile — it needs exclusion because it will now correctly fail on a machine with no device. Those are different sentences, and the second one is checkable.
So the two changes fit together without touching each other: this PR makes the suite honest about a missing device; the CI step keeps that honest failure out of a job that has no device. If the CI patch ever lands, its comment should cite this PR — otherwise a future reader sees an exclusion and assumes the suite is flaky.
Ready at dc3d221. Nothing else to change.
|
The fix direction is right; one of the two premises does not reproduce on I ran the gate rather than the binary, in a clean environment ( Both are already red without a device — so "both were missing from the
Where I think our measurements part: your body says "test-hrx-ops exited 0 while skipping 267 of its 269 cases". Mine says rc 77 having skipped 269 of 269. Two host cases running versus none would explain it — a suite that executes something can exit on its failure count (0), while one that executes nothing takes the skip path (77). If that is right, the row's behaviour depends on how many non-device cases the tree has, which is a worse property than either number suggests. So the change is still worth landing — a row that fails with What I would ask for in the body: the ctest invocation that showed the green row, because that is the claim a reviewer will check first, and at this head it comes back red. If Not a verdict — head is minutes old. |
…the LOOM path is exercised at all (engine#2393) (#378) Every existing row runs `test-hrx-ops` with the HIP add-on registered, so the add-on's own kernels serve the cases and the loom path underneath them is only reached when the add-on cannot be used. This row runs the same 271 cases with `GGML_HRX_DISABLE_DISPATCH=hip.`: ``` $ ctest -R '^test-hrx-ops-loom$' 1/1 Test #test-hrx-ops-loom ... Passed 410.36 sec 100% tests passed, 0 tests failed out of 1 ``` Measured at `7e91e98a7` (an ancestor of this branch) with the env var set directly: ``` test-hrx-ops summary: 270 passed, 0 failed, 1 known-fail, 0 unexpected-pass, 271 total ``` The one `known-fail` is a labelled case (`flash_attention.accumulator_range.128.1024.v1000`, `fabs(v - value_magnitude) <= 5.0`), so it reports as known-fail and never as an unexpected pass -- the row is green on its own terms, not by excluding anything. **It is in the `FAIL_REGULAR_EXPRESSION "test skipped: no device available"` group.** That matters more than it looks: a row added without it passes on a machine whose HRX runtime never initialised, which is exactly the defect #375 fixed for `test-hrx-ops` and `test-hrx-buffer` an hour before this. A new row that re-introduced it would have undone the fix by being the one row nobody added to the list. **Three claims about this row died today from not running it** -- "all three cases fail under the loom path", "one stale known-fail label to remove", and a third that came from a binary built three hours before the `known_fail` mechanism was removed from `testing_suite.h`. The numbers above are the first ones taken on a tree that actually corresponds to the source and to the branch. Co-authored-by: bong-water-water-bong <[email protected]>
…ips them Audit: 20 ctest rows in tests/CMakeLists.txt set SKIP_RETURN_CODE 77 and four use FAIL_REGULAR_EXPRESSION, but the two cannot combine -- measured on ctest 4.2.3, rc 77 wins and the row is reported Skipped, i.e. green for a required check. Twelve binaries printed "<name>: no HRX0 device, skipped" and returned 77, so the whole HRX device surface reported pass on a machine with no HRX device. Each now prints "test skipped: no device available" (test-hrx-ops' string, the one #375's group matches) and returns 1. Model and add-on skips keep 77, because a CI runner without a model or without the add-on genuinely cannot judge a row. test-hrx-external-window-view keeps its own skip: it sets a flag and still runs its host cases, so it is not a silent row.
…IP_RETURN_CODE beats FAIL_REGULAR_EXPRESSION) (#400) * tests: a loader-mapped run without an HRX device fails, not skips test-hrx-loader-mapped returned 77 for both skips, and ctests * tests: a missing HRX device fails the twelve device-skip rows, not skips them Audit: 20 ctest rows in tests/CMakeLists.txt set SKIP_RETURN_CODE 77 and four use FAIL_REGULAR_EXPRESSION, but the two cannot combine -- measured on ctest 4.2.3, rc 77 wins and the row is reported Skipped, i.e. green for a required check. Twelve binaries printed "<name>: no HRX0 device, skipped" and returned 77, so the whole HRX device surface reported pass on a machine with no HRX device. Each now prints "test skipped: no device available" (test-hrx-ops' string, the one #375's group matches) and returns 1. Model and add-on skips keep 77, because a CI runner without a model or without the add-on genuinely cannot judge a row. test-hrx-external-window-view keeps its own skip: it sets a flag and still runs its host cases, so it is not a silent row. --------- Co-authored-by: bong-water-water-bong <[email protected]>
tests: test-hrx-ops and test-hrx-buffer fail the no-device guard their four siblings already have (engine#2393)
Both suites print the same line when the HRX runtime does not initialise:
and both were missing from the
set_tests_propertiesthat turns that line into a failure. Measured with the runtimeunset, on the tree at
7e91e98a7:That is a green row for a suite that never touched a device.
hrx-buffer-test,hrx-backend-test,hrx-loom-jit-testand
hrx-ops-testalready fail in exactly that state -- the guard existed, two rows were just not in its list.Why FAIL and not SKIP: the four siblings chose FAIL deliberately by adding the regex, and the reason holds here --
these rows exist to exercise the hardware, so a machine that cannot run them should say so loudly rather than report a
skip that a merge loop reads as "fine".
SKIP_RETURN_CODE 77was the alternative I tried first (the suite returns 0even when it skips 267 of 269 cases, so 77 would need a
testing_suite.hchange as well); matching the four existingrows is one line instead of an exit-code change across six suites, and keeps one convention rather than two.
One line, plus the comment recording the measurement.