davsclaus opened a new pull request, #31339:
URL: https://github.com/apache/camel/pull/31339

   The incremental build tested the whole project for a design doc PR: #31332 
(CAMEL-25142 design doc update) changes only 
`design/cross-cutting-binding.adoc`, and its `build (21, false)` job tested 703 
modules for 2h19m. The earlier design PR #27083 did the same.
   
   **Why:** the file-path step already skips `design/` (no pom up to the root), 
but Scalpel gave the file to the root module `:camel` ("Direct: 1"), and the 
dependents of the root are every module.
   
   **What changed** in `.github/actions/incremental-build/incremental-build.sh`:
   - `design/**`, `camel-sbom/**` and `plugins/**` (the top-level directories 
that hold no module) join `-Dscalpel.excludePaths`.
   - When every changed file is excluded, Scalpel reports `status: skipped` 
together with `fullBuildTriggered: true`. The script now treats that as 
"nothing to add" instead of a Scalpel failure, so a doc-only PR comment no 
longer warns "Scalpel triggered a full build (changed file: null)". The 
file-path step decides alone, which for a design doc gives "No modules to 
test", the same as a `CLAUDE.md`-only PR today.
   - `.github/CI-ARCHITECTURE.md` describes both.
   
   **Checked locally:** Scalpel 0.5 report mode on the #31332 branch with the 
new excludes gives `status: skipped`, `reason: all changed files excluded by 
path filters`, and the new check prints `Scalpel: skipped (...)`. A PR that 
changes a module and a design doc is unchanged: Scalpel only drops the design 
file.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 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]

Reply via email to