Repository navigation
ci: build/vet/test the lambda/* modules (#136) - #138
Merged
Merged
Conversation
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 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 11
lambda/*directories are each their own Go module, so the rootgo test ./...in the Test job never descended into them — their tests never ran in CI and their code was invisible to codecov. The cost-criticalttl-reaperand thedns-updaterSubstrate Route53 test (added in #135) were both unguarded.Adds a CI step that loops over
lambda/*/go.modand runsgo 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.