Skip to content

ci: test Scalpel shadow comparison — leaf component change [DO NOT MERGE]#23032

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

ci: test Scalpel shadow comparison — leaf component change [DO NOT MERGE]#23032
gnodet wants to merge 4 commits into
apache:mainfrom
gnodet:test-scalpel-shadow-a

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 A: Leaf component change

A trivial comment added to DirectComponent.java (camel-direct). This is a leaf component with few downstream dependents. Both the grep-based script and Scalpel should produce similar results.

Expected: The shadow comparison section in the CI comment should show a small, consistent set of modules for both mechanisms.

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-a branch from b95ec1c to b897c55 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:

  • components/camel-direct

ℹ️ Dependent modules were not tested because the total number of affected modules exceeded the threshold (50). Use the test-dependents label to force testing all dependents.


⚙️ 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-a 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