Add available_ea_releases to /v3/info/available_releases response#1932
Draft
Copilot wants to merge 2 commits into
Draft
Add available_ea_releases to /v3/info/available_releases response#1932Copilot wants to merge 2 commits into
available_ea_releases to /v3/info/available_releases response#1932Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/adoptium/api.adoptium.net/sessions/edf73632-383a-4571-8aeb-3efc6678ab7b Co-authored-by: karianna <180840+karianna@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add functionality to make the API return EA releases
Add May 2, 2026
available_ea_releases to /v3/info/available_releases response
Contributor
|
@johnoliver Over to you for a human review, not sure if this is how you'd want to add the ability to list EA releases. |
Contributor
|
@karianna not sure its a feature I care too much about, nobody has asked for it I dont think |
Contributor
|
@johnoliver See request at #1931 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
available_releasesonly lists versions with GA releases, leaving EA-only versions (e.g. in-development JDK tip version) undiscoverable via the API — even though EA release data is stored and queryable.Changes
ReleaseInfo— Newavailable_ea_releases: Array<Int>field listing all major versions with at least one EA release, with OpenAPI schema annotation. Defaults toemptyArray()for backward compatibility.ReleaseVersionResolver— Computesavailable_ea_releasesalongside existing fields. Refactored to materializeallReleasesonce as aList(avoiding single-useSequencere-traversal) and removed redundant.asSequence()calls on already-list-backed collections.APIDataStoreImpl—loadDataFromDb()now unionsavailable_ea_releasesinto the version scan list, so EA-only versions are loaded on startup rather than relying solely on the+5heuristic.ApiDataStoreStuband addedavailableEaReleasesIsCorrecttoReleaseVersionResolverTest.Example response
{ "available_releases": [8, 11, 17, 21, 23], "available_lts_releases": [8, 11, 17, 21], "available_ea_releases": [8, 11, 17, 21, 23, 25], "most_recent_lts": 21, "most_recent_feature_release": 23, "most_recent_feature_version": 25, "tip_version": 25 }Clients can now discover EA-only versions and query them via
/v3/assets/feature_releases/{version}/ea.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
fastdl.mongodb.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -javaagent:/home/REDACTED/.m2/repository/org/jacoco/org.jacoco.agent/0.8.14/org.jacoco.agent-0.8.14-runtime.jar=destfile=/home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/jacoco.exec --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/jdk.internal.module=ALL-UNNAMED -Dquarkus-internal-test.serialized-app-model.path=/home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/quarkus/bootstrap/test-app-model.dat -jar /home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/surefire/surefirebooter-20260502015225480_3.jar /home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/surefire 2026-05-02T01-52-25_326-jvmRun1 surefire-20260502015225480_1tmp surefire_0-20260502015225480_2tmp(dns block)/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java -javaagent:/home/REDACTED/.m2/repository/org/jacoco/org.jacoco.agent/0.8.14/org.jacoco.agent-0.8.14-runtime.jar=destfile=/home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/jacoco.exec --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/jdk.internal.module=ALL-UNNAMED -Dquarkus-internal-test.serialized-app-model.path=/home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/quarkus/bootstrap/test-app-model.dat -jar /home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/surefire/surefirebooter-20260502015320078_3.jar /home/REDACTED/work/api.adoptium.net/api.adoptium.net/adoptium-updater-parent/adoptium-api-v3-updater/target/surefire 2026-05-02T01-53-20_011-jvmRun1 surefire-20260502015320078_1tmp surefire_0-20260502015320078_2tmp(dns block)repo.gradle.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.15/9925cc1d/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.15/9925cc1d/bin/m2.conf -Dmaven.home=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.15/9925cc1d -Dlibrary.jansi.path=/home/REDACTED/.m2/wrapper/dists/apache-maven-3.9.15/9925cc1d/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/api.adoptium.net/api.adoptium.net org.codehaus.plexus.classworlds.launcher.Launcher test -pl adoptium-updater-parent/adoptium-api-v3-updater -Dtest=ReleaseVersionResolverTest -q(dns block)If you need me to access, download, or install something from one of these locations, you can either: