Repository navigation
ci(cleanup): unblock Amplify sandboxes stuck on a cancelled table create #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f3fccf0
ci(cleanup): unblock Amplify sandboxes stuck on a cancelled table create
belaboe 5229deb
ci(cleanup): report a retained Amplify table on every later run
belaboe 4f34ced
ci(cleanup): find real leftover tables, and stop once a table is gone
belaboe 28b90f7
ci(cleanup): say why a leftover table's existence is unknown, and pin…
belaboe 2b97d98
ci(cleanup): build the leftover id list with a read loop, not mapfile
belaboe dcf2340
ci(cleanup): pin that the checkout includes scripts/ci on every leg
belaboe b373158
ci(cleanup): count the nested retain's deferred roots apart from the …
belaboe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ci(cleanup): report a retained Amplify table on every later run
A table retained by the nested-stack delete was reported once, in that run's annotation and step summary, and never again. The Amplify step now runs `amplify-stuck-delete.sh --leftovers` on every run. It reads the retained table resources (DELETE_SKIPPED) of deleted nested stacks of Amplify sandboxes, which CloudFormation keeps for 90 days, and names each real table in a warning and the step summary. Only nested stacks that lived at least 5 hours are read: the retain only runs on a sandbox created more than 6 hours earlier. It only reads; the sweeper role has no DynamoDB access, so whether the table still exists is not checked. Tests: the 6-hour age test now uses a 5-hour-old stack, so it pins the threshold; a new step test covers a sandbox with no creation time after an old stuck one. The "script fails" step test copies all of scripts/ci, so it keeps working when the step sources other scripts there. The checkout comment names every script the job runs from scripts/ci. 7 of the new tests fail on the previous head; 11 of 11 hand mutants are killed, including the three survivors from review.
- Loading branch information
commit 5229debaaec6efee5009cbaed8a23faea1f5f12a
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.