Skip to content

Conversation

@joviegas
Copy link
Contributor

@joviegas joviegas commented Dec 3, 2025

Add retries to CrtHttpClientApiCallTimeoutTest for race condition and BatchingEfficiencyUnderLoadTest with sleep to allow batch flush completion

Motivation and Context

Fixes intermittent test failures in CI/CodeBuild environments:

  1. BatchingEfficiencyUnderLoadTest - Tests were asserting before async batch manager completed flushing batches to WireMock
  2. CrtHttpClientApiCallTimeoutTest - Race condition between timeout exception and CRT native callback failure

Modifications

  • Added @RetryableTest(maxRetries = 3) to retry tests on transient failures
  • Added Thread.sleep() in BatchingEfficiencyUnderLoadTest.runThroughputTest() to wait for scheduled batch flushes

License

  • I confirm that this pull request can be released under the Apache 2 license

… BatchingEfficiencyUnderLoadTest with sleep to allow batch flush completion
@joviegas joviegas requested a review from a team as a code owner December 3, 2025 05:23
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

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.

1 participant