Croway opened a new pull request, #22405:
URL: https://github.com/apache/camel/pull/22405

   ## Summary
   - Add retry with exponential backoff and jitter to 
`TestServiceUtil.tryInitialize()` for transient container errors
   - Retries on `ContainerFetchException` (image pull 404, registry cache 
eviction) and `ContainerLaunchException` (container start timeout, resource 
contention)
   - Non-container exceptions (test logic failures) fail immediately without 
retry
   - Walks the exception cause chain, so wrapped container exceptions are also 
caught
   - Configurable via system properties: `camel.test.infra.container.retries` 
(default 3), `camel.test.infra.container.retry.delay.ms` (default 5000)
   - All test-infra services benefit automatically since they all flow through 
`tryInitialize()`
   
   **Motivation:** Transient Docker/registry failures (e.g. `mirror.gcr.io` 
cache eviction returning 404, Couchbase container startup timeouts) cause CI 
flakes across multiple components. A retry at the service initialization level 
handles these without per-component workarounds.
   
   ## Test plan
   - [x] 6 unit tests covering: retry on fetch/launch exceptions, immediate 
fail on non-container errors, max retries exhaustion, wrapped exceptions, 
first-attempt success


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to