dongjoon-hyun opened a new pull request, #60477:
URL: https://github.com/apache/spark/pull/60477
### What changes were proposed in this pull request?
This PR aims to run the `Java 25 build with Maven` job in PRs only when the
`sql` or `connect` modules are affected, according to `dev/is-changed.py`.
```bash
java25=`./dev/is-changed.py -m "sql,connect"`
```
Since `dev/is-changed.py` follows module dependencies, the job still runs
when upstream modules such as `core` or `catalyst`, or root-level build files
such as `pom.xml`, are changed. Commits pushed to `apache/spark` are not
affected because `build_main.yml` still sets `java25` to `true` explicitly.
### Why are the changes needed?
The job has two steps.
1. `Build with Maven`: a Maven build of all profiles on Java 25 without
tests.
2. `Test native data sources`: runs `NativeDataSourceSuite`,
`NativeDataSourceClusterSuite`, and `NativeDataSourceConnectSuite`. These need
the FFM API on Java 22 or later, so the other PR jobs on Java 21 skip them.
The scheduled Java 25 builds of `master` already cover both steps every 3
days.
- `build_maven_java25.yml` builds all profiles with Maven on Java 25 and
runs the `sql` and `connect` tests, including the above suites.
- `build_java25.yml` runs the same suites with SBT on Java 25.
So in PRs, the job adds pre-merge coverage only for the native data source
tests, which live in the `sql` and `connect` modules. This PR skips the job for
PRs that do not affect these modules, such as Python-only, documentation-only,
or `dev/` script changes.
### Does this PR introduce _any_ user-facing change?
No. This is a CI-only change.
### How was this patch tested?
Pass the CIs. In addition, I checked the new condition locally against the
last 300 non-merge commits of `master`. The job runs for 235 commits and is
skipped for 65 commits.
```bash
for c in $(git log --no-merges --format=%h -300 apache/master); do
GITHUB_SHA=$c GITHUB_PREV_SHA=$c~1 ./dev/is-changed.py -m "sql,connect"
done | sort | uniq -c
```
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5.5
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]