setup-java/__tests__/distributors
James Wald d3530c1eb4
dist: Migrate from Zulu Discovery API to Azul Metadata API (#1010)
* Use Azul metadata API

* Document arm64 -> aarch64 mapping in README.md

* Paginate through all available versions

* Fix typo: win_aarhc4

* Only query for linux_glibc packages

* Add Zulu CRaC package support to metadata migration

Fold CRaC-related work into the Zulu metadata API migration by wiring crac_supported query handling, extending Zulu package docs, and updating installer tests for jdk+crac/jre+crac behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Harden Zulu metadata pagination with safety cap

- Stop paginating on a short page to avoid an extra empty request
- Guard against undefined results (not just null)
- Cap iterations at 100 pages and warn if the limit is hit to
  prevent a runaway loop if the API misbehaves

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Preserve JDK build number from Azul Metadata API

The Azul Metadata API returns java_version as a 3-element array
(e.g. [17,0,7]) and reports the build number separately in
openjdk_build_number. The migration mapped version directly from
java_version, dropping the build and breaking exact-version lookups
like 17.0.7+7 (e2e failure: "No matching version found for SemVer").

Add openjdk_build_number to IZuluVersions and append it to
java_version before converting to semver so resolved versions retain
the build (e.g. 17.0.7+7). Update the zulu test fixtures to mirror the
real API shape (3-element java_version plus openjdk_build_number) so
unit tests exercise the actual response format, and rebuild dist.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Bruno Borges <brborges@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-08 10:00:43 +01:00
..
adopt-installer.test.ts Make the Adoptopenjdk package type look at the Temurin repo first for latest assets (#522) 2026-06-12 16:30:59 +01:00
base-installer.test.ts feat: Add set-default option (#1017) 2026-07-07 12:38:57 -04:00
corretto-installer.test.ts Refactor error handling and improve test logging for installers (#989) 2026-04-13 12:44:45 -05:00
dragonwell-installer.test.ts Spelling (#713) 2026-06-22 10:57:54 -04:00
graalvm-installer.test.ts dist: Address Copilot review suggestions from PR #1042 (GraalVM Community) (#1059) 2026-06-23 13:37:44 -04:00
jetbrains-installer.test.ts Updated jetbrains test: https.request() now catches errors. This fixes leaking tests as well (#1070) 2026-07-02 15:01:00 -04:00
kona-installer.test.ts dist: Support Tencent Kona JDK (#672) 2026-07-07 11:00:40 -04:00
liberica-installer.test.ts Refactor error handling and improve test logging for installers (#989) 2026-04-13 12:44:45 -05:00
liberica-linux-installer.test.ts Refactor error handling and improve test logging for installers (#989) 2026-04-13 12:44:45 -05:00
liberica-windows-installer.test.ts Refactor error handling and improve test logging for installers (#989) 2026-04-13 12:44:45 -05:00
local-installer.test.ts Spelling (#713) 2026-06-22 10:57:54 -04:00
microsoft-installer.test.ts feat: Add verify-signature plumbing and Temurin+Microsoft verification support (#1060) 2026-06-29 13:19:49 +01:00
oracle-installer.test.ts Refactor error handling and improve test logging for installers (#989) 2026-04-13 12:44:45 -05:00
sapmachine-installer.test.ts Spelling (#713) 2026-06-22 10:57:54 -04:00
semeru-installer.test.ts Implement pagination with link headers for Adoptium based apis (#1014) 2026-06-12 11:50:16 +01:00
temurin-installer.test.ts feat: Add verify-signature plumbing and Temurin+Microsoft verification support (#1060) 2026-06-29 13:19:49 +01:00
zulu-installer.test.ts dist: Migrate from Zulu Discovery API to Azul Metadata API (#1010) 2026-07-08 10:00:43 +01:00
zulu-linux-installer.test.ts dist: Migrate from Zulu Discovery API to Azul Metadata API (#1010) 2026-07-08 10:00:43 +01:00
zulu-windows-installer.test.ts dist: Migrate from Zulu Discovery API to Azul Metadata API (#1010) 2026-07-08 10:00:43 +01:00