wgzhao opened a new pull request, #13462:
URL: https://github.com/apache/seatunnel/pull/13462
<!-- Thank you for contributing to SeaTunnel! -->
### Purpose of this pull request
Yes, I am contributing this change to Apache SeaTunnel.
This is a CI-only optimization found while reviewing a slow PR Build.
A scoped PR run starts each of the 46 integration-test job definitions on
both JDK 11 and JDK 17. The PR Build runs in the contributor's fork, where the
GitHub Actions concurrency limit queues those jobs, so the duplicate JDK legs
substantially lengthen the wall-clock time of the matrix.
This change adds an `e2e-jdks` output to the `changes` job:
- Changes limited to connectors, docs, benchmarks or other scoped modules
run the E2E jobs on the default JDK 17 only.
- API and engine changes, and builds of the Apache
`dev`/`main`/`master`/`*-release` branches, keep the full JDK 11 + 17 matrix.
- The `unit-test` job keeps both JDKs on every build, so a PR still compiles
and runs unit tests on JDK 11.
The second JDK still gates every merge because pushes to `apache/dev` force
the full API scope and therefore the full dual-JDK E2E matrix.
On the observed fork run (`apache/seatunnel#13459`), the matrix produced 78
job entries and roughly 41 job-hours; halving the E2E JDK legs removes about
half of those jobs.
### Does this PR introduce _any_ user-facing change?
No. It only changes which GitHub Actions matrix legs run.
### How was this patch tested?
- Validated the workflow with PyYAML (`yaml.safe_load`).
- Ran `python3 -m unittest discover -s tools/update_modules_check -p
'test_*.py'` — 51 tests pass.
- Verified that all 46 jobs consuming `e2e-jdks` list `changes` in their
`needs`, so the expression is always resolvable.
- The workflow itself is not exercised by this PR's Build because a
workflow-only change matches the lightweight API path and starts no module
tests; the next connector PR Build will run the new single-JDK path. The
fallback in the job output (`|| '["11","17"]'`) keeps the full matrix if the
selection step ever fails.
### Check list
* [ ] If any new Jar binary package adding in your PR, please add License
Notice according
[New License
Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md)
— N/A, no new binary package.
* [ ] If necessary, please update the documentation to describe the new
feature. https://github.com/apache/seatunnel/tree/dev/docs
— N/A, CI-only change.
* [ ] If necessary, please update `incompatible-changes.md` to describe the
incompatibility caused by this PR.
— N/A, no product change.
* [ ] If you are contributing the connector code, please check that the
following files are updated:
— N/A, no connector change.
--
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]