ci: add Scalpel-based POM dependency detection alongside grep#22509
Closed
gnodet wants to merge 1 commit intoapache:mainfrom
Closed
ci: add Scalpel-based POM dependency detection alongside grep#22509gnodet wants to merge 1 commit intoapache:mainfrom
gnodet wants to merge 1 commit intoapache:mainfrom
Conversation
Add Maveniverse Scalpel as a parallel POM dependency detection mechanism in the incremental build script. Scalpel compares effective POM models between the base branch and the PR, catching managed dependencies, plugin version changes, BOM imports, and transitive dependency impacts that the existing grep-based approach misses. Both detection methods run in parallel; results are merged (union) before testing. If Scalpel fails, the script falls back to grep-only with no regression. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
5 tasks
Contributor
Author
|
Superseded by #22510 which uses the released Scalpel 0.1.0 instead of a SNAPSHOT with temporary extension injection. Claude Code on behalf of Guillaume Nodet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
incremental-build.shWhat this fixes
The grep-based approach has 5 structural limitations (documented in CI-ARCHITECTURE.md). For example, when Dependabot bumps
azure-sdk-bom-version(PR #21744), grep finds onlycamel-azure/pom.xmlbut misses all 12 child Azure modules that inherit via the BOM without explicit${property}references. Scalpel catches all of them via effective POM model comparison.How it works
0.1.0-SNAPSHOT) into.mvn/extensions.xmlmvn validate -Dscalpel.mode=report(~60-90s, no compilation needed)target/scalpel-report.jsonfor affected modules, changed properties, managed deps/pluginsextensions.xmlvia trap (fail-safe)PR comment enhancements
The CI comment now shows Scalpel-detected information: changed managed dependencies, changed managed plugins, and a note crediting Scalpel when it contributes to detection.
Test plan
parent/pom.xml🤖 Generated with Claude Code
Claude Code on behalf of Guillaume Nodet