davsclaus opened a new pull request, #31067:
URL: https://github.com/apache/camel/pull/31067
_Claude Code on behalf of Claus Ibsen_
A component PR such as #30923 (camel-thrift) ran the tests of 31 other
modules: camel-yaml-dsl, camel-jbang-*, camel-launcher, the catalog modules.
Most of them are in the `EXCLUSION_LIST`. Three causes:
1. **The Scalpel merge put the excluded modules back.** All of Scalpel's
affected modules were added to `-pl`, including the ones Scalpel marks
`testsSkipped` (the `EXCLUSION_LIST`). Because they were listed by name,
`filterExclusions` dropped their `!:` exclusions ("conflicts with explicitly
included module"). Only the modules Scalpel would test are merged now.
2. **Everything is downstream of `camel-allcomponents`.** Every component is
a dependency of `camel-allcomponents`, so the `-amd` reactor of a component
reaches `camel-catalog` and everything downstream of it.
`!:camel-allcomponents` removes only that module from the reactor, not its
dependents. So `camel-jbang-run`, `camel-jbang-plugin-tui`,
`camel-jbang-plugin-mcp` and `camel-catalog-cve` were tested on every component
PR. `camel-allcomponents` is now a cut point (`CUT_POINT_MODULES`): the modules
reached only through it are excluded. Some modules downstream of the cut point
keep their `-amd` reactor:
- a changed module itself (`camel-jbang-core` still tests
`camel-jbang-plugin-tui`)
- a module that declares a dependency on a changed module (`camel-chaos`
still tests `camel-jbang-plugin-tui`, `camel-cli-connector` and
`camel-cli-debug`)
3. **A regenerated catalog file counted as a catalog change.** A module
where only `src/generated/` changed (here the catalog copy of the component
doc) is now built like a pom-only module, without `-amd`. Scalpel also gets its
`src/generated/**` as an exclude path.
The cut costs one or two more reactor queries (`exec:exec`, about 25s each)
when a changed module reaches `camel-allcomponents`. With fewer modules
counted, a component PR now passes the dependents threshold more often, so its
real dependents are tested.
### Verified locally
- Scalpel report on a thrift-only change, with and without the generated
exclude: `camel-catalog` is no longer a `DIRECT` module.
- `findCutModules` against the real reactor:
| Changed | -amd reactor | Cut | Tested |
| --- | --- | --- | --- |
| `camel-thrift` | 36 | 35 | `camel-thrift` |
| `camel-chaos` | 38 | 30 | `camel-chaos`, `camel-cli-connector`,
`camel-cli-debug`, `camel-jbang-plugin-tui` (others left are in
`EXCLUSION_LIST`) |
| `camel-thrift` + `camel-jbang-core` | 36 | 22 | `camel-thrift`,
`camel-jbang-core`, its plugins not in `EXCLUSION_LIST` |
- New `incremental_build_cut_test.sh` (13 cases); the existing shell tests
pass.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]