setup-java/dist/setup
Bruno Borges ab597f914a
Some checks failed
Validate cache / gradle1-save (macos-latest) (push) Waiting to run
Validate cache / maven-save (windows-latest) (push) Waiting to run
Validate cache / gradle-save (macos-15-intel) (push) Waiting to run
Validate cache / gradle-save (windows-latest) (push) Waiting to run
Validate cache / gradle2-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / gradle-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / gradle-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / gradle-restore (windows-latest) (push) Blocked by required conditions
Validate cache / maven-save (macos-15-intel) (push) Waiting to run
Validate cache / maven-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / maven-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / gradle1-restore (windows-latest) (push) Blocked by required conditions
Validate cache / gradle1-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / maven-restore (windows-latest) (push) Blocked by required conditions
Validate cache / sbt-save (macos-15-intel) (push) Waiting to run
Validate cache / gradle1-restore (macos-latest) (push) Blocked by required conditions
Validate cache / gradle2-restore (macos-latest) (push) Blocked by required conditions
Validate cache / gradle2-restore (windows-latest) (push) Blocked by required conditions
Validate cache / maven1-save (macos-15-intel) (push) Waiting to run
Validate cache / maven1-save (windows-latest) (push) Waiting to run
Validate cache / maven1-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / maven1-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / maven1-restore (windows-latest) (push) Blocked by required conditions
Validate cache / maven2-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / maven2-restore (ubuntu-latest) (push) Blocked by required conditions
Validate cache / maven2-restore (windows-latest) (push) Blocked by required conditions
Validate cache / sbt1-save (macos-15-intel) (push) Waiting to run
Validate cache / sbt1-save (windows-latest) (push) Waiting to run
Validate cache / sbt-save (windows-latest) (push) Waiting to run
Validate cache / sbt-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / sbt-restore (ubuntu-22.04) (push) Blocked by required conditions
Validate cache / sbt-restore (windows-latest) (push) Blocked by required conditions
Validate cache / gradle1-save (windows-latest) (push) Waiting to run
Validate cache / sbt1-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / sbt1-restore (ubuntu-22.04) (push) Blocked by required conditions
Validate cache / sbt1-restore (windows-latest) (push) Blocked by required conditions
Validate cache / sbt2-restore (macos-15-intel) (push) Blocked by required conditions
Validate cache / sbt2-restore (ubuntu-22.04) (push) Blocked by required conditions
Validate cache / sbt2-restore (windows-latest) (push) Blocked by required conditions
Validate local file / Validate installation from local file Zulu (macos-latest) (push) Waiting to run
Validate local file / Validate installation from local file Zulu (windows-latest) (push) Waiting to run
Validate local file / Validate installation from local file Eclipse Temurin (macos-latest) (push) Waiting to run
Validate local file / Validate installation from local file Eclipse Temurin (windows-latest) (push) Waiting to run
Validate publishing functionality / Validate settings.xml (macos-latest) (push) Waiting to run
Validate publishing functionality / Validate settings.xml (windows-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is overwritten if flag is true (macos-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is overwritten if flag is true (windows-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is not overwritten if flag is false (macos-latest) (push) Waiting to run
Validate publishing functionality / settings.xml is not overwritten if flag is false (windows-latest) (push) Waiting to run
Validate publishing functionality / settings.xml in custom location (macos-latest) (push) Waiting to run
Validate publishing functionality / settings.xml in custom location (windows-latest) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (microsoft, jdk, windows-latest, 25) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (microsoft, jdk, macos-latest, 25) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, macos-latest, 11) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, macos-latest, 25) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, windows-latest, 17) (push) Waiting to run
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, windows-latest, 25) (push) Waiting to run
Basic validation / Basic validation (push) Failing after 0s
Check dist/ / Check dist/ (push) Failing after 1s
CodeQL analysis / CodeQL analysis (push) Failing after 0s
Validate cache / gradle-save (ubuntu-latest) (push) Failing after 5s
Validate cache / maven-save (ubuntu-latest) (push) Failing after 5s
Validate cache / sbt-save (ubuntu-22.04) (push) Failing after 6s
Validate cache / gradle1-save (ubuntu-latest) (push) Failing after 8s
Validate cache / maven1-save (ubuntu-latest) (push) Failing after 7s
Validate cache / sbt1-save (ubuntu-22.04) (push) Failing after 7s
Validate cache / custom-maven-path-save (push) Failing after 8s
Validate cache / custom-maven-path-restore (push) Has been skipped
Validate local file / Validate installation from local file Zulu (ubuntu-latest) (push) Failing after 7s
Validate local file / Validate installation from local file Eclipse Temurin (ubuntu-latest) (push) Failing after 10s
Validate publishing functionality / Validate settings.xml (ubuntu-latest) (push) Failing after 11s
Validate publishing functionality / settings.xml is overwritten if flag is true (ubuntu-latest) (push) Failing after 8s
Validate publishing functionality / settings.xml is not overwritten if flag is false (ubuntu-latest) (push) Failing after 10s
Validate publishing functionality / settings.xml in custom location (ubuntu-latest) (push) Failing after 11s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (liberica, jdk+fx, ubuntu-latest, 21) (push) Failing after 16s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (microsoft, jdk, ubuntu-latest, 25) (push) Failing after 8s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, ubuntu-latest, 21) (push) Failing after 9s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (temurin, jdk, ubuntu-latest, 25) (push) Failing after 6s
Validate Java e2e smoke / ${{ matrix.distribution }} ${{ matrix.version }} (${{ matrix.java-package }}) - ${{ matrix.os }} (zulu, jre, ubuntu-latest, 17) (push) Failing after 5s
Licensed / Licensed (push) Failing after 0s
Security analysis with zizmor / Analyze workflows with zizmor (push) Failing after 5s
Cache resolved JDK releases to remove the vendor API from warm jobs (#1208)
* Cache resolved JDK releases to remove the vendor API from warm jobs

Only Temurin is preinstalled in the runner tool cache, so for every other
distribution `findInToolcache()` misses on essentially every job. That
forces a call to the distribution's metadata API before the JDK cache key
can even be computed, which makes the vendor a hard per-job dependency
even when the JDK bytes are already cached, and turns a vendor 403, 429,
or outage into a job failure.

Store the resolved release in a small companion cache entry keyed only on
inputs known before any network call: runner OS, architecture,
distribution, package type, requested version, and stability. A job that
finds a current entry installs the JDK without contacting the metadata API
at all.

`@actions/cache` derives a cache version by hashing the requested paths, so
save and restore paths must match. The entry therefore uses a path that
excludes the date bucket while the key includes it, which lets restore keys
fall back to an older bucket. An entry older than the current day is not
used directly: the metadata API is still queried so floating requests such
as `java-version: 21` keep picking up new releases, and the older entry is
used only when that query fails. Because the entry also carries the
download URL and checksum, that fallback works even when the JDK itself is
not cached.

Releases whose URL is not content-addressed are never stored. Oracle JDK
and Oracle GraalVM build a `/latest/` URL for a major-only version, and its
bytes change when a new build is published, so the URL and checksum are
only consistent at the moment they are resolved. Mark those releases
floating and skip recording them.

Restored payloads are validated as untrusted input, and the post-job save
rewrites the payload the key was computed for rather than uploading
whatever is on disk, since a restore in a later step targets the same path.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b76d8cb0-f629-46e1-bf9a-ffde06948644

* Widen the resolution freshness window from a day to a week

A daily window gives no benefit to the repositories that need it most.
A repository whose workflows run once a day would re-resolve on every job,
and one running weekly would never see a current entry at all, yet those
are exactly the repositories with nothing warm in the tool cache.

Seven days is also the ceiling. GitHub removes cache entries that have not
been accessed for seven days, so a longer window would leave the previous
entry evicted by the time the window rolls over, removing the stale
fallback at the moment it is most likely to be needed. It comfortably
covers JDK release cadence, which is monthly at its fastest and usually
quarterly.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b76d8cb0-f629-46e1-bf9a-ffde06948644

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Rebuild dist to match the linted source

The pre-commit hook runs `eslint --fix` after `npm run check` has already
built `dist/`, so the fix it applied to the resolution fallback warning in
`base-installer.ts` never reached the bundle.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b76d8cb0-f629-46e1-bf9a-ffde06948644

* Rebuild dist to match the linted source

The autofix accepted on the pull request edited the resolution fallback
warning in `base-installer.ts` through the GitHub UI, which does not run
`npm run build`, so `dist/` still carried the pre-fix bundle.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b76d8cb0-f629-46e1-bf9a-ffde06948644

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot-Session: b76d8cb0-f629-46e1-bf9a-ffde06948644
2026-08-04 23:58:03 -04:00
..
19.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
63.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
81.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
126.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
151.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
172.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
182.index.js Cache resolved JDK releases to remove the vendor API from warm jobs (#1208) 2026-08-04 23:58:03 -04:00
220.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
242.index.js Cache resolved JDK releases to remove the vendor API from warm jobs (#1208) 2026-08-04 23:58:03 -04:00
282.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
348.index.js Cache resolved JDK releases to remove the vendor API from warm jobs (#1208) 2026-08-04 23:58:03 -04:00
377.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
394.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
451.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
463.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
524.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
557.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
675.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
735.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
767.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
779.index.js Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
824.index.js Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
939.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
968.index.js Cache resolved JDK releases to remove the vendor API from warm jobs (#1208) 2026-08-04 23:58:03 -04:00
971.index.js Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
978.index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
index.js Move the extracted JDK into the tool-cache and speed up extraction (#1206) 2026-08-04 23:05:06 -04:00
package.json Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00