Skip to content

Add Java setup to Windows x64 QNN CI Pipeline - #29754

Merged
tianleiwu merged 1 commit into
microsoft:mainfrom
mcollinswisc:x64_qnn_ci_jdk_version
Jul 17, 2026
Merged

Add Java setup to Windows x64 QNN CI Pipeline#29754
tianleiwu merged 1 commit into
microsoft:mainfrom
mcollinswisc:x64_qnn_ci_jdk_version

Conversation

@mcollinswisc

@mcollinswisc mcollinswisc commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

Copies the Java setup step from sibling files windows_webgpu.yml, windows_x64_release_xnnpack.yml,
windows_x64_release_build_x64_release.yml to windows_qnn_x64.yml.

This explicitly ensures a compatible Java version, rather than relying on the JDK already installed on the self-hosted runner. Otherwise there may be breakages when switching the runner.

Motivation and Context

I believe this will fix the failures in CI for the Windows x64 QNN CI Pipeline. I'm seeing it fail in both an unrelated PR:

#29728
https://github.com/microsoft/onnxruntime/actions/runs/29509983398/job/87780661649?pr=29728

and in commits to main:

https://github.com/microsoft/onnxruntime/actions/runs/29546572913/job/87780090142
https://github.com/microsoft/onnxruntime/actions/runs/29499730505/job/87625355397

This is assuming the chain of causation:

  1. [Build] Use GPU pool to unblock CI temporarily #29731 switches the runner pool
  2. The windows_qnn_x64.yml pipeline finds JDK 8 already on the runner (previous runner pool had JDK 11)
  3. The Spotless Gradle plugin v7.2.1 isn't compatible with JDK 8
  4. onnxruntime Java project can't be configured
  5. Build fails

This new workflow action hopefully installs a compatible JDK & all will be well.

#29753

Copies the Java setup step from sibling files windows_webgpu.yml,
windows_x64_release_xnnpack.yml,
windows_x64_release_build_x64_release.yml.

This explicitly ensures that a compatible Java version, rather than
relying on the JDK already installed on the self-hosted runner.
Otherwise there may be breakages when switching the runner.

microsoft#29753
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Windows x64 QNN CI workflow to explicitly install a compatible JDK via actions/setup-java, avoiding reliance on whatever Java version happens to be preinstalled on the self-hosted runner pool (which can vary when runner pools change).

Changes:

  • Add a Setup Java step to windows_qnn_x64.yml.
  • Pin the workflow to Temurin JDK 17 (matching the Java setup used in sibling Windows workflows).

@mcollinswisc

Copy link
Copy Markdown
Contributor Author

@tianleiwu
tianleiwu enabled auto-merge (squash) July 17, 2026 07:42
@tianleiwu
tianleiwu merged commit af9b0a4 into microsoft:main Jul 17, 2026
86 checks passed
tianleiwu pushed a commit that referenced this pull request Jul 17, 2026
Copies the Java setup step from sibling files `windows_webgpu.yml`,
`windows_x64_release_xnnpack.yml`,
`windows_x64_release_build_x64_release.yml` to `windows_qnn_x64.yml`.

This explicitly ensures a compatible Java version, rather than relying
on the JDK already installed on the self-hosted runner. Otherwise there
may be breakages when switching the runner.

I believe this will fix the failures in CI for the Windows x64 QNN CI
Pipeline. I'm seeing it fail in both an unrelated PR:

#29728

https://github.com/microsoft/onnxruntime/actions/runs/29509983398/job/87780661649?pr=29728

and in commits to main:

https://github.com/microsoft/onnxruntime/actions/runs/29546572913/job/87780090142

https://github.com/microsoft/onnxruntime/actions/runs/29499730505/job/87625355397

This is assuming the chain of causation:

1. #29731 switches the
runner pool
2. The `windows_qnn_x64.yml` pipeline finds JDK 8 already on the runner
(previous runner pool had JDK 11)
3. The Spotless Gradle plugin v7.2.1 isn't compatible with JDK 8
4. onnxruntime Java project can't be configured
5. Build fails

This new workflow action hopefully installs a compatible JDK & all will
be well.

#29753
@mcollinswisc
mcollinswisc deleted the x64_qnn_ci_jdk_version branch July 18, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants