Skip to content

ci: build/vet/test the lambda/* modules (#136) - #138

Merged
scttfrdmn merged 2 commits into
mainfrom
ci/136-test-lambda-modules
Jun 13, 2026
Merged

scttfrdmn merged 2 commits into
mainfrom
ci/136-test-lambda-modules

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

The 11 lambda/* directories are each their own Go module, so the root go test ./... in the Test job never descended into them — their tests never ran in CI and their code was invisible to codecov. The cost-critical ttl-reaper and the dns-updater Substrate Route53 test (added in #135) were both unguarded.

Adds a CI step that loops over lambda/*/go.mod and runs go build ./... && go vet ./... && go test -short ./... in each (grouped log output, fails the job if any module fails). Verified all 11 modules build/vet/test clean locally, so this surfaces the gap without breaking the build. Closes #136.

The 11 lambda/* dirs are each their own Go module, so the root `go test ./...`
never descended into them — their tests never ran in CI and their code was
invisible to codecov. Notably the cost-critical ttl-reaper and the dns-updater
Substrate Route53 test (from #135) were unguarded. Add a CI step that loops over
lambda/*/go.mod and runs build + vet + test -short in each. Verified all 11
currently pass locally. Closes #136.
@codecov

codecov Bot commented Jun 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Enabling lambda-module tests in CI immediately caught 4 modules with stale
go.mod/go.sum that fail `go build` without -mod=mod: sweep-orchestrator,
ttl-reaper, alert-handler, autoscale-orchestrator. Tidy them so the new CI step
is green. Exactly the rot the missing CI coverage was hiding.
@scttfrdmn
scttfrdmn merged commit 86efb57 into main Jun 13, 2026
3 checks passed
@scttfrdmn
scttfrdmn deleted the ci/136-test-lambda-modules branch June 13, 2026 02:00
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.

CI: lambda/* module tests don't run (root go test ./... skips submodules)

1 participant