Skip to content

tools/ci/stale_expectations_check.py: describe the fork check as it is since fork #490 (engine#2774) - #3351

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-hrxtest/stale-wrapper-doc
Nov 23, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-hrxtest/stale-wrapper-doc

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Wording follow-up to fork #490 (engine#2774 part 2), which #3344 carried into the engine.

Since fork 5957ffd49, the fork's check_stale_expectations.py checks two things:

  • every <corpus>:<kernel> literal tests/hrx-ops-test.cpp expects has a GGML_HRX_KERNEL_REF;
  • the kRecordedStaleExpectations suppression table is gone.

It no longer checks that table's entries. Three places still described the old table, and this rewords them:

  • the docstring of tools/ci/stale_expectations_check.py;
  • its self-test fixture's printed text;
  • the CMake comment above the hrx_stale_expectations row.

Wording only. The fork tool kept its path and CLI, so the wrapper's behaviour is unchanged.

Checks (ryzen, engine main f7dacb830 pin):

  • tools/ci/stale_expectations_check.py --self-test: ok.
  • tools/ci/stale_expectations_check.py --root .: "192 expectation literal(s), every one selectable by a registration", rc 0.
  • bash scripts/pre-pr-checks.sh --base origin/main: 18 green, 2 skipped (no gpu-kernels tree), 0 could not be told.
  • No new test, so no ctest row or skip.

🤖 Generated with Claude Code

…s since fork #490 (engine#2774)

Since fork #490 (5957ffd49, carried by #3344) the fork's check_stale_expectations.py checks that every
<corpus>:<kernel> literal hrx-ops-test expects is registered and that the kRecordedStaleExpectations table
is gone; it no longer checks that table's entries. The wrapper's docstring, its self-test fixture text and
the CMake comment above the hrx_stale_expectations row still described the old table. Wording only: the
fork tool kept its path and CLI, so the wrapper's behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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.

Review from cl-inkling: wording only, and it matches what I verified when I reviewed fork #490 at 8fd5cf6a7. There, check_stale_expectations.py --check reports '192 expectation literal(s), every one selectable by a registration'. kRecordedStaleExpectations occurs 0 times. A literal renamed to an unregistered kernel fails with UNSELECTABLE and exit 1. The new docstring, the CMake comment and the self-test fixture's printed line all describe that, and the fixture's '192 ... every one selectable' line matches the real tool's output. No blockers.

@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.

cl-loomfun review: correct. Documentation only, plus one self-test fixture string.

  • 5957ffd49 is fork #490 ("hrx-ops-test: every expectation names a kernel dispatch can select; the stale table is gone"), and it is an ancestor of the engine's current llama.cpp pin f7dacb830. So the new wording describes the script the engine's row runs today.
  • At the pin, check_stale_expectations.py reports exactly what the docstring now says: UNSELECTABLE <corpus>:<kernel> literals, exit 0 when every literal is selectable.
  • The fake tool's printed line in the self-test only changes text; the assertions (rc 0 / rc 1 / prints-and-exits-0) are unchanged.
    Not run (no code path changes).

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Review from cl-buildenv: LGTM. Wording only, and it now describes what the fork tool does. When I reviewed fork #490 I ran check_stale_expectations.py --check at its head and got "192 expectation literal(s), every one selectable by a registration". Against the old pin (9db01568b) it FAILs with TABLE … kRecordedStaleExpectations plus the retired names. So both halves of the new docstring (literals registered, table gone) are the checks that actually run. The wrapper still calls only --check --root and maps rc to 0/1/77, so no behaviour changes.

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Outdated Test Fixture

The self-test fixture in tools/ci/stale_expectations_check.py still references the old expectation count of "31 recorded" instead of the new count of "192 expectation literal(s)". This is a wording issue that could mislead developers during local testing or debugging.

write(tool, "import sys; print('stale-expectations: 192 expectation literal(s), every one selectable')\n")

@bong-water-water-bong
bong-water-water-bong merged commit 54f0470 into main Nov 23, 2026
12 of 14 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-hrxtest/stale-wrapper-doc branch November 23, 2026 03:54
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