apupier commented on PR #30672:
URL: https://github.com/apache/camel/pull/30672#issuecomment-7124896458

   Thanks all for the reviews. Pushed 391f6f4 addressing them, details below.
   
   **@Croway**
   1. Stalled pull / no retry: fixed. The retry is now inside 
`pullForHostPlatform`, until `pull.timeout`, with a doubling delay. It retries 
when the pull is interrupted for making no progress (the interrupted flag is 
**not** restored, so the next Docker call and the sleep of the caller no longer 
fail at once), on `InternalServerErrorException` and when the quota is 
exceeded. The Javadoc no longer claims `TestServiceUtil.tryInitialize` does the 
retry, so `createSingletonService()` is covered too. I have not reproduced your 
arm64 scenario myself: the interrupt case is only covered by a unit test with a 
stubbed client, so please re-run your reproduction if you can.
   2. Concurrency note: rewritten as a known limitation (one policy instance 
per JVM, `shouldPull` called for each container start, several JVMs can share a 
daemon).
   3. Scope: documented in the class Javadoc (applies to all Testcontainers 
containers when the jar is on the classpath, same as the default on 
amd64/arm64).
   4. Tests: added a package-private constructor and an `ImageOperations` seam 
(a stub, no new dependency). 16 tests cover remove, pull, retries, failures, 
timeout and the post-pull checks.
   
   **@davsclaus**
   1. The architecture now comes from the daemon 
(`DockerClientFactory.instance().getInfo().getArchitecture()`), with `os.arch` 
only as a fallback. The default on/off decision uses it too.
   2. Only the transient failures above are retried. Anything else (for example 
no matching manifest) fails immediately, with a message that names the 
`skipITs.<arch>` property on ppc64le/s390x.
   3. Ryuk: `testcontainers/ryuk:0.14.0` (the version of Testcontainers 2.0.5) 
publishes `linux/ppc64le` and `linux/s390x`, and Ryuk is used on these nodes. I 
checked the manifest list, not a real Power/Z run. Mentioned in the Javadoc.
   4. Classpath precedence documented in the Javadoc, including that the order 
between two jars defining `pull.policy` is undefined.
   
   **@oscerd** The jar-wide registration and the precedence are now in the 
class Javadoc.
   
   **@gnodet-bot** The null architecture after the pull, the `withForce` 
comment and the concurrency note are addressed, the last one as rewritten above.
   
   Still not validated on a real ppc64le/s390x Jenkins node, I would run it on 
one before merging.
   
   _AI-generated: IBM Bob on behalf of @apupier._
   


-- 
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