diqiu50 opened a new pull request, #10863:
URL: https://github.com/apache/gravitino/pull/10863

   ### What changes were proposed in this pull request?
   
   - Add reusable composite action `.github/actions/setup-java-toolchains` that 
pre-installs JDK 24 alongside JDK 17 and registers JDK 24 with Gradle toolchain 
via `~/.gradle/gradle.properties`, eliminating unreliable Foojay downloads at 
build time.
   - Apply the composite action to 5 workflows that build Trino connector 
modules: `build.yml`, `trino-integration-test.yml`, 
`trino-multi-version-test.yml`, `frontend-integration-test.yml`, 
`cron-integration-test.yml`.
   - Add `skipTrinoConnector` property to `settings.gradle.kts` to 
conditionally exclude all Trino subprojects from the Gradle project graph. Use 
it in `gvfs-fuse-build-test.yml` which has no Trino dependency.
   
   ### Why are the changes needed?
   
   Fix: #10862
   
   Trino connector submodules require Java 24 via Gradle toolchain. When only 
JDK 17 is installed in CI, Gradle auto-downloads JDK 24 via the Foojay resolver 
plugin, which is unreliable and causes flaky CI failures.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   CI workflows validation.


-- 
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]

Reply via email to