Repository navigation
Conversation
This was referenced Oct 15, 2026
The root integration_test.go had not compiled since the initial release: `config.LoadDefaultConfig` with the package imported as awsconfig, and loadAWSConfig declared to return the awsconfig.Config interface instead of aws.Config. Nothing in make check or CI vetted the integration tag, so it went unseen. pkg/integration/orchestrator_test.go (#907, the deleted orchestrator) is removed here as well, identically to #914, so the new gate passes either way. The scheduler tests are removed. They wrote parameter_file_key/execution_time/ cron_expression items, which the scheduler has never read (it reads s3_params_key/schedule_expression), and waited for execution to follow a DynamoDB edit, but schedules fire from EventBridge Scheduler. Their inline param files used a pre-defaults/params format and set no TTL. The queue tests and the result-collection test were t.Skip placeholders. The make targets that ran only those tests are removed. The surviving multi-region sweep tests launch real instances and now meet the cost-safety rule. cancelSweep passes --yes: without it, cancel prompted, read EOF and terminated nothing. Cancel runs from a t.Cleanup registered at launch, so a mid-test t.Fatalf can't skip it. A leak-check then polls EC2 directly in every region the param file names, terminates anything still tagged with the sweep ID, and fails the test. test-integration builds bin/spawn first and runs -count=1. scripts/check-build-tags.sh discovers custom tags from //go:build lines per module and runs `go vet -tags <tag> ./...` for each; nothing is executed. It fails when no tag is found anywhere, and when a tagged file was compiled by no single-tag run (a combination such as `a && b`). Wired in as make check-build-tags, step 6 of make check, and a CI step.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Fixes #913
What was broken
The root
integration_test.go(//go:build integration) has not compiled since the initial release.make checkand CI only vet the default build, so nothing noticed. Fixing the two errors in the issue was enough for it to compile:config.LoadDefaultConfig→ the package is imported asawsconfigloadAWSConfigreturnedawsconfig.Config(an interface in the config package) whereaws.Configwas neededTests removed, and why
parameter_file_key/execution_time/cron_expression, but the scheduler readss3_params_key/schedule_expression(pkg/scheduler/types.go,lambda/scheduler-handler). They also "trigger" execution by editingnext_execution_timein DynamoDB, but schedules fire from EventBridge Scheduler (pkg/scheduler.CreateSchedule), so nothing would ever run. Their inline param files use a pre-defaults:/params:format and set no TTL. One of them also read../testdata/...from the repo root.TestScheduledBatchQueue,TestMultiRegionResultCollection. Unconditionalt.Skipplaceholders.make test-integration-scheduler/test-integration-queue. After the removals they matched no tests.pkg/integration/orchestrator_test.go. The same deletion as Remove the stale orchestrator integration test, and gate module tidiness (#907) #914. It's needed here because the new gate vets theintegrationtag and that file can't build. The two deletions are identical, so git merges them cleanly.Cost safety (CLAUDE.md): the surviving multi-region sweep tests launch real instances
ttl: 30m.cancelSweepranspawn cancelwithout--yes. Cancel prompts before terminating, and with no answer on stdin it aborts with nothing terminated, so these tests' cleanup could never have worked. It now passes--yes. Cancel also used to be the last line of each test, so anyt.Fatalfbefore it skipped it. It now runs from at.CleanupthatlaunchSweepregisters as soon as it has the sweep ID.tag:spawn:sweep-id=<id>in pending/running/stopping/stopped, terminates anything it finds, and fails the test. It polls rather than checking once because the orchestrator Lambda can still launch between the cancel and its next check of the cancel flag. The region set is parsed from the param file before launching, and the test is fatal if that finds no region.make test-integrationnow depends onbuild(the tests exec./bin/spawn) and runs-count=1(All four e2e make targets omit -count=1, so a cached pass can certify a binary that does nothing #831's runtime-binary cache problem).pkg/integration/hybrid_test.golaunches no instances (local provider + DynamoDB registry, withdefer Deregister). The e2e tier 1–3 files already havetest/e2e/reaper.go.None of these tests were executed. Everything here was compiled and vetted only.
Gate
scripts/check-build-tags.sh:findascheck-tidy.sh/nested-modules.sh. The script exits 1 if./go.modisn't among them.//go:buildlines, not from a list. The only names dropped are the toolchain's own: GOOS/GOARCH fromgo tool dist list, plusunix,cgo,gc,gccgo,ignore,goN.Mandgoexperiment.*. Found today, all in the root module:e2e_tier0,e2e_tier1,e2e_tier2,e2e_tier3,integration(31 files). The script exits 1 if no module has any custom tag.go vet -tags <tag> ./...in that module for each tag. Nothing is executed.go list -tags <tag>output for at least one tag. A file that only builds under a combination (a && b), or under a tag plus another GOOS, fails the gate by name instead of being skipped silently.make check-build-tags, step 6 ofmake check, and the CI step "Build-tag compile gate". It takes about 8 s locally.Watched it fail (exit 1), then restored, against each of these:
config.LoadDefaultConfigbug put back:undefined: configawsconfig.Configreturn type put back:cfg.Region undefined (type ...config.Config has no field or method Region)orchestrator_test.gorestored:no required module provides package .../pkg/orchestrator//go:build newtag913file with a type error: the new tag is found and vetted, and the gate failslambda/ttl-reaper: the nested module is vetted and the gate fails//go:build integration && e2e_tier0file: the coverage check names itConflict with #914
Both PRs add step 6 to
make checkand a new target aftercheck-nestedin theMakefile, and both add a new step after "Nested modules" inci.yml. Expect a small textual conflict in both files. Resolve it by keeping both: make one of themake checksteps 7, and keep both targets and both CI steps. Theorchestrator_test.godeletion is identical in both PRs and won't conflict.CHANGELOG.mdmay also needmake changelog-fixif both add### Fixed.Local
make checkEverything passes except the known Docker-only
TestGenerateWrapper_ChownFixesCrossUIDStickyUnlink_Docker.make checkstops at that step, socheck-nested(9 modules) andcheck-build-tagswere run separately, and both pass.Filed while here
make check's staticcheck step can never fail.|| echo "not installed"swallows its exit 1, and main has 67 findings.GOOS=windows, and no gate vets a non-default GOOS.