You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/07/02 06:34:16 UTC
[PR] ci: move Scalpel deepening to on-demand (skip for Java-only PRs) [camel]
gnodet opened a new pull request, #24368:
URL: https://github.com/apache/camel/pull/24368
## Summary
- **Move** the `git fetch --deepen` logic from a dedicated workflow step (runs for every PR) into `runScalpelDetection()` (runs only when a `pom.xml` changed)
- **Add depth=50** as first step — recent PRs where the merge base is close avoid fetching 200 commits upfront
- **Progressive depths**: `50 → 200 → 1000 → full history` (last resort)
## Motivation
The deepening step was taking ~5-6 minutes for every PR on the Camel repo (large git history). Since the majority of PRs only change Java files and never trigger Scalpel, this was wasted CI time. By moving the deepening into `runScalpelDetection()`, only PRs that actually need Scalpel (pom.xml changes) pay the cost.
## Changes
| File | Change |
|------|--------|
| `pr-build-main.yml` | Remove the "Fetch base branch for Scalpel" step |
| `incremental-build.sh` | Add progressive deepening inside `runScalpelDetection()` |
| `CI-ARCHITECTURE.md` | Update documentation to reflect the new approach |
## Test plan
- [ ] Java-only PR: verify no deepening occurs, no Scalpel section in comment
- [ ] POM-changing PR: verify Scalpel runs with deepening, shadow comparison appears in comment
- [ ] PR with merge base within 50 commits: verify depth=50 is sufficient
_Claude Code on behalf of Guillaume Nodet_
🤖 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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ci: move Scalpel deepening to on-demand (skip for Java-only PRs) [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24368:
URL: https://github.com/apache/camel/pull/24368#issuecomment-4862867314
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ci: run Scalpel shadow comparison for all PRs, add depth=50 step [camel]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #24368:
URL: https://github.com/apache/camel/pull/24368
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org