Skip to content

ci: routes, migrations and overrides checks gate PRs as named steps (#941) - #1066

Merged
thinkclay merged 3 commits into
mainfrom
ci/lint-checks
Oct 7, 2026
Merged

thinkclay merged 3 commits into
mainfrom
ci/lint-checks

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #941.

lint:routes, lint:migrations and lint:overrides ran only in pre-commit or pnpm prepush, so SKIP_PREPUSH=1 or a push without the stamp skipped them entirely. Each is now its own named step in the CI lint job, next to the literal ratchet, so a failure names the rule.

Each was proved red before it was wired in

Check Planted violation Exit with it Exit after removing it
lint:routes router.push('/planted') 1 0 (shown in #1062)
lint:migrations a second 362_*.sql 1 0
lint:overrides pnpm.overrides["awesome-phonenumber"] = "0.0.1" against catalog ~7.8.0 1 0

The CI-side red run for routes is in the comment below.

Left out on purpose: lint:sorted-keys

It is advisory by design: scripts/check-sorted-keys.mjs always ends with process.exit(0). As a CI step it could never fail, which is the failure mode this issue exists to prevent (#921, #1030). Making it gate needs either a baseline or a one-off sort of the repo; that's a separate decision.

Docs

.radium/ci-deployment.md gets a table of which check gates where: pre-commit, prepush, CI, and whether it can fail. It also adds the rule to prove a check red before wiring it in.

One caveat is written there too. A migration-number collision between two open branches is caught only by the second PR's run, because the PR run checks the merge ref, and only once the first PR has merged. Re-run a stale PR's CI before merging it.

🤖 Generated with Claude Code

thinkclay and others added 3 commits October 7, 2026 03:34
…941)

lint:routes, lint:migrations and lint:overrides ran only in pre-commit or
prepush, which SKIP_PREPUSH or a push without the stamp skips entirely.
Each is now its own step in the CI lint job, beside the literal ratchet,
so the checks list names the rule that broke. Each was proved red before
it was wired in: a planted duplicate migration number, override and
route literal all exit 1, and all exit 0 once removed.

lint:sorted-keys is left out on purpose: it is advisory and always exits
0, so as a CI step it could never fail. .radium/ci-deployment.md now
records which check gates where, and the rule to prove a check red
before wiring it in.

Closes #941

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 37588309505 failed at 'Hardcoded route strings')

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thinkclay

Copy link
Copy Markdown
Contributor Author

CI red proof for the routes step: commit 716e31a planted router.push('/planted-for-941'). Run 37588309505 failed at Hardcoded route strings, the step this PR adds; the literal ratchet before it passed. The next commit removes the plant. The squash merge will carry neither commit, and the tree is identical to 784ce11.

@thinkclay
thinkclay merged commit 87c59f0 into main Oct 7, 2026
10 checks passed
@thinkclay
thinkclay deleted the ci/lint-checks branch October 7, 2026 11:05
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.

Four custom lint checks run only in prepush, never in CI

1 participant