Repository navigation
refactor(cmd): split autoscale.go into concern files (#321) - #338
Merged
Merged
Conversation
Pure same-package reorganization of cmd/autoscale.go (1417 LOC), no behavior change. The run* handlers and helpers move to concern files; the cobra Command definitions, flag var block, and init() stay in autoscale.go (tight to registration). - autoscale_launch.go — runAutoscaleLaunch, buildQueueConfig, buildMetricPolicy - autoscale_status.go — status/list/health + printGroupStatus - autoscale_policy.go — set-policy/set-metric-policy + activity handlers - autoscale_lifecycle.go — update/pause/resume/terminate - autoscale_schedule.go — add/remove/list schedule handlers - autoscale_helpers.go — getAutoscaler, triggerLambda Verified: 23 funcs conserved; go build ./..., go vet, gofmt clean; full cmd test suite green; command+flag tree byte-identical vs main. Part of the 2026-07-11 audit (#328, Phase 3).
Codecov Report❌ Patch coverage is 📢 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.
Closes #321. Part of the audit tracker #328 (Phase 3). Pure internal reorganization — CLI command/flag tree byte-identical to
main.What changed
cmd/autoscale.go(1417 LOC) — therun*handlers and helpers move into concern files; the cobraCommanddefinitions, the flagvarblock, andinit()stay inautoscale.go(tightly coupled to registration).autoscale_launch.gorunAutoscaleLaunch,buildQueueConfig,buildMetricPolicyautoscale_status.goprintGroupStatusautoscale_policy.goautoscale_lifecycle.goautoscale_schedule.goautoscale_helpers.gogetAutoscaler,triggerLambdaVerification
go build ./...,go vet ./cmd,gofmt -lclean; fullgo test ./cmdgreen (excl. pre-existingTestCatalogValid/ feat(plugin): permissions declaration block (#388) #392).bin/spawn, diffed the full recursive command+flag tree vsmain→ byte-identical.Third and final split PR (after #336 client.go, #337 launch.go). CHANGELOG rebase expected when landing.