apupier opened a new pull request, #30185: URL: https://github.com/apache/camel/pull/30185
# Description _IBM Bob 2.2.1 on behalf of Aurélien Pupier_ This PR optimizes test execution time for `camel-chaos`: - **SEDA / Stub pollTimeout**: Sets default poll timeout to 10ms in test support and routes with SEDA/stub consumers to prevent consumer threads from blocking for up to 1000ms upon test context teardown. - **Rule Durations**: Reduces real-time rule delays in `ChaosLifecycleTest` and `ChaosLifecycleStartupTest` from 2s/3s to 200ms/300ms while preserving test assertions. - **Surefire Forks**: Enables process-level Surefire forks (`forkCount=4`, `reuseForks=true`) to run test classes in parallel across multiple JVM processes without conflicting with the JVM-wide static providers and virtual clocks (DST). ### Benchmark Results (`mvn clean test -pl components/camel-chaos`) - **Original**: ~`2m 14s` (134s) - **Optimized (`forkCount=1`)**: ~`42.7s` - **Optimized (`forkCount=2`)**: ~`28.0s` - **Optimized (`forkCount=4`)**: ~`24.6s` - **Overall improvement**: ~**81% reduction** in test runtime (all 857 tests passing). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). https://issues.apache.org/jira/browse/CAMEL-27026 # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. -- 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]
