Skip to content

ci: test Scalpel shadow comparison — camel-core test-jar change [DO NOT MERGE]#23033

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

ci: test Scalpel shadow comparison — camel-core test-jar change [DO NOT MERGE]#23033
gnodet wants to merge 4 commits into
apache:mainfrom
gnodet:test-scalpel-shadow-b

Conversation

@gnodet

@gnodet gnodet commented May 7, 2026

Copy link
Copy Markdown
Contributor

Test PR for Scalpel shadow comparison validation

DO NOT MERGE — this PR exists solely to validate the Scalpel shadow comparison output from PR #22524.

Scenario B: camel-core test-jar change

A trivial comment added to ContextTestSupport.java in camel-core's test sources (test-jar). Many modules depend on camel-core, but only a subset actually use the test-jar.

Expected: The grep-based script should flag all ~500 modules that depend on camel-core. Scalpel's source-set-aware propagation should recognize this is a test-jar-only change and flag far fewer modules — only those that actually depend on the test-jar.

This PR will be closed after validation.

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

🌟 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 and others added 4 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>
@gnodet gnodet force-pushed the test-scalpel-shadow-b branch from 6b5cf90 to 53ee2a5 Compare May 7, 2026 14:02
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • core/camel-core

⚠️ Some tests are disabled on GitHub Actions (@DisabledIfSystemProperty(named = "ci.env.name")) and require manual verification:

  • core/camel-core: 2 test(s) disabled on GitHub Actions

⚙️ View full build and test results

@gnodet

gnodet commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

Closing — redesigning with POM changes to trigger Scalpel shadow comparison.

@gnodet gnodet closed this May 7, 2026
@gnodet gnodet deleted the test-scalpel-shadow-b branch May 7, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant