Apache Camel turns an unreliable six-hour build into a daily integration signal
Camel’s CI overhaul shows how test isolation, parallel Maven builds and smaller matrices can restore confidence as maintenance work accelerates.
Apache Camel has rebuilt the continuous-integration path behind its core project, taking a Jenkins build that produced only one to four fully green runs a year and turning it into one that completes successfully several times a day. The project’s engineering account says the main build now takes 1 hour 24 minutes, down from 5 hours 45 minutes.
That is more than a speedup. For integration teams consuming Camel, the practical result is a shorter and more trustworthy path for reviewing, merging and backporting features and security fixes.
Why the old signal stopped working
Camel’s workload expanded sharply while its feedback loop deteriorated. The project reports 6,097 pull requests merged to main through October 23, 2026, versus 3,326 in all of 2025. Backport pull requests rose from 164 in 2025 to 820 over the same 2026 period, led by the maintained 4.18.x and 4.22.x streams.
Against that volume, flaky tests made failures difficult to interpret. Committers often had to wait for another run rather than knowing whether a change had broken the build. Shared GitHub Actions capacity across the Apache organization also added queue delays.
What Camel changed
The work combined reliability fixes with selective parallelism. Camel isolated tests that shared ports, routes, files or other system state; used conditional checks instead of fixed sleeps; cleaned Jenkins workspaces and stale Maven snapshots; and retained failed workspaces briefly for investigation.
The project then enabled Maven’s -T1C mode, using one build thread per CPU core. Camel Core deployment on Jenkins fell from 2 hours 35 minutes to 25 minutes, while Camel Quarkus deployment fell from three hours to 17 minutes. Parallel execution exposed tests that had only appeared intermittently flaky, forcing the project to fix synchronization and collision problems rather than masking them.
Camel also reduced redundant work. Maintenance branches no longer test every supported JDK combination, pull-request jobs scope modules from the changed code, shallow clones replace full repository histories where possible, and superseded workflow runs are cancelled. Short jobs use lighter GitHub runners, while full Maven builds remain on standard runners.
What platform teams can reuse
The useful pattern is not “add more runners.” Camel first made failures attributable, then spent parallelism on tests that could safely run together. It also measured the critical path closely enough to find small code and test changes with disproportionate effects, including a generic type-inference case that cut several minutes on ppc64le and JUnit parallelization that removed 15 minutes from one module.
Teams maintaining large Java integration estates can apply the same sequence: eliminate shared-state collisions, preserve failure evidence, parallelize only after tests are isolated, and trim matrices according to the support contract rather than habit. Camel’s remaining bottlenecks show the work is not finished, but the build is once again a usable engineering signal instead of a yearly event.
sources
comments · 0