Skip to content

build: add the ci Makefile target that completes the ADR-0043 gate triad - #77

Merged
bketelsen merged 2 commits into
mainfrom
cockpit/worker-e3cfef517c1b7ff8
Aug 24, 2026
Merged

bketelsen merged 2 commits into
mainfrom
cockpit/worker-e3cfef517c1b7ff8

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Closes #76. Makefile had verify: and check: but no ci: — core ADR-0043's fleet-conventions presence check was failing with FAIL frostyard/firn: Makefile missing ci: target.

  • Makefile: adds ci: (added to .PHONY) — runs verify first, then coverage (go test -coverprofile=coverage.out ./...), the race detector (go test -race -short ./internal/..., matching the scope the old race-test CI job used), and a cross-arch build (GOOS=linux GOARCH={amd64,arm64} make build, reusing the existing build target — the same invocation the old build matrix job used). ci needs no credential and writes only gitignored files (build/, coverage.out); gofmt -w stays in check, never in ci.
  • .github/workflows/test.yml: the pull-request gate job now runs make ci as its single step in a new gate ("Repository gate") job, replacing the separate lint, verify, race-test, and build jobs whose scope make ci now covers (mirroring the shape already used in frostyard/std and frostyard/snowcat-cockpit). security (govulncheck), unit-test (coverage + Codecov upload, which needs OIDC credentials ci intentionally avoids), and e2e-harness-syntax are untouched — same SHA pins, permissions, and the jdx/mise-action step. release.yml's make verify step is untouched.
  • AGENTS.md: the gate paragraph now names all three targets — make check (developer), make verify (credential-free read-only subset), and make ci (the CI superset of verify — coverage, race, cross-arch build).

Risk tier: 2 — this touches .github/workflows/**, which is review-required at high risk per the issue; opening as a draft for a human to review and mark ready.

Verification

On a clean checkout of this branch:

  • make ci exits 0 (verify → 0 lint issues, go vet clean, all package tests pass; coverage run passes; race detector passes over ./internal/...; cross-arch build succeeds for linux/amd64 and linux/arm64).
  • git status --porcelain is empty after make ci (only gitignored build/firn and coverage.out are written).
  • grep -cE '^ci:' Makefile → 1.
  • grep -rc 'make ci' .github/workflows/ → .github/workflows/test.yml:2 (declared and invoked).

🤖 Generated with Claude Code

bketelsen and others added 2 commits August 24, 2026 23:13
Makefile gains ci: (verify + coverage + race detector + cross-arch
build), matching the shape adopted by frostyard/std and
frostyard/snowcat-cockpit. The Tests workflow's pull-request gate now
runs make ci as a single step in a new "Repository gate" job, replacing
the separate lint/verify/race-test/build jobs that duplicated its
scope; security, unit-test (coverage upload), and e2e-harness-syntax
are unchanged. AGENTS.md names the full verify/check/ci triad.

Fixes #76.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
make ci already invokes make verify, which runs lint-version-check;
the standalone step duplicated part of the canonical gate shape
Issue #76 asks for.
@bketelsen
bketelsen marked this pull request as ready for review August 24, 2026 23:19
@bketelsen
bketelsen marked this pull request as draft August 24, 2026 23:19
@bketelsen
bketelsen marked this pull request as ready for review August 24, 2026 23:37
@bketelsen
bketelsen added this pull request to the merge queue Aug 24, 2026
Merged via the queue into main with commit 9c12400 Aug 24, 2026
4 checks passed
@bketelsen
bketelsen deleted the cockpit/worker-e3cfef517c1b7ff8 branch August 24, 2026 23:39
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.

build: add the ci Makefile target that completes the ADR-0043 gate triad

1 participant