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

version: latest seems to use most recent release instead of latest release #17

Closed
realkosty opened this issue Apr 27, 2023 · 9 comments
Closed
Assignees
Labels
bug This issue/PR refers to a bug

Comments

@realkosty
Copy link

Hey Mathieu, thanks for creating this super useful action.

Most recent release is sometimes a backport (e.g. right now it's 1.75.1) which will break workflow that was using 2.x

switching to version: 2.17.4 which is Latest at the time of writing fixed my broken workflow which leads me to believe that using 1.75.1 is the root cause.

Screenshot 2023-04-27 at 1 40 57 PM

@matbour matbour self-assigned this Apr 27, 2023
@matbour matbour added the bug This issue/PR refers to a bug label Apr 27, 2023
@matbour
Copy link
Owner

matbour commented Apr 27, 2023

That you very much for you report. If I understand correctly, you mean that the release tagged latest is sometimes a back of a v1.x instead of a v2.x?

For example, sometimes the version v1.x.y can be considered as latest instead of the latest v2?

@realkosty
Copy link
Author

realkosty commented Apr 28, 2023 via email

@realkosty
Copy link
Author

realkosty commented Apr 28, 2023 via email

@matbour
Copy link
Owner

matbour commented Apr 29, 2023

Thanks for the report and investigation. However, I do think that using the latest tag has not the same meaning as the highest version. For this reason I am not sure that I should change how the latest tag works.

Maybe instead I introduce should semver matching like:

version: 2.x

@micahbf
Copy link

micahbf commented Nov 6, 2023

I just ran into this issue as well, and setting an explicit version will work, but it was very surprising behavior to me, and took me a bit of debugging to track down why our build suddenly stopped working. I was searching the sentry-cli changelog for new breaking changes.

I think people generally understand latest to mean highest.

@realkosty
Copy link
Author

@mathieu-bour Whether or not latest means highest or not, practically speaking the following happens:

  1. new users configures action to use latest as a sensible default
  2. at the time of setting up the workflow latest resolves to 2.x
  3. everything works
  4. until one day Sentry publishes a 1.x backport and marks it as "Latest"
  5. things break

Example, just a few days ago on Nov 3, 2023 we've released 1.76.0 and labled
Screenshot 2023-11-06 at 4 34 56 PM

When it last happened for me I just froze the major version to 2.17.4 to avoid this happening again, but I think a lot of people are affected.

I'm wondering if it's really on Sentry to not label backports as "Latest" and not the problem with this GH Action. When I initially opened the ticket I wasn't clear if you picked up what Sentry labeled as Latest or simply chronologically most recent.

@realkosty
Copy link
Author

Sentry will be fixing this on our side: getsentry/craft#498
My understanding is that once implemented this will ensure that only v2 releases are labeled as "Latest"

@mydea
Copy link

mydea commented Nov 15, 2023

Just chiming in here, we have already fixed the problem where in our release registry latest will not be overwritten if we release a backported v1 version of sentry-cli. So this problem specifically should be gone now!

The problem that we are currently fixing is to ensure the release on github is not marked as "latest". However, that should not really affect anything, except that it is potentially confusing. So I think this can be closed now, as as far as I can see this repo only relies on downloads.sentry-cdn.com/sentry-cli/latest, which should be working already as expected even if we release a v1 version. (fixed in getsentry/craft#483)

@matbour
Copy link
Owner

matbour commented Nov 27, 2023

Hi all, thanks for the update. Feel free to re-open if Sentry messes again with the latest tag.

@matbour matbour closed this as completed Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR refers to a bug
Projects
None yet
Development

No branches or pull requests

4 participants