carlos / platform Public

gate: vet the rootrunner and cutover-witness tests

131 test files carry `//go:build linux && rootrunner` (125 of them in
internal/host) and nothing in make test or .amadan/ci.d compiled them:
only the root runner did, so a refactor could break one and stay green.
The cutover-witness files were already compiled by their own go test job.

test-gate.sh now starts a vet-tags job beside the plain vet:
`go vet -tags rootrunner,carlos_cutover_witness ./...`. It is a job of
its own rather than tags on the plain vet because
internal/host/departure_queue_default.go is `!rootrunner` and would drop
out of it. It runs in parallel with the tests, which take minutes, so
make test's wall clock is unchanged.

The tagged files needed no fixes: they compile and vet clean on
15b1ee6b. Nothing here runs them; they need root.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev ac19cf38f0bf457ab9c52c875ff901b985dac095 parent 15b1ee6
1 file changed, +12 −1
  • .amadan/test-gate.sh +12 −1

CI cancelled — superseded by a newer push — run details

diff --git a/.amadan/test-gate.sh b/.amadan/test-gate.sh
index aca787753..f3eb2b69b 100755
--- a/.amadan/test-gate.sh
+++ b/.amadan/test-gate.sh
@@ -4,7 +4,9 @@
#
# What it checks is what `make test` always checked: launchctx's vet and
# tests, `go vet ./...`, a repo-wide `gofmt -l .`, and every test in every
-# package with -count=1. What changed is the shape of the run.
+# package with -count=1, plus a second vet with the rootrunner and
+# carlos_cutover_witness tags (see vet-tags below). What changed is the
+# shape of the run.
#
# The gate's wall clock was the slowest single package, because Go runs
# packages side by side but a package's own tests one after another.
@@ -167,6 +169,15 @@ discover() {
start launchctx sh -c 'cd launchctx && go vet ./... && go test ./... -count=1'
start vet go vet ./...
+# The tagged tests: about 130 test files behind `linux && rootrunner` (the
+# root runner's fixtures, nearly all in internal/host) and the cutover
+# witnesses. Only the root runner and the cutover-witness job below ever
+# compiled them, so a refactor could break a root-runner test and stay
+# green. Its own job rather than tags on the line above, because one file,
+# internal/host/departure_queue_default.go, is `!rootrunner` and would
+# drop out of the plain vet. Nothing here runs those tests: they need
+# root.
+start vet-tags go vet -tags rootrunner,carlos_cutover_witness ./...
start gofmt sh -c 'fmt_out=$(gofmt -l .); if [ -n "$fmt_out" ]; then echo "gofmt needed:"; echo "$fmt_out"; exit 1; fi; echo "gofmt -l .: clean"'
# The split packages' test lists, all at once. `go test -list` compiles the