Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@maplebed
Copy link
Contributor

@maplebed maplebed commented Oct 8, 2025

This PR adds a configuration parameter that controls the number of times to retry when no work remains but failed dependencies. Increasing this from the previous default of 3 can help when some resources need more time between being deleted and other resources that depend upon them being eligible for deletion.

Fixes: ekristen/aws-nuke#760

}

if e.Caller.Line == 351 {
if e.Caller.Line == 352 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By adding the new parameter, it changed the line that is triggered in this test.

ForceSleep: 3,
Quiet: true,
NoDryRun: true,
MaxFailureRetries: 6,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

choosing a non-default number of retries here to ensure the option is honored.

@codecov
Copy link

codecov bot commented Oct 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.32%. Comparing base (29dae5d) to head (0e60b79).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #139   +/-   ##
=======================================
  Coverage   99.32%   99.32%           
=======================================
  Files          20       20           
  Lines        1782     1785    +3     
=======================================
+ Hits         1770     1773    +3     
  Misses          9        9           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ekristen
Copy link
Owner

ekristen commented Oct 9, 2025

can you fix the last commit to be test: <message>. Would like to keep all the messages conventional commit.

@maplebed maplebed force-pushed the add_max_failure_retries branch from a4b265b to 0e60b79 Compare October 9, 2025 15:41
@ekristen ekristen merged commit 86fd66e into ekristen:main Oct 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Would like to retry deleting failed resources more than 3 times

2 participants