badge-poser icon indicating copy to clipboard operation
badge-poser copied to clipboard

Version badge shows incorrect version

Open MarcinOrlowski opened this issue 3 years ago • 19 comments

I recently noticed that version badge reports incorrect version. The package is https://github.com/MarcinOrlowski/laravel-api-response-builder and recent version is 9.0.1, but badge says 8.0.1. Also dev badge is choosen oddly. There's dev branch, so why it picks 7.x (not to mention there's 8.x as well)?

v

p

MarcinOrlowski avatar Oct 22 '20 13:10 MarcinOrlowski

Hi @MarcinOrlowski , thanks to reporting! We have a layer of cache to show the version, for this you did not notice the updated version! 9.0.1 is now shown correctly! For the unstable version we wait a little longer and you should see the correct one for him too! ;)

JellyBellyDev avatar Oct 22 '20 14:10 JellyBellyDev

We have a layer of cache to show the version

I still there's something more than cache. IIRC version badge used to show version 9.0.0 already correctly, but now it shows 8.0.1 so it's not cached version. It's a wrong one.

For the unstable version we wait a little longer and you should see the correct one for him too! ;)

This was never correctly shown. I never saw dev or dev-dev - always some other branches.

MarcinOrlowski avatar Oct 23 '20 09:10 MarcinOrlowski

We have a layer of cache to show the version

I still there's something more than cache. IIRC version badge used to show version 9.0.0 already correctly, but now it shows 8.0.1 so it's not cached version. It's a wrong one.

I don't understand i see the correct version:

Schermata 2020-10-23 alle 13 59 29

For the unstable version we wait a little longer and you should see the correct one for him too! ;)

This was never correctly shown. I never saw dev or dev-dev - always some other branches.

@AlessandroMinoccheri please can you check this? Thanks!

JellyBellyDev avatar Oct 23 '20 12:10 JellyBellyDev

I can see the correct version. Could it be a cache problem somewhere?

AlessandroMinoccheri avatar Oct 23 '20 12:10 AlessandroMinoccheri

Not sure. I see correct version for now too. If you see no possibility to be an backend issue, I am closing this ticket now as I cannot provide any additional information. Would reopen if issue reoccured.

MarcinOrlowski avatar Oct 25 '20 17:10 MarcinOrlowski

There is something wrong with this cache. For https://packagist.org/packages/rob006/flarum-lang-polish I have v0.3.14 on https://poser.pugx.org/rob006/flarum-lang-polish/v/stable, while v0.3.15 was released 3 months ago. So if it is cache, it is outdated by 3 months. Curiously https://poser.pugx.org/rob006/flarum-lang-polish/v/stable?1 displays correct version.

Same with downloads counter: 767 on https://poser.pugx.org/rob006/flarum-lang-polish/downloads 873 on https://poser.pugx.org/rob006/flarum-lang-polish/downloads?1

rob006 avatar Dec 28 '20 11:12 rob006

BTW: Examples above for version and downloads count works fine already, but monthly downloads are still outdated:

24 - https://poser.pugx.org/rob006/flarum-lang-polish/d/monthly 59 - https://poser.pugx.org/rob006/flarum-lang-polish/d/monthly?1

rob006 avatar Dec 31 '20 21:12 rob006

Linked to this issue: https://github.com/PUGX/badge-poser/issues/478

JellyBellyDev avatar Jan 02 '21 10:01 JellyBellyDev

I have the same problem with https://github.com/hslavich/OneloginSamlBundle Actual latest stable version is 2.3.0, but "bager" detect it as 2.2.2 (that was released half an hour earlier).

a-menshchikov avatar Jun 01 '21 08:06 a-menshchikov

Schermata 2021-06-01 alle 10 51 07

sure? :)

JellyBellyDev avatar Jun 01 '21 08:06 JellyBellyDev

@JellyBellyDev it was exactly an half-hour ago. It seems like a cache bug, but I have no idea where to look for it.

a-menshchikov avatar Jun 01 '21 09:06 a-menshchikov

image I see some less downloads count. =\

a-menshchikov avatar Jun 01 '21 14:06 a-menshchikov

@JellyBellyDev the bug with cache came back for https://github.com/hslavich/OneloginSamlBundle =(

a-menshchikov avatar Jul 14 '21 21:07 a-menshchikov

Now i can see this:

Schermata 2021-07-15 alle 09 51 45

Where was the problem?

JellyBellyDev avatar Jul 15 '21 07:07 JellyBellyDev

@JellyBellyDev Maybe I'm missing something: how long does pugx cache invalidate? I have released v2.4.2 at the morning yesterday, but after 15 hours the badge had still shown v2.4.1.

a-menshchikov avatar Jul 15 '21 07:07 a-menshchikov

two hours, but consider that also the packagist api use a cache and I don't know what its TTL!

JellyBellyDev avatar Jul 15 '21 08:07 JellyBellyDev

Now the version badges all show "No Release", for all packages.

Bilge avatar Oct 15 '22 13:10 Bilge

Thanks for reporting @Bilge! We have fix the regression! ;)

JellyBellyDev avatar Oct 17 '22 09:10 JellyBellyDev

Is there a way to purge the cache? GitHub images are cached by GitHub and those images are also cached by the browser. To clear the cache for images on GitHub you can use curl from GitHub action. And then clear the browser cache. But still, it would be nice to be able to clear the badge on the PUGX side before clearing the GitHub cache. Otherwise, it doesn't make sense.

jcubic avatar Dec 31 '23 01:12 jcubic