manuzhang opened a new pull request, #16783:
URL: https://github.com/apache/iceberg/pull/16783
## Summary
This updates Spark CI to generate its test matrix from the files changed in
a pull request.
For pull requests that only touch version-scoped Spark directories such as
`spark/v4.1/**`, the workflow now runs only that Spark version's jobs. Changes
to shared code, build files, workflow files, or any unknown relevant path
continue to run the full Spark matrix.
## Why
The existing workflow always expands the full Spark matrix once Spark CI is
triggered, so a Spark 4.1-only change still runs Spark 4.0 jobs. This keeps
coverage for shared changes while avoiding unrelated version-specific test jobs.
## Validation
- Parsed `.github/workflows/spark-ci.yml` with Ruby YAML loading.
- Ran `bash -n` against the generated detector script.
- Simulated changed-file detection for:
- `spark/v4.1/**` selecting only Spark 4.1 jobs
- `.github/workflows/spark-ci.yml` selecting the full matrix
- ignored docs plus `spark/v4.1/**` still selecting only Spark 4.1 jobs
- Ran `git diff --check`.
`actionlint` was not installed locally, so I could not run it before opening
the draft PR.
--
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]