Repository navigation
chore: extend the mathematic-inc ToolConfig policy - #71
Merged
Merged
Conversation
Why: mathematic-inc repositories share one ToolConfig policy. This repository kept its own copy of each tool setting. - Extend toolconfig-config at a pinned commit. Keep only the buf module path, one buf exception and one cargo-deny advisory exception. - Delete the settings files that ToolConfig now writes. - Amend the hk steps of the organization. Keep the lockfile step. Set the cargo-deny directory and the kingfisher skip for the test database. - Pin ToolConfig 2026.11.6, hk 2.13.0 and the other tools of the policy. - Add the mise tasks generate, fix and check.
Why: the policy needs the generated settings files before each tool runs. - Run toolconfig-action in each job that runs a tool, after mise. - Run hk with --skip-step toolconfig in the hk workflow. - Add a concurrency group to the workflows that had none. - Pin the postgres image of the services by digest. - Turn off the mise cache in the release job that publishes artifacts.
- Add the organization lint table and enable it in each crate. - Add the docs, `#[must_use]` and `# Errors` sections that the lints need. - Derive Debug for the public types. Narrow the visibility of the code generators to the crate. - Move the PostgreSQL type defaults into one table. - Move the array dimension rule into one function. - Allow the lints on the generated modules, which `buf generate` and `sqlc generate` write. - Add a license to the example crates.
- Wrap the Markdown at 80 columns. - Link the discussion form by its full URL. - Write "parameters" in place of "params".
Format scripts/proto-sync.sh with shfmt and release-please-config.json with oxfmt, at the settings of the policy.
hk runs oxfmt on release-please-config.json. CI had no oxfmt.
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.
Why
mathematic-inc repositories share one ToolConfig policy
(
mathematic-inc/toolconfig-config). This repository kept its own copy of eachtool setting. It now extends the policy and passes the stricter checks.
What
documented exceptions: one buf rule for the copy of the sqlc plugin protocol,
and one cargo-deny advisory (chrono is unmaintained and has no fix).
hk.pkl). Keep the lockfile step.Set the cargo-deny directory and skip the throwaway test database URI in
kingfisher.
mathematic-inc/toolconfig-actionbefore each tool in CI.generate,fixandcheck.#[must_use],# Errors,Debug,narrower visibility, and two small refactors (one type table, one array
dimension function).
Tests
hk check --all --slow --skip-step toolconfigpasses (40 steps).toolconfig check --strictpasses.cargo test --workspace --lockedpasses against a local Postgres: 88 unittests, 30 snapshot tests, the end-to-end test and the example tests.
cargo build --target wasm32-wasip1andcargo package --lockedpass.