Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update S3 integration specs to keep up with changing AWS SDK client shape #241

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

robbkidd
Copy link
Member

Which problem is this PR solving?

  • Tests on main were breaking in the weekly builds.

Short description of the changes

  • aws-sdk-s3 v3.149.0 removed the Aws::S3::BUCKET_REGIONS constant[1] we were using, so switch up to using the accessor method Aws::S3.bucket_region_cache.
  • aws-sdk-s3 v1.152.3 changed the regex for matching error response bodies[2], so update our stubbed error to keep up.

[1] aws/aws-sdk-ruby@9d55e1f#diff-8232dab0dd0010d16882beee85916c9ec1d9b1573e87fb72f29d6530e2951e9cL78
[2] aws/aws-sdk-ruby@49f4713#diff-38231597d9c2df7aac2db510bd58dbb107727b2e77f0efbf87056075db5e3b31R74

@robbkidd robbkidd requested a review from a team as a code owner June 23, 2024 14:13
@robbkidd robbkidd self-assigned this Jun 23, 2024
@robbkidd robbkidd added type: maintenance The necessary chores to keep the dust off. version: no bump A PR with maintenance or doc changes that aren't included in a release. labels Jun 23, 2024
AWS removed the (private) BUCKET_REGIONS constant, replacing it with a
bucket_region_cache accessor on Aws::S3. The .clear method is still also
private, but that hasn't stopped us using it in tests so far. ᕕ(ᐛ)ᕗ
Error XML looks different these days. Tests broke when the AWS S3 client
got its XML matcher updated[1] in v1.152.3.

[1] aws/aws-sdk-ruby@49f4713
@robbkidd robbkidd added the status: oncall Flagged for awareness from Honeycomb Telemetry Oncall label Jun 23, 2024
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

🚀

@robbkidd robbkidd merged commit ae8f04e into main Jul 1, 2024
3 checks passed
@robbkidd robbkidd deleted the robb.fix-aws-3-tests branch July 1, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: oncall Flagged for awareness from Honeycomb Telemetry Oncall type: maintenance The necessary chores to keep the dust off. version: no bump A PR with maintenance or doc changes that aren't included in a release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants