Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async def test_new_version_rotates_current_and_previous_stages(
GetSecretValueInput(secret_id=secret_name, version_stage="AWSPREVIOUS")
),
done=lambda r: r.version_id == original.version_id,
retry_on=(ResourceNotFoundException,),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are other similar calls. Is this one particularly susceptible to this failure?

@arandito arandito Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It’s the only read that asks for something the write creates and doesn’t already retry ResourceNotFoundException. The other reads after the put ask for things that already existed (AWSCURRENT, the version list), so a lagging read returns old data that done retries instead of raising.

interval=2,
)
assert previous.secret_string == SECRET_VALUE
Expand Down
Loading