Skip to content

ci: restore a minimal windows-only Actions leg - #211

Merged
andyrewlee merged 2 commits into
mainfrom
restore-windows-ci-leg
Sep 29, 2026
Merged

andyrewlee merged 2 commits into
mainfrom
restore-windows-ci-leg

Conversation

@andyrewlee

Copy link
Copy Markdown
Owner

Summary

  • Restores .github/workflows/ci.yml as a single windows-only leg — the one thing that genuinely can't run locally: a darwin dev box can GOOS=windows go vet (compile-check) but never execute lock_other.go/lock_owner_windows.go. The job runs go vet + go test ./cmd/... ./internal/... -race + go test ./e2e/... on windows-latest, triggered on PRs + pushes to main (+ manual dispatch).
  • Everything else stays local in make ci (the pre-push gate): lint, fmt, vet-cross, race tests, e2e, merged coverage ≥75%, goreleaser snapshot, installer signature matrix. No lint/coverage/release jobs came back — setup-go resolves the toolchain from go.mod (no second pin), and publishing stays a local make release.
  • scripts/cover.sh gets -timeout 20m: the cmd suite sits near Go's 10m default (441–601s observed), and a loaded box tipped it into timeout panics twice consecutively — the dump shows a progressing suite, not a wedge.
  • Docs updated: Makefile header, CLAUDE.md, CONTRIBUTING.md now describe "local gate + one windows remote leg" instead of "no remote CI"; CONTRIBUTING's lock-troubleshooting note no longer claims the windows runtime leg is gone; CHANGELOG gets a Changed entry.

Test plan

  • make cover green (88.0% total, floor holds) — first green cmd run at 441s post-bump
  • make check-install green (snapshot + smoke + 9-case signature matrix)
  • earlier make ci legs green: deps/pins/vet/vet-cross/build/lint
  • workflow YAML parses; windows job contents carried over from the proven pre-retirement workflow

…local

The make ci pipeline stays the whole gate — lint, vet (incl. windows/plan9
cross-vet), race tests, e2e, coverage, installer checks all run locally in
the pre-push hook. The single thing a darwin dev box cannot do is EXECUTE
the windows-only code paths (internal/stack/lock_other.go,
lock_owner_windows.go, windows exec/path semantics) that vet-cross merely
type-checks — so one windows-latest job runs `go vet` + the full test
suite on PRs and pushes to main. No lint/coverage/release jobs came back:
the Go pin resolves from go.mod, publishing stays a local `make release`
flow, and the job's comments explain why it's the only remote leg.

Also bumps `go test -timeout` in scripts/cover.sh to 20m: the cmd package
drives real git subprocesses and already sits near the default 10m
ceiling, so a loaded box tipped it into timeout panics twice in a row
(a progressing suite, not a wedge — the alarm fired mid-test). 20m leaves
headroom while still catching a truly stuck test.

Doc claims updated to match: Makefile, CLAUDE.md, CONTRIBUTING.md now
describe "local gate + one windows remote leg" instead of "no remote CI",
and CONTRIBUTING's windows-lock troubleshooting note no longer says the
runtime leg is gone.
@andyrewlee
andyrewlee merged commit 5f55ea7 into main Sep 29, 2026
1 check passed
@andyrewlee
andyrewlee deleted the restore-windows-ci-leg branch September 29, 2026 06:43
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.

1 participant