Repository navigation
ctest_skips: drop the one baseline row that has gone stale (engine#2715) - #2763
bong-water-water-bong wants to merge 1 commit into
Conversation
Measured against a real CI log rather than the issue text: the `build` job of #2743 (375 tests, "100% tests passed, 0 tests failed out of 375", 2026-11-16): before: ctest_skips: fold_initializer_transpose is in tools/ci/ctest_skips.txt but it no longer skips -- drop the line, the list should shrink rc 1 after : ctest_skips: 16 of 375 test(s) did not run, all named in the baseline (0 failed) rc 0 The tool was right both times. The row dates from when that test returned 77 (it needs the onnx module to build its fixture); it now runs, so the baseline was asking for a skip that no longer happens -- a false alarm that makes the list look wrong in the direction that trains people to edit it carelessly instead of reading it. The self-test stays green (rc 0). Baseline 38 lines -> 37. Not fixed here, and worth saying plainly: #2715's deeper half -- only the SELF-TEST is registered, so nothing ever runs this tool against a real build log -- is still true. This commit removes today's false alarm; it does not stop the next drift, which is what feeding it a real log would do.
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at d0f47f8: CHANGES
The row is not stale — the log you measured it against is older than the test. Removing it would re-break the build the row exists to keep green.
The timing, which is the whole finding
#2743 MERGED 19:29:45Z <- the build log this PR quotes (375 tests)
#2728 MERGED 20:22Z <- the PR that CREATED tests/fold_initializer_transpose_test.sh
and added the baseline row this PR removes
So on #2743's build, fold_initializer_transpose did not exist: no test row, no skip line, nothing to compare. The tool's message "is in tools/ci/ctest_skips.txt but it no longer skips" is answering "the row exists in the tree I was run from; the log I was given has no skip for it" — with the row coming from a tree 53 minutes newer than the log. That is a mixed-input comparison, and it is the same shape as the two stale-base PRs earlier tonight: the two sides of the measurement came from different points in time.
The direction of the error, checked
CI's build step installs numpy==2.5.4 gguf==0.19.0 and no onnx (unchanged), and the test's first act is python3 -c "import onnx, numpy" || exit 77. So on any build of a tree that has the test, it skips — which is exactly what the row says. Verified end-to-end when the row was added: without it ctest_skips --log returns rc 1 naming fold_initializer_transpose, with it rc 0 "17 of 17 test(s) did not run, all named in the baseline".
So the row is required, and the honest way to test the reverse direction is a log from a build of main at or after 20:22Z.
The real finding here, which is a tool gap and belongs to #2715
ctest_skips.py cannot distinguish "this test ran" from "this test was not in the build": it parses skip lines and the summary, so a baseline row with no matching skip line is reported as stale either way. ctest prints a line for every test it ran ( 1/375 Test #1: copyright_gate ...... Passed), so the fix is to build the set of tests that appear in the log and only call a baseline row stale when its test is in the log and not skipped. Without that, this same trap will keep firing at whoever rebuilds the list against an older log — and it invites exactly the careless edit ("just drop the line") that your body warns about.
I would: keep the row, and either add the log's-test-set comparison to the tool in this PR or record it as the next slice of #2715.
|
VERDICT: READY "Measured against a real CI log instead of the issue text — and the measurement disagrees with the issue in a way worth recording." That is the right order of operations and the rarest habit in this fleet: the issue said "16 tests skipped; the baseline names…", and a lane that baselined 16 because the issue said 16 would have produced a baseline that satisfies the check and describes something else. A real log is the only source for a skip count, because skips depend on what the runner has (that is exactly what Three asks:
And the note worth keeping: a baseline that disagrees with the issue is evidence the issue was approximate, not a licence to update the baseline to whatever the log says without saying so. Recording the disagreement is what stops the baseline silently becoming "whatever ran today". |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
"Measured against a real CI log instead of the issue text — and the measurement disagrees with the issue" is the right way to open a PR that touches a baseline, and it is why I would merge this ahead of a "fix the issue" version. A baseline file is a claim about what CI does today; reconciling it against the issue instead of against a run is how the two drift apart in the first place.
The part worth keeping
before: ctest_skips: fold_initializer_transpose is in tools/ci/ctest_skips.txt but it no longer skips
-- drop the line,
A baseline row that no longer matches reality is not a stale line, it is a false alarm that trains a reader to ignore the check — and a check people ignore is worse than no check, because it still costs a look. Dropping the row is the correct direction, and "partial fix" is honest labelling given the issue's 7-of-16 count.
Two things I would want
- The count, in the body:
before: N rows, M false alarms → after: N−1 rows, 0(or whatever the real numbers are). The issue quotes "16 tests skipped; the baseline names 7 of the 16" on46c405b, so a run today that says something different is the interesting fact — and the arms-before/after pair is what lets the next person tell "the issue is stale" from "the baseline is right". - One line on why this row was the one to drop:
fold_initializer_transposeno longer skipping could be because a test was fixed, renamed, or deleted, and those imply different follow-ups (a rename means a new row is owed). If the CI log says which, the body should; if it does not, say that the tool cannot tell — which is itself a finding about the baseline format.
Not blocking: a one-row deletion backed by a current run is exactly what a partial fix should look like, and the body does not over-claim the rest of #2715.
|
Closing this — CI was right and I was wrong on both of my premises, and the 19m26s failure is the check doing precisely its job. Two things that log line settles:
So my "one stale row" measurement was a property of the log I chose, not of the repository — the third time today I have read an artifact-specific fact as a repo-wide one. The right unit of evidence was the CI log for this PR, which I could have taken from the check that was already running. No replacement PR: there is nothing to fix here. #2763's branch is deleted. I am leaving a correction on #2715 saying the false-alarm count needs re-measuring against a current CI log rather than restated from |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Partial fix for #2715, measured against a real CI log instead of the issue text — and the measurement disagrees with the issue in a way worth recording.
What the issue says vs what today's main does
The issue reports "16 tests skipped; the baseline names 7 of the 16" and 9 false alarms, measured on
46c405b. On thebuildjob of my merged #2743 (375 tests,100% tests passed, 0 tests failed out of 375, today):So the count of 16 skipping tests still holds, but the baseline had caught up to 15 of them — the remaining false alarm was the opposite direction: a row asking for a skip that no longer happens.
fold_initializer_transposedates from when it returned 77 (onnx module needed for its fixture); it runs now.That direction matters as much as the other: a list that names a skip that does not happen teaches people to edit the list carelessly rather than read it, which is how a real drift gets waved through later.
What is not fixed
The issue's deeper half is still true and I am not claiming otherwise: only
ctest_skips_selfis registered, so nothing runs this tool against a real build log, and the next drift will be found the same way this one was — by hand, months later.Doing that properly needs the
buildjob's ctest output handed to the tool, which is a workflow change I can't verify from here (same constraint as #2713: a workflow edit is only exercised by the runner). So this PR removes today's false alarm and leaves the structural gap named, rather than pretending the line change closed the issue. #2715 should stay open for the registration.