From 02c45f63cc88bddf4cf7be8cb5d716af1efe4029 Mon Sep 17 00:00:00 2001 From: Cas Donoghue Date: Wed, 28 Jan 2026 15:22:28 -0800 Subject: [PATCH] Only raise PR to bump java version when all artifacts are ready (#18668) * Ensure all JDK are available before raising java bump PR Previously a PR was raised when a new java version was detected for the default x86_64 linux artifact. In practice, other platforms become available later than the default. This commit updates updatecli to only raise a PR once all artifacts are ready. * use curl instead (cherry picked from commit e2df0027cc8eb7eeff572ec5b73edf7828153d3f) --- .ci/updatecli/bump-java-version.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.ci/updatecli/bump-java-version.yml b/.ci/updatecli/bump-java-version.yml index d454f83439..19e82ff81a 100644 --- a/.ci/updatecli/bump-java-version.yml +++ b/.ci/updatecli/bump-java-version.yml @@ -48,6 +48,37 @@ sources: file: 'https://jvm-catalog.elastic.co/jdk/latest_adoptiumjdk_{{ source "jdk_major" }}_linux' key: 'revision' +conditions: + # Verify all platform builds are available before raising a PR + # The source checks linux-x86_64, these conditions check remaining platforms + linux_aarch64_available: + name: "Check linux-aarch64 JDK is available" + kind: shell + disablesourceinput: true + spec: + command: curl --silent --fail --head 'https://jvm-catalog.elastic.co/jdk/adoptiumjdk-{{ source "latest_jdk_version" }}+{{ source "latest_jdk_build" }}-linux-aarch64' + + darwin_x86_64_available: + name: "Check darwin-x86_64 JDK is available" + kind: shell + disablesourceinput: true + spec: + command: curl --silent --fail --head 'https://jvm-catalog.elastic.co/jdk/adoptiumjdk-{{ source "latest_jdk_version" }}+{{ source "latest_jdk_build" }}-darwin' + + darwin_aarch64_available: + name: "Check darwin-aarch64 JDK is available" + kind: shell + disablesourceinput: true + spec: + command: curl --silent --fail --head 'https://jvm-catalog.elastic.co/jdk/adoptiumjdk-{{ source "latest_jdk_version" }}+{{ source "latest_jdk_build" }}-darwin-aarch64' + + windows_x86_64_available: + name: "Check windows-x86_64 JDK is available" + kind: shell + disablesourceinput: true + spec: + command: curl --silent --fail --head 'https://jvm-catalog.elastic.co/jdk/adoptiumjdk-{{ source "latest_jdk_version" }}+{{ source "latest_jdk_build" }}-windows' + targets: update_jdk_revision: name: "Update JDK revision"