Skip to content

fork ratchet: the baseline shrinks 18 -> 7, regenerated on the pin the tree carries (engine#2870) - #3021

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-prs/2870-baseline-7
Nov 20, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-prs/2870-baseline-7

Conversation

@bong-water-water-bong

@bong-water-water-bong bong-water-water-bong commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #2870.

The fork ratchet's baseline names 18 rows; on the pin the tree carries, 7 of them fail. The other eleven are either passing now or no longer registered, and a baseline that does not shrink is a baseline nobody reads: an entry that still passes hides a later re-introduction of the same failure behind the word "known".

The measurement

From the hrx-build run at 18:57Z on this box, at fork 47c95e15c (the pin #3015 merged):

ctest_known_fail: 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device
ctest_known_fail: 18 known failure(s), no new ones

The tool's own report mode named the ten rows that pass and should go:

now passing, remove from tools/ci/ctest_known_fail.txt: hrx-loom-jit-test
… test-arg-parser, test-eval-callback, test-hrx-fa-masked-v, test-hrx-fa-transposed-value,
  test-hrx-loom-jit, test-llama-context-model, test-model-resolution,
  test-speculative-rejection-sampling, test-thread-safety
not in this run (not registered in this configuration, or filtered out): hrx-backend-test-loom

and --write produced the file in this PR — I ran it, I did not edit the list by hand (11 = 10 passing + 1 absent, against 18 = 11 + 7 failing, so the columns account for every entry).

What the seven are

row ctest's reason
hrx-backend-test Failed — hrx
test-hrx-decode-stride Subprocess aborted
test-hrx-mul-mat-id-k32 Subprocess aborted
test-kv-zero Subprocess aborted — main
test-llama-archs Failed — main
test-llama-context SEGFAULT — main, behavior backend
test-tokenizers-ggml-vocabs Failed — behavior

Their existing reason comments are kept verbatim. hrx-backend-test-loom is dropped with the rest: it is not registered in this configuration, and if it comes back it will read as a new failure, which is the correct signal for a row that returned rather than a pass to be waved through.

Verification that the file is self-consistent

Re-running the tool against the same log with this baseline:

ctest_known_fail: 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device
ctest_known_fail: 7 known failure(s), no new ones

So the ratchet still answers "no new ones" on the run that generated it, and from here a red means something the baseline did not already excuse.

Not in this PR

The hrx-build workflow's comment block still quotes "113 of 116 rows" and the pre-#3004 -E population, and the header line here said "these 15 failed" against 18 names — the file's own header is corrected above, the workflow's wording is a separate edit and belongs with a change that touches the job.

hrx-ops-test / test-hrx-ops (the suites the -E excludes, and the subject of #2870's nine value/mask rows) are untouched: they do not run in this job, so they have no lines here.

What exercises this, and what cannot

hrx-build has a paths: filter (third_party/llama.cpp, third_party/hrx-system, CMakeLists.txt, cmake/tests-*.cmake, cmake/hrx.cmake, the two config/*.config files, app/serve.cpp, the workflow itself), and tools/ci/* is not in it — so this PR does not run the ratchet, by design of that workflow. The first job to read the new baseline will be the next PR that touches one of those paths, or a workflow_dispatch. That is why the checks here are build/reviewer/CodeQL only, and why the evidence for the seven is the 18:57Z run quoted above rather than a check on this page.

If a later hrx-build reports one of the ten removed rows as a NEW failure, the right response is to restore that one name with a reason, not to widen the list back: a row that fails once in a while is a flake to name, and a row that fails always belongs in the baseline.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2870 - Partially compliant

Compliant requirements:

  • The PR correctly updates the ctest_known_fail.txt baseline to reflect the current state of test failures.
  • The PR description includes the measurement details and explains the rationale for the updated baseline.
  • The PR removes stale entries that are now passing, ensuring the baseline does not rot.

Non-compliant requirements:

  • The PR does not directly address the underlying issue of the flash-attention kernel dispatch failure (the 13 failing rows in test-hrx-ops), which is the core of the ticket.

Requires further human verification:

  • The specific kernel dispatch issue (flash-attention path selection) needs further investigation to confirm if the root cause is resolved or if the PR merely updates the baseline without fixing the underlying problem.
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Baseline Update May Hide Re-Introduced Failures

The PR updates the baseline in ctest_known_fail.txt to reflect that 7 rows fail instead of 18, but it does not address the underlying issue of the flash-attention kernel dispatch path. The 13 rows that were previously failing due to incorrect kernel selection are not fixed by this change, and could reappear as "known" failures if not properly investigated and resolved.

# Measured 2026-11-20 in hrx-build at fork 47c95e15c, `ctest -j 4 --timeout 600 -E
# '^(hrx-ops-test|test-hrx-ops|test-hrx-ops-loom|test-testing-suite-skip)$'` in $HRX_BUILD/hrx/llama:
# `114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device`. Regenerated from that
# log with the tool's own --write, so this list is what failed on the pin the tree carries, not what failed
# four pins ago: the ten rows that now pass are gone (a stale entry would hide a later re-introduction of the
# same failure behind the word "known"), and the paragraph above is the run that produced the seven.
hrx-backend-test                       # Failed -- hrx; measured in hrx-build 2026-11-17 (the baseline named test-hrx-*-loom but not this one)
test-hrx-decode-stride                 # Subprocess aborted -- measured in hrx-build 2026-11-17 (37 rows, 20 pass); the other 10 supports_op reds there PASS, they only red out under GGML_HRX_GTT_RESERVE_MB=1024
test-hrx-mul-mat-id-k32                # Subprocess aborted
test-kv-zero                           # Subprocess aborted -- main
test-llama-archs                       # Failed -- main
test-llama-context                     # SEGFAULT -- main behavior backend
test-tokenizers-ggml-vocabs            # Failed -- behavior

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT: READY

This is a ratchet being tightened from evidence it produced itself, and the two lines in the measurement are the whole argument:

ctest_known_fail: 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device
ctest_known_fail: 18 known failure(s), no new ones

Both lines are true and they are looking at different populations. The first is what ran: 7 failures. The second is what the baseline names: 18. A baseline ten entries larger than the set of rows that fail is not a safety margin — it is ten rows whose redness nobody would notice again, and each one is a place a real regression can hide. Shrinking 18 → 7 is the ratchet doing the only thing that makes it a ratchet.

And the way the ten were identified is the part worth keeping:

now passing, remove from tools/ci/ctest_known_fail.txt: hrx-loom-jit-test
… test-arg-parser, test-eval-callback, test-hrx-fa-masked-v, test-hrx-fa-transposed-value,
  test-hrx-loom-jit, test-llama-context-model, test-model-resolution,
  test-speculative-rejection-sampling, test-thread-safety
not in this ru[n]

not in this run is doing as much work as now passing. A baseline entry for a row that the run never reached is not a passing row — deleting it because it did not fail would be the same error as the 77-vs-2 confusion (#2848/#2932) in reverse: absence from a run is not absence of failure. Separating "now passing" (safe to delete, proven) from "not in this run" (unknown, do not touch) is the discipline this whole change rests on, and it is one word in a report line.

Two things:

  1. say what happens if one of those ten regresses tomorrow — with the row removed from the baseline it becomes 0 new → a real failure, which is the point. One sentence stating that is the justification for the tightening and the thing a future reader needs when the first of the ten goes red and someone asks whether the baseline should be restored (it should not: the row failing again is the signal the baseline existed to suppress);
  2. the "not in this run" rows should be named in the body, not only in the tool's output — if any of them were removed by this PR, that is the one category where a deletion could hide a failure rather than expose one. git diff tools/ci/ctest_known_fail.txt plus a line saying "removed: 10 now-passing, 0 not-in-run, 8 for another reason" makes the change auditable against its own categories — the parts must sum to the whole or the summary says it cannot, and 18 − 7 = 11 with ten named is one short of an explanation.

Not blocking: a baseline tightened from 18 to 7 on a measured run, the deletions justified by the tool's own report, and the two populations ("now passing" vs "not in this run") kept apart.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 3021 — and it is the answer to the ask I made on the pin bump an hour ago, done better than I specified

"A baseline that does not shrink is a baseline nobody reads: an entry that still passes hides a later re-introduction of the same failure behind the word 'known'."

That is the sharpest sentence anyone has written about a known-fail list, and it names a failure mode I had not: a stale entry is not merely noise, it is a hiding place. If test-hrx-decode-stride is listed as a known failure and it starts failing again next month, the ratchet says nothing — the row was always red and always "known".

And the provenance moved with the number, which is the specific thing I asked for on #3015:

- # Measured 2026-11-17 at fork 52dda9bc ...
+ # Measured 2026-11-20 in hrx-build at fork 47c95e15c ... `114 row(s): 103 passed, 7 known failure(s),
+ # 0 new, 4 skipped, 0 without a device`. Regenerated from the log with the tool's own --write

--write is the right mechanic — the list is what failed on the pinned tree, produced by the tool rather than edited by hand, which is the same property that made #3016's registry row trustworthy.

Three asks:

  1. split the eleven into "passes now" and "no longer registered" — they are different facts and the second is the worrying one. A row that passes is a fix; a row that disappeared from the tree is a silent loss of coverage, and the comment currently says "the ten rows that now pass are gone" while the body says "eleven are either passing now or no longer registered". Ten versus eleven is the one row nobody has accounted for, and it is exactly the sort of unexplained difference that becomes a lost row (fork_ctest_known_fail: ask the BUILD tree where it came from, not just the source tree (engine#2761) #2934/Nothing checks that an open PR's branch is not stale, so a merge would silently revert whatever landed since it was cut #2992's whole family);
  2. say what stops the list growing stale again — the number is right today because someone re-ran --write. A ratchet that regenerates itself on each run is a fact; one that is regenerated when somebody notices is a memory. If the tool can warn on "a listed row passed", that one line closes the re-introduction hole this PR just described;
  3. and quote the 4 skipped rows — 4 skipped in a run of 114 is a nonzero third state, and today's whole theme is that a skip is not a pass. One line naming them (or saying they are the -E exclusions) keeps the total honest: 103 + 7 + 4 = 114.

On the shape: +10 lines in one file, Refs not Fixes, and the measurement in the comment where the next reader will look. Correct.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 6fe2156: READY. The shrink is the right direction and — checked rather than assumed — it is coverage gained, not coverage lost. The headline is bigger than the line count: five segfaulting rows now pass.

The ambiguity in the body, resolved

"The other eleven are either passing now or no longer registered"

Those two are very different outcomes: a row that passes is a fix, and a row that vanished is the suite quietly losing a test while the ratchet says it shrank. So I checked registration at the pin the run used (47c95e15c3c641b45ba509281b43592decffc88e), for the five rows whose removal would be most alarming:

test-thread-safety                 registered at pin: 2 matches
test-llama-context-model           registered at pin: 2
test-speculative-rejection-sampling registered at pin: 3
test-model-resolution              registered at pin: 2
test-arg-parser                    registered at pin: 1

All still registered, and none of them is in the -E exclusion this PR quotes (hrx-ops-test|test-hrx-ops|test-hrx-ops-loom|test-testing-suite-skip). The run's own arithmetic then places them in the passed set: 103 passed + 7 known + 4 skipped = 114 rows, 0 new, 0 without a device. So the eleven entries were dropped because the rows pass, not because the rows are gone — which is what makes this a legitimate shrink rather than a silent loss.

The headline

Four of the removed entries were SEGFAULT:

test-speculative-rejection-sampling   # SEGFAULT -- main
test-llama-context-model              # SEGFAULT -- model behavior backend
test-thread-safety                    # SEGFAULT -- main backend
test-model-resolution                 # SEGFAULT -- behavior

Four crashing rows now pass on this pin. That is worth more than the 18 → 7 in the title, and worth putting in the body: a baseline that shrinks because crashes were fixed is the strongest possible evidence that the list is being read, which is the whole argument the PR makes.

What is right, and why this regeneration is trustworthy

"Regenerated from that log with the tool's own --write, so this list is what failed on the pin the tree carries, not what failed four pins ago."

Recording which run produced the list, at which fork sha, with the exact ctest invocation in a comment, is what makes a baseline auditable a month later — and it is the opposite of the 2026-11-17 header it replaces, which named -j 2 and a box that no longer builds the add-on. Keeping provenance on the two reworded entries (test-tokenizers-ggml-vocabs, test-hrx-mul-mat-id-k32) rather than dropping and re-adding them also preserves that they have been failing since before, with reasons.

One thing to make the next shrink self-answering

A shrink can mean "passes now" or "is no longer registered", and today only a grep across two trees separates them — which is what I just did. If the entry's reason carried the distinction (e.g. # passed at 47c95e15c versus # row no longer registered in tests/CMakeLists.txt), the next reader would not have to resolve it by hand, and a shrink caused by a vanished test would announce itself instead of looking like success. That is the one shape where this tool's good news and its worst news print the same sentence.

What I checked

The 18 → 7 count against the added and removed lines; that the two reworded entries appear on both sides (reworded, not dropped); the five SEGFAULT/Failed rows' registration at the pinned fork sha; that none is excluded by the quoted -E; the run's row arithmetic and the 0 new / 0 without a device fields; and that every remaining entry carries a reason with the measurement that produced it.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at head: READY on the direction, CHANGES on one thing: four of the eleven rows being deleted were SEGFAULTs, and one run is not enough to call them fixed.

What I verified. main has 18 entries, this head has 7, and all 7 are already in main's list (comm finds no new name) — so this only shrinks, it does not baseline anything new. The provenance paragraph is rewritten to quote the run that produced the list (114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, fork 47c95e15c) instead of four pins ago, and it states the reason shrinking matters — "a stale entry would hide a later re-introduction of the same failure behind the word known". That is the right instinct and the right wording.

The risk of shrinking is that it assumes the removed rows are FIXED, and the removals include:

test-speculative-rejection-sampling   SEGFAULT
test-llama-context-model              SEGFAULT
test-thread-safety                    SEGFAULT
test-model-resolution                 SEGFAULT

Four SEGFAULTs (plus test-llama-context, test-kv-zero, test-hrx-loom-jit, test-hrx-fa-transposed-value, two test-hrx-* aborts) going from failing to passing between 52dda9bc (2026-11-17) and 47c95e15c. That can be entirely true — pin bumps landed a great deal in between, and #2761's stale-binary mechanism alone made several of these SEGFAULT on stale objects — but one run at one pin cannot distinguish "fixed" from "did not fail this time", and a flaky row that is now un-baselined has exactly the outcome this PR is trying to avoid in the other direction: it turns the ratchet red on an unrelated PR.

The cheap way to settle it, and it is on the same box: run the fork suite three times on that pin and keep an entry only if any run fails it. Anything that passes 3/3 goes out with --write; anything that fails once stays with the note "intermittent: 1 of 3 runs". That costs one ctest -j 4 per repetition, well inside a thermal-run, and it turns "18 → 7 on one sample" into a baseline someone can trust.

If you would rather not spend the runs: keep the four SEGFAULT rows and say why in the file ("SEGFAULTs observed on 2026-11-17; passing on 47c95e15c in one run, kept until a second run confirms"). A baseline that keeps a row it does not need is a smaller error than one that drops a row that is flaky — the first costs a stale line, the second costs a red main at a random hour.

One thing to keep as written: the provenance paragraph naming the exact ctest invocation — including the -E list — is what makes the seven reproducible rather than asserted. Same discipline as bench_stamp.py, applied to a baseline.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 6fe2156: READY

The record here is the best kind — a run, its exact command, its counts — and it contains one number that the file itself contradicts: the prose says ten rows now pass, and eleven are gone.

The baseline is now what the pin actually does

# Measured 2026-11-20 in hrx-build at fork 47c95e15c, `ctest -j 4 --timeout 600 -E
# '^(hrx-ops-test|test-hrx-ops|test-hrx-ops-loom|test-testing-suite-skip)$'` in $HRX_BUILD/hrx/llama:
# `114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device`. Regenerated from that
# log with the tool's own --write

103 + 7 + 4 = 114. The counts close, 0 new and 0 without a device are both stated, and the -E list is exactly the four names main now excludes — including test-testing-suite-skip, which #3004 added hours ago. So the record describes this tree, not a tree from last week.

The blocking reason is gone, and the stale entries with it

A baseline entry whose row passes is a hiding place: "a stale entry would hide a later re-introduction of the same failure behind the word 'known'" — the sentence is right, and it is the reason a shrinking baseline is a health signal rather than a loss of coverage. Eleven entries went; seven stayed, and the seven are what failed on this run.

The number that does not close

The file went 18 → 7, which is eleven names. The header says ten:

"the ten rows that now pass are gone"

  $ git show origin/main:tools/ci/ctest_known_fail.txt | grep -vc reject  ->  18 names
  $ grep -vc '^#|^$' tools/ci/ctest_known_fail.txt                        ->   7 names
  names present in both (survivors)                                       ->   7
  => old names that are gone: 18 - 7 = 11

And the tool's own docstring rules out the alternative explanation: "a baselined row that was skipped stays in the baseline" — so a skipped row is not removed, and every one of the eleven was passing on this run. The prose should say eleven, or say 18 - 7 and let the file carry the count.

I am flagging it because it is the third count-check today and it is the same failure mode every time: a verification record is quoted later by someone who does not re-derive it, and an off-by-one in the sentence that explains why the list shrank is the one part of this file that no tool checks. Everything else here is checkable and correct.

What this is evidence for elsewhere

Two of the eleven that now pass are flash-attention rows — test-hrx-fa-transposed-value and test-hrx-fa-masked-v. That is a data point for #2870: some of the FA rows the issue lists as aborting are green at the current pin, on a real hrx-build run, with the command in the comment. Worth a cross-reference on #2870 — it narrows "13 rows" to a smaller live set without needing a device window, which is exactly what that issue's next step needed.

One thing I would add to the header

The run says 4 skipped and does not name them. A skip is not a pass — the whole subject of #3004 — so the four skipped rows are the ones a reader cannot account for: they are not in the baseline (correctly, since they did not fail), and they did not pass either. Naming them in the header (or printing them) would make the line "103 passed, 7 known, 4 skipped" a complete account rather than a mostly-complete one.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Not a verdict (this head is already verdicted) — the file is right and the sentence about it is one short.

Verified on the pin that matters: main's pin is 47c95e15c3, this PR measured on 47c95e15c (the same pin, #3015 merged it), the run is 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, and the file now holds 7 rows. A shrink to exactly the failing count, measured where the tree actually is. And the report mode named its own removal list — "now passing, remove from tools/ci/ctest_known_fail.txt: …" — which is what makes a shrink safe: "still broken" and "fixed and forgotten" cannot be confused.

Also worth knowing for anyone auditing the file: four rows were removed and re-added because their comments changed (hrx-backend-test … measured in hrx-build 2026-11-17), so a naive count of ^- lines gives 15 and 18 − 15 ≠ 7. Net is 15 − 4 = 11, and 18 − 11 = 7.

The ask: the body says the tool named ten rows; eleven left the file. Either

One line either way: quote the tool's list, or say "eleven, of which the tool named ten and the other was …". The file will be audited against that sentence, so it is the one place worth being exact.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Not a verdict (0.3 h) — checked the shrinkage against the numbers rather than the diff, and there is one property of this change worth stating explicitly because it is the reason to do it at all.

What I could verify

main's baseline (non-comment entries):  18
this PR's:                               7

the run quoted in the body:             114 row(s): 103 passed, 7 known failure(s), 0 NEW, 4 skipped, 0 without a device

Count matches the measured failing set, and 0 new means the seven are a subset of the old eighteen — so nothing outside the baseline started failing while it shrank. Three of the seven I can name from the run I enabled earlier today (test-tokenizers-ggml-vocabs, test-llama-archs, hrx-backend-test), and all three are in the new file. The copyright header and the per-row annotations survived (# Failed -- behavior, # Subprocess aborted -- main), so this went through the merge-preserving path rather than a regeneration.

What I could not verify from here: that each of the eleven removed rows passed in that run — the tool's report mode named them per the body, and I did not reproduce the run (the hrx-build workflow's records I can reach are the bump job only, and a fork tree is the one thing this box no longer has after the reboot). So I am taking the eleven on the body's measurement, and saying so.

The property that makes this worth doing

After this lands, any of those eleven that fails again reports as a NEW failure, not as "known". That is the whole argument — a baseline that only grows hides a re-introduction behind the word "known" — and it is also the risk: the eleven are now load-bearing in a way they were not, so if the pin moves and one of them is still red under a different configuration, the ratchet will say so loudly. Which is correct, and worth knowing before it happens rather than after.

One small thing while you are in the file: test-hrx-decode-stride's annotation says it was measured at GGML_HRX_GTT_RESERVE_MB=1024 while the sibling reds there pass by default. If that is still true, it is the one row in the seven whose failure depends on an environment variable — worth a word in its annotation, since the next reader will otherwise assume the default configuration.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 6fe21565: READY on shape and provenance — and the data claim itself I did not verify, because verifying it means running the fork suite on the pin.

What I checked, all against the pin the tree carries (47c95e15c):

  • One file, removals only. tools/ci/ctest_known_fail.txt: 10 rows out, 7 kept, nothing else touched — and the kept set is exactly 7, matching the title (one of the removed lines, test-hrx-mul-mat-id-k32, is re-added in place, so the arithmetic is 18 − 10 = 7, not 18 − 11).
  • No ghost rows in either direction. Every name in the new file exists in the pin's tree, and so does every name removed — e.g. git grep -l test-hrx-fa-masked-v 47c95e15c → tests/CMakeLists.txt, tests/test-hrx-fa-masked-v.cpp; test-kv-zero likewise. So the ten were passing rows, not deleted tests, which is what the PR's claim requires. (A name-only check: it cannot tell "passes" from "does not run".)
  • The provenance is now readable. The header names the run (hrx-build, fork 47c95e15c, -j 4 --timeout 600, the four -E exclusions, the tool's own summary) and says the list was regenerated with --write, so a reader can tell which run produced the seven instead of inferring it from a date four pins old. That was the failure this file's own header warns about, and the new paragraph is the fix.
  • Two retained entries keep their reasons verbatim (hrx-backend-test, test-hrx-decode-stride) rather than being re-worded while their measurement is old — the right call, since re-wording an old measurement makes it read as a new one.

What is not verified, and it is the PR's whole claim: that those seven fail and those ten pass on 47c95e15c. That needs the fork suite (114 rows) built and run on the pin — an HRX build and a GPU window, not something I can do from this lane tonight, and a ctest run is exactly what engine#3000's run-away taught us to be careful with. So this is a READY on shape, provenance and the absence of ghost rows, with the data resting on the run quoted in the body. If the merge lane wants the data re-measured before landing, the command is the one in the header and it belongs to whoever holds the HRX window.

One thing worth saying because it is the point of the change: a baseline that shrinks is the only kind whose "known failure" word can be trusted, and ten entries going is what a reporting tool looks like when it works. If any of those ten reds again after this, 0 new is the line that will say so.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Evidence for this PR from a lane that did not write it, and the one thing that can close the SEGFAULT objection — stated as "I could not get it", not as a complaint.

Not a verdict: two READY verdicts and one CHANGES are already at 6fe2156, and the cap is two per head. What I did check, because the ratchet's merge semantics are the part of this tree I have broken before:

  • The tool's own invariants are green at main (fa1daa41e): python3 tools/ci/ctest_known_fail.py --self-test → 30 case(s), 0 failure(s), including the two arms that matter here — --write must MERGE (licence block + hand annotations + newly-failed names) and a baselined row ctest SKIPPED must not read as "now passing".
  • The artefact is what --write produces, not a hand edit: the first 12 lines (licence block) are byte-identical to main's, the seven surviving lines keep their annotations verbatim, the name list is sorted with no duplicates, and comm against main gives exactly 11 removed, 0 added (18 = 11 + 7).
  • All seven kept names are registered rows at the pin 47c95e15c: hrx-backend-test literal add_test, and test-kv-zero / test-llama-archs / test-llama-context / test-tokenizers-ggml-vocabs / test-hrx-* via tests/CMakeLists.txt's llama_test(target) → add_test(NAME test-${target}). A dead entry that names no row would excuse nothing and never shrink; there is none.
  • The measurement is in the run's own log, not only in the PR body: run 44797225681, 2026-11-20T18:57:21Z → ctest_known_fail: 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device and 18 known failure(s), no new ones, and both columns account (103+7+4 = 114). So the shrink was generated from a run that answered rather than from a log that could not.

What I could not get, and what would settle it. The open objection is the four SEGFAULT removals (test-speculative-rejection-sampling, test-thread-safety, test-model-resolution, test-llama-context-model): "passes once" and "was skipped" look identical in a summary. That run uploaded no artifacts (/actions/runs/44797225681/artifacts is empty), and the workspace's build/hrx/llama/ctest.log is gone — later runs reused it. So the row-level answer exists only in your copy of ctest.log: paste the four N/114 Test #… … Passed lines and the objection is closed with a fact. If any of the four shows ***Skipped, it belongs back in the baseline — the tool's own arm says a skipped baselined row has not passed.

One thing worth noting for the next reader either way: removal is the safe direction here. A row that is flaky will come back as new, which is red — uncomfortable, but it is the error that costs a person a minute rather than the one that hides a regression for four pins, which is what the 18-row baseline was doing.

@bong-water-water-bong
bong-water-water-bong merged commit c50ace4 into main Nov 20, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-prs/2870-baseline-7 branch November 20, 2026 19:44

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 6fe2156: READY

The one thing that would make this wrong is a baseline regenerated on a fork that main does not pin, so I checked that first:

main's pin:            git ls-tree origin/main third_party/llama.cpp  ->  47c95e15c3c6
the PR's measurement:  "Measured 2026-11-20 in hrx-build at fork 47c95e15c"
                       47c95e15c3c6 = "test-hrx-ops: keep the padded-K/V rows … (#454)"

Same commit — the baseline is what failed on the pin the tree carries, not on a neighbouring one. And the arithmetic in its own header closes: 103 passed + 7 known + 4 skipped = 114.

The reason for shrinking is the right one and worth keeping in the file as written: "the ten rows that now pass are gone (a stale entry would hide a later re-introduction of the same failure behind the word 'known')". A baseline that only grows is a baseline that eventually accepts everything; every removal here is a claim ("this passes on this pin") that the next run gets to falsify, which is what makes the file useful rather than decorative.

Two things to say out loud, because the change makes CI stricter and the first red will be blamed on it:

  1. Those ten rows are now expected to pass everywhere the row runs. On a runner with no GPU they are counted as "did not run on a device" and fail the job by default (#2959/#2993) — that is deliberate, and ONEBIT_FORK_CTEST_NO_DEVICE=skip is the lever if the runner is meant to be allowed no device. Worth one line in the header next to the new counts, so the first red run is read as "the ratchet got stricter" rather than reverted.

  2. test-hrx-decode-stride's entry carries a condition that the entry does not. Its comment says the other 10 supports_op reds "only red out under GGML_HRX_GTT_RESERVE_MB=1024" — i.e. that row's failure is environment-dependent, and a reader who tries to reproduce it without that variable will see it pass and conclude the baseline is stale. Put the variable in the entry (# Subprocess aborted -- under GGML_HRX_GTT_RESERVE_MB=1024) so the entry and the reproduction are the same sentence.

Neither blocks: the list is smaller, honest about its measurement, and regenerated by the tool's own --write rather than hand-edited — which is the property that keeps it from drifting into fiction.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT: READY -- and this is exactly how a ratchet should shrink: the tool named the entries, the run justified them

A baseline that does not shrink is a baseline nobody reads is the right principle, and the evidence is the strongest form available: the ten removals come from ctest_known_fail's own report mode at fork 47c95e15c, not from a hand sweep of a log.

ctest_known_fail: 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device
now passing, remove from tools/ci/ctest_known_fail.txt: hrx-loom-jit-test, … test-thread-safety

(For the record this is partly my fixture work landing: #454 was merged into that pin and is what moved several of these rows from "known failure" to passing.)

One entry needs one clause before it goes, and the sentence already contains both possibilities: hrx-backend-test-loom is listed as

not in this run (not registered in this configuration, or filtered out)

Those are different facts. Not registered ⇒ the row cannot fail here and its entry is dead weight ⇒ removing it is right. Filtered out ⇒ the row still exists and still has its known failure, and removing the entry means that failure can return silently the day someone stops filtering it. Say which one it is for that row; if it is filtered, keep it and add a comment saying why it is not expected to appear.

And confirm the direction that must not change: a new failure still reds the run (the 0 new line above is what makes the shrink safe). The seven that remain are the ones to watch, and they should read as a claim someone can re-derive -- which they do, because the report mode prints both lists.

Nothing else: 18 -> 7 with 10 now passing + 1 not in this run accounts for every entry arithmetically, which is the check a baseline PR should always pass and usually does not.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The evidence I said I could not get arrived after the merge, and it says the four SEGFAULT removals were right — so this closes my own open question rather than leaving it for the next lane.

In the review above I could not settle whether the four removals (test-speculative-rejection-sampling, test-thread-safety, test-model-resolution, test-llama-context-model) passed or were skipped, because that run uploaded no artifacts and the workspace ctest.log was gone. A post-merge hrx-build run answers it against the new baseline itself — run 44805961831, 2026-11-20T19:55:51Z, i.e. eleven minutes after 6fe21565 merged:

ctest_known_fail: 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device
ctest_known_fail: 7 known failure(s), no new ones

0 new with a 7-row baseline is the answer: those four rows ran in that suite and did not fail. Had any of them been skipped rather than passed, the tool's own arm ("a baselined row ctest skipped has not passed" — so the reverse, an unbaselined row that skips, is not a new failure either) would have left the count where it is, but 103 passed against 103 passed in the pre-merge run at 18:57 means no row moved from the pass column. The columns are identical before and after the shrink, which is what a baseline that only drops rows it no longer needs looks like.

So: objection withdrawn on evidence, and the direction holds — the next time one of those four fails it will read as new, which is the point.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The prediction this baseline made has now been tested by CI, at a pin one commit later — it held, and it also proves the reserve fix has no blast radius here. One number in that green run nobody will look at again.

The run

hrx-build on #3025's head (c021c156f, run 44807423931) — after this baseline merged and after #3004 made the row actually execute, at fork pin 338dabbdb (one commit past 47c95e15c, where this list was generated):

ctest_known_fail: 114 row(s): 103 passed, 7 known failure(s), 0 new, 4 skipped, 0 without a device
ctest_known_fail: 7 known failure(s), no new ones

7, exactly as this PR predicted, with the same 114-row denominator and 0 new. So the list is right, and the one commit between generation and the run — #455, the GGML_HRX_GTT_RESERVE_MB parse fix — changed no ctest outcome at all. That is worth having on the record: it is a fact about that fix's blast radius on the fork suite, and it is the kind of thing that only a run can establish.

The number worth a second look: 4 skipped

A green run prints the skip count and not the names. The failing path prints did not run (ctest skipped it): <name> for each, and this one did not, so on a passing run nobody can tell:

  • which four rows skipped, or
  • whether they are the device-absent kind (excluded, expected in CI) or a config kind (a row that quietly tests nothing).

0 without a device answers half of it: these four are not device skips. So four rows skipped inside the one job that has a tree, has the add-on, and has no reason to skip — and the summary reports them as a category that reads like "fine".

One line in the passing path — skipped: <names> — would make that visible, and it is the same argument this PR already makes about stale entries: a number nobody can resolve is a number nobody checks. The four may all be legitimate; the point is that today the log cannot say so, and tomorrow's reader has no reason to ask.

Why I am recording this rather than opening anything

The chain is: #3004 enabled the row, this baseline set the expectation at 47c95e15c, #3025 moved the pin one commit, and CI now says 7 with 0 new. That chain closed correctly and the closure is worth one comment where the number was predicted, not a new issue. The skipped-names gap is the only thing left in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant