CI: Select Flink PR matrix by changed version#16947
Open
ajantha-bhat wants to merge 1 commit into
Open
Conversation
a3e713a to
4ffe7cc
Compare
4ffe7cc to
0dda2b7
Compare
0dda2b7 to
be257b4
Compare
be257b4 to
9328952
Compare
Generated-by: GPT-5 Codex
9328952 to
c4f5327
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This updates Flink CI to build an incremental PR matrix based on the changed Flink version path.
For pull requests, Flink CI runs on JDK 17 and narrows the Flink matrix when changes are scoped to a known Flink version path:
flink/v1.20/**runs Flink 1.20 onlyflink/v2.0/**runs Flink 2.0 onlyflink/v2.1/**runs Flink 2.1 onlyFor non-PR runs, including main branch, release branch, and tag builds, Flink CI still runs the full Flink version matrix with both JDK 17 and JDK 21.
Known Flink versions are read from
knownFlinkVersionsingradle.properties, so adding/removing Flink versions does not require hard-coding the version list in the planner.This keeps the PR path conservative: stale or unknown planner inputs run more Flink CI, not less.
Testing
zizmor --min-severity medium --min-confidence medium --no-progress .github/workflows/flink-ci.ymlactionlint .github/workflows/flink-ci.ymlbash -n .github/scripts/ci-plan-common.sh .github/scripts/plan-flink-ci.shflink-ci.ymlgit diff --check origin/main..HEADflink/v2.0/**-> Flink 2.0 only on JDK 17 for PRsAI Disclosure