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

False positives for strange tag versions #138

Closed
michbeck100 opened this issue Nov 22, 2023 · 5 comments
Closed

False positives for strange tag versions #138

michbeck100 opened this issue Nov 22, 2023 · 5 comments
Labels
bug Something isn't working image-accuracy Used to track bugs that are related to image accuracy stale

Comments

@michbeck100
Copy link

I have some strange version checks with popular images and I think there is something missing in the checking algorithm.

For the image grafana/grafana version-checker says the latest version is 9799770991, which is obviously correct if you compare just version numbers. But this tag is 8 months old and the actual latest tag currently would be 10.2.2. Another example would be quay.io/jetstack/cert-manager-webhook-arm64: v1.13.2 vs. 608111629.

I am wondering if it would be better to always take the publish date into account when checking versions?

Maybe there is another trick how to avoid these false positives?

@davidcollom
Copy link
Collaborator

Hi @michbeck100, Thanks for raising this... I have seen this myself and was meant to raise an issue about it! I think the publish date needs to play some part in the sorting process. Its actually an area of version-checker I've not explored just yet.

@michbeck100
Copy link
Author

Is there any progress on this?

@hawksight
Copy link
Contributor

@michbeck100 nothing as of yet that I'm aware of.

I was looking into validating some "latest" images and came across 2 cases where this type of problem is present with other tooling such as oras. I think it could have something to do with the API returning Lexical ordering.

Take this example making use of the --last feature

oras repo tags docker.io/grafana/grafana --exclude-digest-tags --last 9.5.7
oras repo tags docker.io/grafana/grafana --exclude-digest-tags --last 10.1.8

In that case above because of the alphabetic ordering, the second command actually brings back many more results than the first, despite what you would imagine to be less.

I'll have to review the code here, but I suspect that version-checker might be doing something similar perhaps?

@davidcollom davidcollom added the image-accuracy Used to track bugs that are related to image accuracy label Jun 21, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had
any activity in the last 90 days. It will be closed if no further activity
occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 20, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
@davidcollom davidcollom reopened this Sep 27, 2024
@github-actions github-actions bot removed the stale label Sep 28, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had
any activity in the last 90 days. It will be closed if no further activity
occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 27, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working image-accuracy Used to track bugs that are related to image accuracy stale
Projects
None yet
Development

No branches or pull requests

3 participants