Repository navigation
fix(logs,doctor,footprint): cache after EC2 forgets, --region narrows lookups, honest hints - #1220
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
scttfrdmn
force-pushed
the
fix/1160-1161-logs-doctor-footprint
branch
from
October 20, 2026 07:30
33ea319 to
fcf8d56
Compare
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 #1160
Fixes #1161
spawn logs (#1160)
showTerminatedLognow looks in the console cache by name or instance ID before failing. Each cached dump gets an<id>.namesidecar so a name can be resolved; if several dumps share a name, the newest wins. The sidecar is pruned by the same TTL.resolveInstance,recentlyGoneHintand logs'findRecentlyGonenow search only the region given by the global--region(through a newlistInstancesForLookupseam). Without--regionthey search every region, as before. This is a behaviour change, so it's listed under Changed.ec2:GetConsoleOutputas optional. Instead, a denied console read now produces an error that namesec2:GetConsoleOutput.spawn doctor (#1161)
--subnet-id.--dnsgoes through the spore.host DNS updater, and that Route 53 access in the account is needed only to deploy a custom updater.DescribeSubnetsand wraps the newdoctor.ErrNoDefaultVPC, and the hint tells you to pass--subnet-idon every launch or runaws ec2 create-default-vpc. A region with no subnet at all (or whose subnets can't be listed) still Fails. The reasoning is in a comment in Run and in the CHANGELOG.spawn footprint (#1161)
listAllRules); the SDK has no paginator forListRules.scheduler-handlera blind spot.--all-regionsis described as the regions enabled in the account.Gates. Each was watched failing against a revert that compiles:
.namewrite, failsTestLogsCacheIsReachableAfterEC2ForgetsTheInstance(by-name and by-ID subtests) andTestLogsCacheByNamePicksTheNewest.lookupRegionreturning "", or logs passing "", failsTestInstanceLookupsHonourTheGlobalRegion, which counts the calls through the seam.TestConsoleReadDenialNamesThePermission.TestSkippedListNamesEveryAWSCheckdiscovers its expected set from a passing run, so it fails if "Nitro fleet" is dropped.--subnet, or Fail in place of Warn, failsTestVPCHintNamesTheRealFlagAndNoDefaultVPCIsAWarn.TestRoute53HintDoesNotClaimDNSBreaks.ListRulescall failsTestFootprintReadsEveryPageOfRules.cmd/footprint.gofailsTestFootprintTextDoesNotCallAMatchedNameABlindSpot, which checks every quoted name infootprintExactNamesagainst the sentence it appears in, plus the two help gates incmd/footprint_test.go.Checks.
make checkpasses every step exceptcheck-build-tags, which fails the same way on unmodified main here (/private/tmp paths).make gen-docsandcheck-docspass, as doessemgrep --config=auto --error. Only unexported pkg/aws symbols were added, so the API snapshot doesn't change. Nothing was run against AWS.