Skip to content

ci(book): nothing ties the dialect-nvvm page's catalog stamp to catalog.json #1090

Closed

Description

@nihalpasham

#1052 refreshed the dialect-nvvm book page after two op-adding PRs rotated the catalog stamp, and the review found the page has no automated freshness check: the page prints the catalog SHA and its own rule says a mismatch means every count is stale, but nothing in CI compares the printed stamp against intrinsics/catalog.json. The page failed its own test for weeks (560 printed vs 570 in the tree) and only a hand audit caught it.

A small gate closes this permanently:

  • hash intrinsics/catalog.json (first 8 hex of SHA-256, the format the page prints),
  • grep the stamp out of cuda-oxide-book/compiler/mlir-dialects.md,
  • fail with a message pointing at the page when they differ.

That turns "the counts are stale" from a silent rot into a red check on the op-adding PR itself, the same pattern the generated-reference check gate uses for intrinsics/generated-reference.md. Counts themselves stay hand-written; only the stamp needs machine checking, since the page's own protocol derives staleness from it.

Activity

  1. added
    documentation
    build-related
    intrinsics
    on Aug 20, 2026
  2. added a commit that references this issue on Aug 21, 2026
    e6b39b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-relateddocumentationintrinsics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions