CI: Select PR matrices incrementally#16566
Conversation
8871ed8 to
0f085f8
Compare
dd3c1c0 to
43ffb7b
Compare
5b1993c to
4682b11
Compare
|
thanks for the PR @ajantha-bhat i've done some work with gradle cache recently (#16356) and made it so that there's only 1 canonical writer. Before this change, I saw that we were constantly getting thrashed by multiple cache writers and cache utilization was really low. Theres also a security component to this, we should only write to cache on push to I'm curious how this change effects when to save to cache and how its reused |
4682b11 to
dc78709
Compare
|
Thanks @kevinjqliu, good catch. I updated the PR to preserve #16356's cache model. The selective PR matrix planner now stands on its own, and this PR no longer adds custom cache artifact merge/store actions or additional Gradle cache writers. Behavior after the update:
So the runner reduction now comes from selective matrices, while the shared Gradle cache writer remains unchanged. |
Mailing list discussion: https://lists.apache.org/thread/36vxlql61gojbg639c86mnz78n57kvgm
Summary
full-cilabels, and global build/workflow changes to select PR matricesmain, release branches, tags,full-ci, and global Gradle/workflow changesjava-ci.ymlbuild-checks (17)writes cache onmain; all other Gradle jobs are read-onlySelective PR behavior
spark/v4.1/**selects Spark 4.1 only; other versioned Spark paths behave similarlyflink/v2.0/**selects Flink 2.0 only; other versioned Flink paths behave similarlyGradle cache behavior
This PR does not add new Gradle cache writers. PR jobs restore cache read-only, release/tag jobs remain read-only, and
mainkeeps the single canonical writer introduced in #16356.Validation
git diff --check origin/main...HEADbash -n .github/scripts/plan-pr-ci.sh./gradlew -h