Run the nine orphaned `make check` gates in CI, not just on developer machines
The gap
make check membership was never enforcement. Nine of the 29 targets on the check: line (Makefile:955) were invoked by no workflow at all — directly or indirectly — so they only ran when someone remembered to run them locally.
I audited every target on that line against .github/workflows/, resolving each apparent miss against its actual recipe (several are covered indirectly, by CI running the underlying script rather than the make target — go-check-drift via check-service-drift, rb-check via rubocop, py-check via ruff check, and so on). What survives that check is genuinely uncovered:
| Gate | What it protects |
|---|---|
sync-spec-version-check | Smithy version vs the provenance date |
sync-api-version-check | API_VERSION constants vs openapi.json |
check-bucket-flat-parity | bucket-scoped vs flat operation parity |
validate-api-gaps | api-gaps frontmatter + allowlist schema |
check-deprecation-parity | @deprecated signal class across six SDKs |
go-check-optional-pointers | every omitempty Go field can represent absence |
test-enhance-request-reachability | request-body enhancer, driven by synthetic specs |
kt-check-drift | Kotlin service drift (static) |
behavior-model-check | behavior-model.json freshness |
The change
Eight go into one new spec-gates job. They need bash + jq + ruby and no SDK toolchain, so they get a fast standalone job rather than riding inside a language job — which is how check-idempotency-parity ended up coupled to test-go (test.yml:126). Modelled on the existing fixture-coverage job. Each step invokes make <target> so the recipe keeps exactly one definition and CI cannot drift from the Makefile.
kt-check-drift is in that light job despite the kt- prefix — it is jq/grep with no JVM, as its own Makefile comment says. The authoritative regenerate-and-diff Kotlin gate, kt-check-generated-drift, already runs in test-kotlin.
behavior-model-check is the one that cannot live there — it consumes spec/build/smithy/source/model/model.json, which exists only after smithy build. It becomes a step in smithy-verify.yml, the job that already builds it.
Enforcement without touching branch protection: spec-gates joins the conformance fan-in needs: list, so it is covered by the existing required check (Conformance Tests). That job already fails on any non-success upstream result, so the wiring is the whole change. Its step name and error message are widened to stop claiming every failure came from a language job.
Red proof
Corrupting a gate input, at this commit:
$ make validate-api-gaps # pristine
REAL_EXIT=0
$ sed -i 's/status:/stat!us:/' spec/api-gaps/folders-api.md
$ make validate-api-gaps
==> API gap validation failed:
spec/api-gaps/folders-api.md: missing required frontmatter field: status
spec/api-gaps/folders-api.md: unknown frontmatter field: stat!us
(schema declares additionalProperties: false)
make: *** [validate-api-gaps] Error 1
REAL_EXIT=2
$ # restored from a scratch copy — sha256 identical, tree clean
REAL_EXIT=0
That corruption is invisible to CI on main today. git grep over c74709220:.github/workflows/ returns NONE for all nine target names; the same query on this branch returns test.yml / smithy-verify.yml for all nine.
Cost
All eight light gates pass locally at c74709220 in ~5.2s total, so the job adds roughly that plus checkout. actionlint and zizmor are clean on both modified workflows.
Notes for review
- This is deliberately only a coverage change — no gate logic is touched, and no gate is added or removed from the
check:line. - Labelled
bug: nine gates that were believed to be enforced were not.
Summary by cubic
Runs nine previously orphaned make check gates in CI so they’re enforced, not just run locally. Adds a fast spec-gates job and wires it into the required Conformance Tests; moves behavior-model-check to smithy-verify.yml after smithy build.
- Bug Fixes
- Added
spec-gatesjob to run:sync-spec-version-check,sync-api-version-check,check-bucket-flat-parity,validate-api-gaps,check-deprecation-parity,go-check-optional-pointers,test-enhance-request-reachability,kt-check-drift. - Moved
behavior-model-checkintosmithy-verify.yml(runs aftersmithy build). - Made
conformancedepend onspec-gatesand clarified the failure message; no gate logic changed and no branch protection updates needed.
- Added