Repository navigation
test(examples): check the smoketest contract a new example cannot see - #683
Merged
nihalpasham merged 1 commit intoAug 7, 2026
Merged
Conversation
vyncint
force-pushed
the
test/guard-smoketest-example-contract
branch
from
August 6, 2026 16:27
e5b43ff to
981b9eb
Compare
scripts/smoketest.sh assumes two things about the examples that nothing verified, and neither is reachable without a GPU: the compile-only lane collapses every category into verdict_compile, so it exercises neither classify() nor the standard-category success marker. A `standard` example that verifies its results but prints no SUCCESS/PASS/Complete marker is reported as FAIL (no success marker). That landed two days ago: 981b9eb added a marker to disjoint_from_raw_parts on main after NVIDIA#670 (the new example) and NVIDIA#665 (stricter verdicts) merged in one batch. Nothing in an example's own directory says a marker is required, and its author cannot see the consequence without hardware. Separately, classify() falls through to `standard` for anything its seven arrays do not claim, so a misspelled or renamed entry does not fail -- it matches nothing and the example quietly gets the wrong verdict rules. All 45 entries across the 11 arrays are valid today, so that half is preventive. Add scripts/check-example-smoketest-contract.sh and run it from status-guard.yml, next to the existing guard that keeps ERROR_EXAMPLES and STATUS.md in step. It reads sources only: no cargo, no toolkit, no LLVM. The guard duplicates two of verdict_standard's greps, so it pins that coupling: if smoketest.sh stops grepping SUCCESS|PASS|Complete, or changes the skip pattern, the guard says so instead of quietly checking a contract that no longer exists. Following NVIDIA#643 it also fails closed on a missing python3 and on a parse self-test, rather than reporting success from a check that could not run. Fixes NVIDIA#682 Signed-off-by: Vyncint Ng <[email protected]>
Collaborator
|
Gist: #670 and #665 were individually green and jointly produced the false-FAIL this guard catches (patched on main as 981b9eb).
Closes #682. Merging. |
nihalpasham
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #682. Three files, no overlap with #679, #680, or #681.
Why
smoketest.shassumes two things about the examples that nothing verified, and neither is reachable without a GPU — the compile-only lane collapses every category intoverdict_compile, so it exercises neitherclassify()nor the standard-category success marker.A
standardexample that prints no marker is a false FAIL.verdict_standardrequiresSUCCESS/PASS/Complete; an example that launches kernels, verifies against exact expectations and returns is reportedFAIL (no success marker). That landed two days ago —981b9eb0added a marker todisjoint_from_raw_partsonmain:A new example is where this bites: nothing in its own directory says a marker is required, and its author cannot see the consequence without hardware.
A typo in a
*_EXAMPLESarray silently mis-categorises.classify()falls through tostandardfor anything its seven arrays do not claim, so a misspelled or renamed entry does not fail — it matches nothing and the example gets the wrong verdict rules. For atcgen05/wgmmaexample that loses the "PTX compiled on non-Hopper" path and starts reportingFAILon hardware it was never meant to run on. All 45 entries across the 11 arrays are valid today, so this half is preventive; it is included because it is the same shape and free to check alongside.What this adds
scripts/check-example-smoketest-contract.sh, run fromstatus-guard.ymlas a second job — next to the existing guard that keepsERROR_EXAMPLESandSTATUS.mdin step, which exists for exactly this class. Sources only: no cargo, no toolkit, no LLVM.The guard duplicates two of
verdict_standard's greps, so it pins that coupling: ifsmoketest.shstops greppingSUCCESS|PASS|Complete, or changes the skip pattern, the guard fails with "verdict_standard's contract changed; update this guard" rather than quietly checking a contract that no longer exists. Same trick as #648, where two hygiene fixtures had silently decoupled from the constant they pinned.Verification
CPU-only, no GPU.
main981b9eb0's marker linedisjoint_from_raw_partsWGMMA_EXAMPLESverdict_standard's success pattern changed*_EXAMPLESarrays removedpython3absent fromPATHRow 2 is the one that matters: it reproduces the real regression and names the same example you had to patch.
5–8 follow #643, where a guard reported success for three months because
rg ... || trueturned a missing binary into an empty result set.One thing worth knowing about how this was built
The counts the guard reports (11 arrays, 159 standard examples) match an independent scan I ran separately, and that cross-check earned its keep: my first attempt used a quote-pairing regex to extract string literals, which silently captured only 8 of
generated_ldmatrix's literals and produced 11 bogus "missing marker" hits — including that example, which visibly printsPASS: all …. The shipped version is line-based for that reason. Given the guard's whole job is to not be silently wrong, it seemed worth saying that the first draft was.scripts/check-error-example-status.shand both halves ofcheck-dependency-licenses.shstill pass on this branch.bash -nis clean and the workflow YAML parses.