Skip to content

Commit e8e2f2a

Browse files
committed
ci: add compile-only PR build job for spark-4.1
Adds a new build-spark-4.1 job to pr_build_linux.yml that runs ./mvnw install -DskipTests -Dmaven.test.skip=true -Pspark-4.1. Verifies that the new profile and shim trees keep compiling on every PR without enabling any spark-4.1 tests in CI. Avoids the existing lint-java matrix because that job runs -Psemanticdb scalafix and semanticdb-scalac_2.13.17 is not yet published. Avoids the linux-test matrix because Comet's existing test suites have known failures under the spark-4.1 profile that are deferred to follow-up PRs. The job is independent: needs only the lint gate, doesn't share artifacts with build-native, and doesn't change any other job.
1 parent e9c1f30 commit e8e2f2a

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pr_build_linux.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,38 @@ jobs:
140140
run: |
141141
./dev/ci/check-working-tree-clean.sh
142142
143+
# Compile-only verification for Spark 4.1. Tests are intentionally skipped: the spark-4.1
144+
# profile is currently a build target only, and several runtime/test failures are tracked
145+
# in follow-up PRs. Excluded from lint-java because semanticdb-scalac_2.13.17 is not yet
146+
# published and the lint job activates -Psemanticdb.
147+
build-spark-4.1:
148+
needs: lint
149+
name: Build Spark 4.1, JDK 17
150+
runs-on: ubuntu-latest
151+
container:
152+
image: amd64/rust
153+
steps:
154+
- uses: actions/checkout@v6
155+
156+
- name: Setup Rust & Java toolchain
157+
uses: ./.github/actions/setup-builder
158+
with:
159+
rust-version: ${{ env.RUST_VERSION }}
160+
jdk-version: 17
161+
162+
- name: Cache Maven dependencies
163+
uses: actions/cache@v5
164+
with:
165+
path: |
166+
~/.m2/repository
167+
/root/.m2/repository
168+
key: ${{ runner.os }}-java-maven-${{ hashFiles('**/pom.xml') }}-spark-4.1-build
169+
restore-keys: |
170+
${{ runner.os }}-java-maven-
171+
172+
- name: Compile (skip tests)
173+
run: ./mvnw -B install -DskipTests -Dmaven.test.skip=true -Pspark-4.1
174+
143175
# Build native library once and share with all test jobs
144176
build-native:
145177
needs: lint

0 commit comments

Comments
 (0)