Skip to content

Conversation

@davidh44
Copy link
Contributor

@davidh44 davidh44 commented Sep 4, 2025

Motivation and Context

Fix flakey S3 Multipart GET tests

S3MultipartClientGetObjectRetryBehaviorWiremockTest

  • Add Status Code: to assertions as UUID may contain the error code

S3MultipartClientGetObjectWiremockTest

  • Increase invocation count cap from 1 to 2

@davidh44 davidh44 requested a review from a team as a code owner September 4, 2025 21:10

verify(1, getRequestedFor(urlEqualTo(String.format("/%s/%s?partNumber=1", BUCKET, errorKey))));
verify(moreThan(0), getRequestedFor(urlEqualTo(String.format("/%s/%s?partNumber=1", BUCKET, errorKey))));
verify(lessThanOrExactly(2), getRequestedFor(urlEqualTo(String.format("/%s/%s?partNumber=1", BUCKET, errorKey))));
Copy link
Contributor

Choose a reason for hiding this comment

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

Is requests 2 valid? Are we actually making an extra request or is it just a test issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be one, but sometimes a second request is made in this test, likely due to the high volume of concurrent calls. The original issue was maxing out retries so this should still cover that case

@davidh44 davidh44 enabled auto-merge September 4, 2025 21:21
@davidh44 davidh44 added the changelog-not-required Indicate changelog entry is not required for a specific PR label Sep 4, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 4, 2025

@davidh44 davidh44 added this pull request to the merge queue Sep 4, 2025
auto-merge was automatically disabled September 4, 2025 23:20

Pull Request is not mergeable

Merged via the queue into master with commit 4d13d77 Sep 4, 2025
50 of 51 checks passed
@github-actions
Copy link

github-actions bot commented Sep 4, 2025

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2025
@davidh44 davidh44 deleted the hdavidh/multipart-get-flakey-test-fix branch September 5, 2025 04:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

changelog-not-required Indicate changelog entry is not required for a specific PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants