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

Point GitHub latest release to the highest version instead of the newest one #118653

Open
xeraa opened this issue Dec 13, 2024 · 2 comments
Open
Labels
:Delivery/Build Build or test infrastructure >enhancement Team:Delivery Meta label for Delivery team

Comments

@xeraa
Copy link
Contributor

xeraa commented Dec 13, 2024

Description

https://api.github.com/repos/elastic/elasticsearch/releases/latest seems to be pointing to the (chronologically) latest release but it probably should point to the last / highest version instead. Right now it's ok with 8.17.0, but once we release another patch level version for 7.x or 8.16.x, those will be picked up instead.

Related discussion and where it came up: acidvegas/elastop#14

@xeraa xeraa added >enhancement needs:triage Requires assignment of a team area label Team:Delivery Meta label for Delivery team labels Dec 13, 2024
@elasticsearchmachine elasticsearchmachine removed the Team:Delivery Meta label for Delivery team label Dec 13, 2024
@pxsalehi pxsalehi added :Delivery/Build Build or test infrastructure and removed needs:triage Requires assignment of a team area label labels Dec 13, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Dec 13, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@breskeby
Copy link
Contributor

I think our automation that creates the releases here in GitHub needs to distinguish on creation if a release should be marked as latest. There is a flag make_latest for that. I'll reach out to release eng as they own that logic.

In the meantime one workaround might be to get the releases and sort them by tag:

curl -s https://api.github.com/repos/elastic/elasticsearch/releases | jq 'sort_by(.tag_name)  | reverse | .[0]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >enhancement Team:Delivery Meta label for Delivery team
Projects
None yet
Development

No branches or pull requests

4 participants