Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release_versions endpoint - lts vs non-lts versions breaks jdk8u info https://release-monitoring.org/project/371025/ #1212

Open
pnasrat opened this issue Oct 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@pnasrat
Copy link

pnasrat commented Oct 17, 2024

Describe the bug

Unclear API expectations for lts=true vs lts=false - this might be an API issue or it might be an issue that needs to be fixed on the release-monitoring side.

I was looking at the release_versions endpoint as that seems used by release monitoring https://release-monitoring.org/project/371025/ and noticed it didn't contain the last 2 jdk8u updates https://wiki.openjdk.org/display/jdk8u/Main 8u422-b05 and 8u412-b08 (report 8u402+6)

To Reproduce
Steps to reproduce the behavior:

  1. Compare the outputs of the following
curl 'https://api.adoptium.net/v3/info/release_versions?&page=0&page_size=100&project=jdk&release_type=ga' | jq ' .versions[] | select(.major == 8) ' 

The above results in empty output

curl 'https://api.adoptium.net/v3/info/release_versions?&page=0&page_size=100&project=jdk&release_type=ga&lts=true' | jq ' .versions[] | select(.major == 8) ' 
{
  "adopt_build_number": 1,
  "build": 5,
  "major": 8,
  "minor": 0,
  "openjdk_version": "1.8.0_422-b05",
  "security": 422,
  "semver": "8.0.422+5.1"
}
...

Expected behavior

It looks to me like the 8 LTS releases only appear with lts=true but I assume at some point in the past they were there without for the fedora release-monitoring service to pick up.

I assume jdk8u432 will appear under the lts releases once the adoptium version is tagged built (only got tagged on openjdkk/jdk8u half an hour ago). But I'm wondering if those releases being missing without lts=true is expected (as there probablyy needs to be a separate release-monitoring entry for adoptium-openjdk-lts setup

@pnasrat pnasrat added the bug Something isn't working label Oct 17, 2024
@sxa
Copy link
Member

sxa commented Oct 17, 2024

FYI @johnoliver

@johnoliver
Copy link
Contributor

@pnasrat because the lts=false returns more than lts=true, and lts=false produces more than 100 results before the the 8 releases are shown, the 8 releases are pushed to the second page, setting page=1 should get you on to the 8 releases, i.e:

https://api.adoptium.net/v3/info/release_versions?&page=1&page_size=100&project=jdk&release_type=ga

@pnasrat
Copy link
Author

pnasrat commented Oct 22, 2024

@johnoliver looking at it further page_size isn't being honored over 50

# 25
$  curl -s  'https://api.adoptium.net/v3/info/release_versions?&page=0&page_size=25&project=jdk&release_type=ga' | jq ' .versions | length'
25
# 100
$ curl -s 'https://api.adoptium.net/v3/info/release_versions?&page=0&page_size=100&project=jdk&release_type=ga' | jq ' .versions | length'
50

@pnasrat
Copy link
Author

pnasrat commented Oct 22, 2024

@Parameter(name = "page_size", description = "Pagination page size", schema = Schema(defaultValue = Pagination.defaultPageSize, maximum = Pagination.maxPageSize, type = SchemaType.INTEGER), required = false)

        @Parameter(name = "page_size", description = "Pagination page size", schema = Schema(defaultValue = Pagination.defaultPageSize, maximum = Pagination.maxPageSize, type = SchemaType.INTEGER), required = false)
        @QueryParam("page_size")
        pageSize: Int?,

Pagination larger page size is capped to 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants