slachiewicz opened a new issue, #13822:
URL: https://github.com/apache/maven/issues/13822

   ### New feature, improvement proposal
   
   Integration tests are most of the CI time in the apache/maven-* plugins and 
shared libraries. Plan: run fewer CI combinations, run ITs in parallel, and 
configure them once in maven-parent.
   
   **Baseline** (2026-11-03, green push runs of the apache/maven-* 
repositories; approximate)
   
   - One push to each of 95 workflows: about 7,100 job-minutes; Windows 40%, 
Linux 33%, macOS 27%.
   - maven-javadoc-plugin alone: 96 jobs, 1,019 job-minutes, about 75 min to 
finish.
   
   ![Job-minutes per push, 12 costliest 
workflows](https://raw.githubusercontent.com/slachiewicz/maven/ci-audit-images/ci-audit/top-repos-apache.png)
   
   - ITs take 78–99% of a build, 4–11 s each, mostly forked-Maven startup. Most 
suites run serially: invoker 92 ITs in 17.6 min, assembly 152 in 15.6, enforcer 
156 in 11.4; dependency-plugin runs 140 in parallel in 6.7.
   
   ![Share of each build spent in integration 
tests](https://raw.githubusercontent.com/slachiewicz/maven/ci-audit-images/ci-audit/it-share.png)
   
   - `maven-plugins` has a `run-its` profile but no parallel ITs and no lighter 
forked JVM: 6 of 57 invoker repositories set parallel ITs themselves, 4 a 
lighter JVM, and 34 repeat parent defaults (152 lines).
   
   ![Where IT configuration lives today and as 
proposed](https://raw.githubusercontent.com/slachiewicz/maven/ci-audit-images/ci-audit/it-setup-apache.png)
   
   **Plan**
   
   - [ ] One `run-its` profile in maven-parent with `invoker.parallelThreads` 
0.75C and a lighter forked JVM via `mavenOpts`
   - [ ] Smaller default matrix in the shared workflow: all JDKs on Linux, 
newest on macOS, oldest and newest on Windows (about −37%)
   - [ ] Extra JDK vendors on Linux only in javadoc, compiler and jdeps plugins
   - [ ] `ProjectBuilder` in both plugin test harnesses, so parameter-only ITs 
can become unit tests
   - [ ] maven-invoker-plugin on maven-executor, then measure embedded mode
   
   Parallel ITs should be safe in CI: Maven 3.10.0 and 4.0 use resolver 2 file 
locking by default.
   
   **Questions**
   
   - @cstamas: is that locking enough for parallel ITs sharing 
`target/local-repo`? Is invoker-plugin on maven-executor the direction for 
executor 2.x?
   - @slawekjaranowski: OK with the maven-parent profile and the smaller matrix 
as defaults, with per-repo opt-outs?
   - @gnodet: OK to build the project via `ProjectBuilder` in 
`impl/maven-testing` when `realSession = true`?
   
   Related: maven-testing fixes #13814–#13817; maven-executor fixes 
apache/maven-executor#80 (and PRs 81–84).
   


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