Repository navigation
fix: list shows shutting-down; footprint sees Scheduler schedules; reaper counts failed group deletes; monitoring doc tag route - #1309
Merged
Conversation
…aper counts failed group deletes, monitoring doc tag route - spawn list default (and --state live) includes shutting-down; --state active is the old listing; the shared ListInstances default is unchanged (#1167) - spawn footprint lists EventBridge Scheduler schedules across groups, identified by target, name/group, or spawn's description (#1219) - ttl-reaper counts a failed SG/PG delete as an operational error; enable nilnesserr (#1211) - self-hosted monitoring doc: spawn: tags are reserved, show the create-tags + spored restart route; launch flag tracked in #1308 (#1244)
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Merged
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.
Four accuracy fixes for spawn v0.146.0.
Fixes #1167
Fixes #1219
Fixes #1211
Fixes #1244
#1167: spawn list shows shutting-down instances
--state live) is pending, running, stopping, stopped and shutting-down. It asks for every state and drops terminated incmd/list.go. The table coloursshutting-downand adds a stderr note that those instances are still billed.--state activegives the old listing.ListInstances("")default is unchanged. It is nowinstanceStateFilterValues(unexported) so it can be pinned by a test; about 15 callers depend on it.TestListDefaultShowsShuttingDown(seamlistInstancesForList, with a fake that filters the way EC2 does),TestInstanceLookupKeepsTheSharedStateDefault(resolveInstance still asks for ""),TestInstanceStateFilterValues_DefaultExcludesShuttingDown.#1219: spawn footprint lists EventBridge Scheduler schedules
scanSchedulesrunsListScheduleswith no GroupName, so it covers every group. A schedule counts as spawn's if its target is a spore.host Lambda (scheduler-handler), its name or group carries a spore.host prefix, or it has spawn'ssched-YYYYMMDD-HHMMSSshape and spawn's Description. For that last check it calls GetSchedule, and only for those candidates. The description prefix is now the constantpkg/scheduler.ScheduleDescriptionPrefix, which both CreateSchedule and footprint use.scheduler:ListSchedules, plusscheduler:GetSchedulefor the description check. No documented CLI-user policy in spawn or the umbrella repo grants these, and none grants the lambda/logs/events reads footprint already makes. When a call is denied, the scan adds a "Could not read" note that names the permission. It never aborts.CreateSchedulerequest through a fake HTTP transport (no network). It checks the identification against what spawn actually sends, not against a copy.lambda/sweep-orchestrator/go.modgets the scheduler SDK as an indirect dependency, because it imports pkg/aws.#1211: ttl-reaper counts a failed SG/PG delete as an error
opErrors, so it reachesSummary.Errors. It does not go throughrecord(): the describe already reached the region, and a denied delete is a missing Delete* permission, not the account-wide denial that ttl-reaper: a dead account's assume-role failures poison sum.Errors forever (#457 failure mode A) #469 keeps quiet.nilnesserris enabled and the ratchet doc updated. Needs a reaper redeploy at release.#1244: monitoring doc
docs/self-hosted-monitoring.mdand thealertmanager.yamlcomment now show the route that works:aws ec2 create-tags(addingmetrics-bind=0.0.0.0), then restart spored, because spored reads these tags only at startup. New gateTestDocumentedLaunchTagsAreAcceptedruns every documented--tagon launch, snapshot create and capacity-block purchase throughparseKVTags. Launch flags are follow-up No launch path can set spored's metrics/tracing/idle-cpu tags (launch flags or --tag allow-list) #1308, and the tag-contract allow-list reasons now point to it.Each gate was watched failing against a revert that compiles.
make checkpasses up to check-build-tags, which fails the same way on unmodified main (/private/tmp paths). semgrep is clean, lint reports 0 issues, check-docs passes.