setup-java/__tests__
Bruno Borges 2b61aea53d
Reuse the tool cache for floating versions the resolution cache identified (#1219)
A floating Oracle JDK or Oracle GraalVM request now skips the tool-cache
short-circuit entirely, so every job re-downloads and re-extracts the JDK
even when the exact bytes the mutable URL currently serves are already
installed locally.

The JDK resolution cache is keyed on the artifact's checksum (or, failing
that, its HTTP response fingerprint), so a hit proves which concrete
version the URL is serving right now. Once it has vouched for that
version, an existing tool-cache installation of exactly that version is
the artifact the download would have produced, and can be reused.

Reuse is therefore gated on the resolution cache hit, never on the
requested major: an unidentified floating artifact still downloads, as
does an explicit force-download.

Co-authored-by: Bruno Borges <brunoborges@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f2d9a891-a680-4b35-9644-cf2450f76f6d
2026-08-05 12:08:32 -04:00
..
cache Restore dependency and wrapper caches concurrently (#1174) 2026-07-29 13:41:24 -04:00
data Remove legacy Adopt distributions in v6 (#1185) 2026-07-31 15:48:18 -04:00
distributors Reuse the tool cache for floating versions the resolution cache identified (#1219) 2026-08-05 12:08:32 -04:00
auth.test.ts Import Maven signing keys into an isolated GPG home (#1214) 2026-08-05 12:05:36 -04:00
benchmark-cache-restore.sh Restore dependency and wrapper caches concurrently (#1174) 2026-07-29 13:41:24 -04:00
cache-feature.test.ts Optimize Temurin tool-cache fast path with lazy loading (#1179) 2026-07-29 17:53:33 -04:00
cache.test.ts Add dependency cache path overrides (#1175) 2026-07-29 14:43:55 -04:00
check-dir.sh Extract repeated directory-check assertions into check-dir.sh helper (#1127) 2026-07-15 11:14:40 -04:00
checksum.test.ts Verify JDK downloads with vendor checksums (#1167) 2026-07-29 04:43:56 -04:00
cleanup-java.test.ts Import Maven signing keys into an isolated GPG home (#1214) 2026-08-05 12:05:36 -04:00
gpg.test.ts Import Maven signing keys into an isolated GPG home (#1214) 2026-08-05 12:05:36 -04:00
java-package-contract.test.ts chore(deps): bump brace-expansion from 5.0.8 to 5.0.9 (#1202) 2026-08-04 21:15:15 -04:00
java-platform-contract.test.ts Remove legacy Adopt distributions in v6 (#1185) 2026-07-31 15:48:18 -04:00
jdk-cache.test.ts Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
jdk-resolution-cache.test.ts Report concrete versions for floating Oracle JDK downloads (#1213) 2026-08-05 11:57:27 -04:00
maven-args.test.ts Migrate to ESM and upgrade dependencies (#1078) 2026-07-08 10:15:00 +01:00
maven-xml-loading.test.ts Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
problem-matcher.test.ts Add an option to disable Java problem matchers (#1133) 2026-07-16 11:28:10 -04:00
retrying-http-client.test.ts Consolidate JDK metadata retry handling (#1162) 2026-07-29 00:09:37 -04:00
setup-java.module-loading.test.ts Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
setup-java.test.ts Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
toolchains.test.ts Optimize Maven configuration warm path (#1182) 2026-07-30 15:09:35 -04:00
util-install.test.ts Report concrete versions for floating Oracle JDK downloads (#1213) 2026-08-05 11:57:27 -04:00
util.test.ts Add conditional JDK caching (#1201) 2026-08-04 21:54:10 -04:00
verify-java.sh Report concrete versions for floating Oracle JDK downloads (#1213) 2026-08-05 11:57:27 -04:00