Repository navigation
build(just): mirror the generated-intrinsics CI job - #840
Merged
nihalpasham merged 1 commit intoAug 13, 2026
Merged
Conversation
unit-tests.yml runs three gates over the generated intrinsic catalog -- `check` that the checked-in generated sources are current, `probe --all` that every route still lowers to the recorded PTX, and `check-abi-history` that the append-only ABI ledger was not rewritten -- and nothing local ran any of them. A catalog edit could pass `just check` and still fail CI, and the catalog is the majority of the intrinsic surface: 986 entries across 35 generated files, beside 7 hand-written op modules. The three cost ~13s together and need no CUDA toolkit, so they join `check` rather than sitting beside it. `--skip-terminal` is CI's own flag for runners without the recorded CUDA 13.3 ptxas; llc comes from the pinned toolchain. `base_ref` defaults to `HEAD^`, matching CI's own fallback for pushes, and takes a branch point for longer branches (`just check-intrinsics upstream/main`). Also corrects the `check` docstring, which listed the book build as CI-only after NVIDIA#836 gave it a local mirror: `just book` is excluded from `check` deliberately, as the one gate needing a Python virtualenv, not for want of a recipe. Verified: `just check-intrinsics` passes on a clean tree (986 routes probed, 986 ledger entries preserved), the default and an explicit `base_ref` both dry-run correctly, and `just --list` shows the recipe with its default. Signed-off-by: Vyncint Ng <[email protected]>
Collaborator
|
Gist: Verified here:
Landing once CI is green. |
nihalpasham
approved these changes
Aug 13, 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.
The gap
unit-tests.ymlhas three jobs.just testmirrors the first two; the third,generated-intrinsics, had no local mirror and was not disclosed as CI-only either, so thecheckdocstring implied coverage it did not have. A catalog edit could passjust checkand still fail CI.That matters in proportion to the surface: the generated catalog is 986 entries across 35 generated files, against 7 hand-written op modules, so it is the majority of the intrinsic surface.
The three gates:
checkprobe --all --skip-terminalcheck-abi-history --base-refWhy they join
checkrather than sit beside itMeasured here: check 3s, probe 9s, abi-history 1s — ~13s total, and no CUDA toolkit required.
--skip-terminalis CI's own flag for runners without the recorded CUDA 13.3 ptxas, which leaves the pinned llc identity and the exact emitted PTX as what gets checked; llc comes from the pinned toolchain (it selected22.1.2-rust-1.96.0-nightlyhere, and the run passes withCUDA_HOMEunset).base_refdefaults toHEAD^, matching CI's own fallback for pushes — right for a single-commit branch, and anything longer wants its own branch point:just check-intrinsics upstream/main.One correction included
The
checkdocstring listed the book build as CI-only, which stopped being true when #836 gave it a local mirror.just bookis excluded fromcheckdeliberately — the one gate needing a Python virtualenv — not for want of a recipe. Reworded to say that.Verified
just check-intrinsicspasses on a clean tree: 986 routes probed, 986 ledger entries preserved;base_refboth dry-run correctly (just -n);just --listshows the recipe with its default, andcheckresolves with it in the dependency list.No GPU needed.