Skip to content

ci: test Scalpel shadow — junit-jupiter-version test dependency [DO NOT MERGE]#23063

Closed
gnodet wants to merge 4 commits intoapache:mainfrom
gnodet:test-scalpel-shadow-b
Closed

ci: test Scalpel shadow — junit-jupiter-version test dependency [DO NOT MERGE]#23063
gnodet wants to merge 4 commits intoapache:mainfrom
gnodet:test-scalpel-shadow-b

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented May 7, 2026

Test PR for Scalpel shadow comparison validation

DO NOT MERGE — validates PR #22524.

Scenario B: Test-scoped managed dependency (junit-jupiter-version)

Adds a comment near junit-jupiter-version in parent/pom.xml. No module directly references ${junit-jupiter-version} — it's consumed via <dependencyManagement>.

Expected:

  • Grep: finds 0 affected modules
  • Scalpel: should detect junit-jupiter as test-scoped and identify affected modules via effective POM comparison

This demonstrates grep's blind spot for managed dependencies and Scalpel's scope awareness.

gnodet and others added 3 commits May 7, 2026 16:01
Upgrade Scalpel from extension3:0.1.0 to extension:0.3.0 and run it in
shadow mode — observing what skip-tests mode would do without affecting
actual test execution. This allows validating Scalpel's decisions across
many PRs before switching to Scalpel-driven test execution.

Changes:
- Upgrade Scalpel to 0.3.0 with source-set-aware propagation and
  skipTestsForDownstreamModules support
- Pre-fetch base branch in CI workflow (avoids JGit issues in shallow clones)
- Remove persist-credentials: false (needed for git fetch operations)
- Add shadow comparison section to PR comments showing what Scalpel
  skip-tests mode would have tested vs the current approach
- Update CI-ARCHITECTURE.md with shadow comparison documentation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scalpel 0.3.0 upgrade is already on main. This PR focuses on the shadow
comparison feature, not the version bump.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Switch the grep-based incremental build script from fetching diffs via
the GitHub REST API to using local git merge-base + diff. Both the
grep script and Scalpel now share the same --deepen=200 fetch step,
removing the GitHub API dependency for diff fetching.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 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 have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@gnodet gnodet force-pushed the test-scalpel-shadow-b branch from 624de76 to 7439d61 Compare May 7, 2026 15:08
@gnodet
Copy link
Copy Markdown
Contributor Author

gnodet commented May 7, 2026

Closing — version didn't exist. Recreating with real version.

@gnodet gnodet closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant