Skip to content

run go vet and go test -race in CI - #118

Merged
leontappe merged 2 commits into
fix/graceful-shutdownfrom
chore/ci-go-test
Jul 24, 2026
Merged

run go vet and go test -race in CI#118
leontappe merged 2 commits into
fix/graceful-shutdownfrom
chore/ci-go-test

Conversation

@leontappe

Copy link
Copy Markdown
Contributor

Fixes #110.

The Build & Test workflow only ran a Trivy scan and a goreleaser snapshot build — go test was never executed, so the test suite (including the reaper integration tests from #107 and the regression tests from #105) only ran when someone remembered to run it locally.

This adds a test job (parallel to build) running go vet ./... and go test -race ./.... The linux-only reaper tests (PR_SET_CHILD_SUBREAPER) run fine on ubuntu runners.

Stacked on #117 (fix/graceful-shutdown) because vet-clean (#115) and race-clean (#116) are prerequisites for these gates to pass.

🤖 Generated with Claude Code

The Build & Test workflow only ran a Trivy scan and a goreleaser snapshot
build; the test suite (including the linux-only reaper integration tests,
which run fine on ubuntu runners) was never executed. Now that the tree
is vet-clean (#112) and race-clean (#111), both run as a separate job in
parallel with the build.

Fixes #110.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a CI gate to actually execute static analysis and the Go test suite (with the race detector) so regressions are caught in GitHub Actions rather than relying on local runs.

Changes:

  • Add a new test job to the existing Build & Test workflow.
  • Run go vet ./... and go test -race ./... on Ubuntu runners.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build.yaml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
leontappe added a commit that referenced this pull request Jul 24, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@leontappe
leontappe merged commit a6de983 into fix/graceful-shutdown Jul 24, 2026
2 checks passed
@leontappe
leontappe deleted the chore/ci-go-test branch July 24, 2026 11:31
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