ci: test Scalpel skip-tests on fork#16
Open
gnodet wants to merge 4 commits into
Open
Conversation
Replace the multi-step CI pipeline (regen.sh build + incremental-build.sh module detection + separate Maven test invocation) with a single Maven invocation using Scalpel 0.2.0's skip-tests mode. Scalpel now builds all modules but only runs tests on affected ones, eliminating ~500 lines of grep-based module detection and threshold logic. The incremental-build.sh script becomes a post-build comment generator that reads Scalpel's JSON report. Changes: - Update Scalpel extension3:0.1.0 to extension:0.2.0 - Add Scalpel skip-tests flags to regen.sh (CI-only, no-op on dev machines) - Add --skip-tests and --coverage arguments to regen.sh - Rewrite incremental-build.sh as post-build comment generator (~200 lines) - Simplify sonar-build.yml to use regen.sh --coverage - Move skip-tests label check from script to workflow step - Update CI-ARCHITECTURE.md for new architecture Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pre-fetch the base branch using git CLI in the workflow instead of relying on Scalpel's JGit fetchBaseBranch=true. JGit's FetchCommand crashes with MissingObjectException during fetchSubmodules in GitHub Actions' shallow clones, even with fetchBaseBranch enabled. - Remove persist-credentials: false so git fetch works after checkout - Add "Fetch base branch" step using git CLI (handles shallow clones) - Set scalpel.fetchBaseBranch=false (base branch already available) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
ℹ️ CI did not produce a change detection report. |
The checkout at depth=1 means the merge base between the PR and the base branch is unreachable. Add git fetch --deepen=200 to make the PR branch history available alongside the base branch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Test run for apache#22524 — verifying Scalpel skip-tests mode works with the shallow clone fix.
This PR will be closed after CI validation.