Skip to content

Harden CI: download deps, check fmt/vet/tidy, race tests - #52

Merged
MPV merged 1 commit into
masterfrom
claude/ci-hardening
Jul 23, 2026
Merged

Harden CI: download deps, check fmt/vet/tidy, race tests#52
MPV merged 1 commit into
masterfrom
claude/ci-hardening

Conversation

@MPV

@MPV MPV commented Jul 23, 2026

Copy link
Copy Markdown
Owner

What

Strengthen the Go Test workflow.

  • Install deps with go mod download (non-mutating) instead of go mod tidy.
  • Fail the build on non-gofmt-ed files and on go vet findings.
  • Verify go.mod/go.sum are tidy via go mod tidy + git diff --exit-code.
  • Run tests with -race.

Why

The workflow ran go mod tidy as its dependency step, which mutates go.mod/go.sum inside CI and would hide an untidy module rather than catch it. It also ran no formatting, vet, or race checks.

Notes

All new steps were validated locally against master: fmt/vet clean, module already tidy, -race green. Standalone, no overlap with other PRs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Pc6NAURAqjU4LYJx93tgSC


Generated by Claude Code

The test workflow ran `go mod tidy` as its dependency step, which mutates
go.mod/go.sum inside CI and would hide an untidy module rather than catch
it. It also ran no formatting, vet, or race checks.

- Install deps with `go mod download` (non-mutating).
- Fail the build on non-gofmt-ed files and on `go vet` findings.
- Verify go.mod/go.sum are tidy via `go mod tidy` + `git diff --exit-code`.
- Run tests with `-race`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pc6NAURAqjU4LYJx93tgSC
@MPV
MPV merged commit feead38 into master Jul 23, 2026
1 check passed
@MPV
MPV deleted the claude/ci-hardening branch July 23, 2026 06:54
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.

2 participants