Skip to content

test: unify exponential backoff use#187

Open
droguljic wants to merge 1 commit intomasterfrom
test/unify-backoff-use
Open

test: unify exponential backoff use#187
droguljic wants to merge 1 commit intomasterfrom
test/unify-backoff-use

Conversation

@droguljic
Copy link
Contributor

  • All tests now use util/backOff
  • Max wait time is now ~5 minutes
  • Jitter is dropped to eliminate flaky tests
  • By default NonRetryableError stops execution

- All tests now use `util/backOff`
- Max wait time is now ~5 minutes
- Jitter is dropped to eliminate flaky tests
- By default `NonRetryableError` stops execution
@droguljic droguljic added this to the v2 milestone Mar 26, 2026
@droguljic droguljic requested review from bornast and mandryllo March 26, 2026 16:01
Comment on lines +66 to +75
await backOff(async () => {
try {
const replicaDBInstanceId = db.replica!.instance
.identifier as unknown as string;
const deleteCommand = new DeleteDBInstanceCommand({
DBInstanceIdentifier: replicaDBInstanceId,
SkipFinalSnapshot: true,
});

await ctx.clients.rds.send(deleteCommand);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldn't this try to delete replica every time?

return;
}
},
{ numOfAttempts: 10 },
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see an issue with removing this configuration here, in my experience it takes ~10 minutes (or even more) to delete a replica so in fact if max wait time is now ~5 minutes we should configure this backoff with that in mind (I'm ok with removing jitter)

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.

2 participants