Skip to content

Conversation

@eatulban
Copy link
Contributor

Description

Refactored Office365RestClient Tests using New RetryHandler, reducing test execution time from 17 minutes to 50 seconds.

Performance Summary

  • Total test duration: 17m 3.8s → 49.5s (95.2% faster)
  • Office365RestClientTest: 16m 18s → 6.2s (99.4% faster)

Test Report Details

Old Test Report(6 Retries for tests):

{0C68270F-187F-4D7F-A03D-14202CEFF697}

New Test Report(1 Retries for tests):

{AA6E813F-C46E-4533-8F3B-38248A0620E2}

How

Introduced configurable retry strategies and set maxRetries = 1 for unit tests to eliminate unnecessary exponential backoff waits.

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@wandna-amazon
Copy link

Nice, big win on build time for this. Seems like the gradle build is failing though.

Signed-off-by: eatulban <eatulban@amazon.com>
@eatulban eatulban force-pushed the feature/RestclientTest-retry-optimization branch from 2980ad1 to 6c5de89 Compare January 7, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants