Skip to content

ci: check the system parameter catalog in cargo test - #40348

Merged
antiguru merged 1 commit into
MaterializeInc:mainfrom
antiguru:system-parameter-catalog-test
Oct 29, 2026
Merged

antiguru merged 1 commit into
MaterializeInc:mainfrom
antiguru:system-parameter-catalog-test

Conversation

@antiguru

Copy link
Copy Markdown
Member

Running bin/gen-system-parameter-catalog from check-generation.sh (#40217) compiles mz-sql and every dyncfg crate, about 1050 crates, inside the "Lint and rustfmt" job. Extracting the definitions into light crates does not help much: the SystemVars definitions depend on mz-repr, which alone pulls in 435 crates, and the dyncfgs are spread across about 25 modules in 7 crates.

This moves the staleness check into a unit test in mz-system-parameter-catalog that compares the checked-in src/sql/system-parameters.json against the generated catalog. The cargo-test job already builds these crates. Regeneration stays bin/gen-system-parameter-catalog, and the mz-commit and mz-feature-flags skills now mention it.

🤖 Generated with Claude Code

Running bin/gen-system-parameter-catalog from check-generation.sh compiles
mz-sql and every dyncfg crate in the "Lint and rustfmt" job. Compare the
checked-in catalog in a unit test instead, where the cargo-test job already
builds these crates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antiguru
antiguru marked this pull request as ready for review October 29, 2026 11:55
@antiguru
antiguru requested a review from a team as a code owner October 29, 2026 11:55
@antiguru
antiguru requested a review from def- October 29, 2026 11:55

@def- def- left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, seems good enough to me!

@antiguru
antiguru enabled auto-merge (squash) October 29, 2026 12:00
@antiguru

Copy link
Copy Markdown
Member Author

Thanks for the review!

@antiguru
antiguru merged commit f00c705 into MaterializeInc:main Oct 29, 2026
88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants