Open slevenick opened 2 months ago
I'm interested in taking this on
I'm a bit confused, as I'm pretty sure I remember upgrading the Terraform version caused an issue with VCR cassettes. However the tests I've added in the PR above suggest the User-Agent header has no impact on matching.
That checks out with my understanding of the existing matcher. I don't believe we compare on any part of the header currently. I specifically wrote a custom matcher because we need to avoid matching on some header fields (auth!)
I'm not sure why we saw the TF version cause issues with cassettes in the past though, that's the worrying part
I'm going to repurpose this issue, now we know that the user-agent doesn't impact VCR cassettes, to instead be about monitoring the upcoming bump in the Terraform version used on PRs.
@BBBmau - I've reassigned this to you - when the upcoming TF version bump on PRs happens please ask the On Call engineer to help address any invalidated cassettes and also help with understanding why cassettes are invalidated (assuming that the same is seen as last time).
Community Note
Description
When the version in our CI tests gets changed it triggers re-recording of every test, which tends to cause problems. ~We may be able to ignore this header specifically during cassette matching~
We thought this could be due to the User-Agent changing as a result of the TF version change, but this has been shown as incorrect.
When the TF version is next updated we should be prepared for VCR cassettes to be invalidated and try to learn why it happens, assuming it does.
New or Affected Resource(s)
Potential Terraform Configuration
References
No response