Skip to content

Conversation

@theunrepentantgeek
Copy link
Member

@theunrepentantgeek theunrepentantgeek commented Dec 4, 2025

What this PR does

We're seeing an increasing number of test failures where a particular resource gets stuck in a non-terminal condition, leaving the test to iterate in place until it times out. This failure mode means that it takes a long time to iterate on fixes - CI can take over an hour to run, most of that time spent in a failed condition.

This PR makes changes to improve reliability of tests, and to ensure failed tests terminate quickly - these should make it easier to iterate on fixes for remaining underlying issues.

  • Limit the number of replays of a GET response to 10
  • Only replay GET responses for terminal states (e.g. don't replay for Creating, Deleting, InProgress, etc)
  • Don't use the TEST-REQUEST-ATTEMPT header when matching requests (this was needed for go-vcr v1 but not for newer versions)
  • Immediately abort the Eventually() wait if go-vcr doesn't find a response to playback

How does this PR make you feel?

gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants