CI: Select Flink PR matrix by changed version #16947
Open
ajantha-bhat wants to merge 2 commits into
Open
Conversation
a3e713a to
4ffe7cc
Compare
Generated-by: GPT-5 Codex
Generated-by: GPT-5 Codex
4ffe7cc to
0dda2b7
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.
depends on #16945
Summary
This updates Flink CI to build an incremental PR matrix based on the changed Flink version path.
For ordinary PRs, Flink CI now uses the JVM plan from the earlier Java CI PR and then 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 onlyfull-ci, and push/main/release/tag runs fall back to the full Flink matrixKnown Flink versions are read from
knownFlinkVersionsingradle.properties, so adding/removing Flink versions does not require hard-coding them in the planner.This keeps the PR path conservative: stale or unknown planner inputs run more CI, not less.
Testing
actionlint .github/workflows/flink-ci.ymlbash -n .github/scripts/ci-plan-common.sh .github/scripts/plan-flink-ci.shjvm-ci-plan.ymlandflink-ci.ymlgit diff --checkflink/v2.0/**-> Flink 2.0 onlyflink/v1.20/**-> Flink 1.20 onlyfull-ci/ push -> all Flink versions with the full JVM matrix