Skip to content

ci: test Scalpel skip-tests on fork#16

Open
gnodet wants to merge 4 commits into
mainfrom
test-scalpel-skip-tests
Open

ci: test Scalpel skip-tests on fork#16
gnodet wants to merge 4 commits into
mainfrom
test-scalpel-skip-tests

Conversation

@gnodet
Copy link
Copy Markdown
Owner

@gnodet gnodet commented Apr 9, 2026

Test run for apache#22524 — verifying Scalpel skip-tests mode works with the shallow clone fix.

This PR will be closed after CI validation.

gnodet and others added 3 commits April 10, 2026 01:03
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>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

ℹ️ CI did not produce a change detection report.


⚙️ View full build and test results

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant