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

badge in github not updating #1065

Closed
ericblade opened this issue Jan 27, 2018 · 28 comments
Closed

badge in github not updating #1065

ericblade opened this issue Jan 27, 2018 · 28 comments

Comments

@ericblade
Copy link

... i'm not sure where the source of this problem might lay -- browser? github? coveralls?

when I open my repo ( https://github.com/ericblade/mws-advanced ) I see a coveralls badge showing 63. My coverage has never been at 63 on it. When I click the badge, and go to the coveralls page, it shows the badge and coverage stats clearly being 88. If I load the badge SVG directly into my browser, I see 88.

Any ideas? I have tried clearing my cache, using different browsers.. it seems that when I source the image from coveralls, via github, it gives the wrong number, and I don't see how that would be.

@flihp
Copy link

flihp commented Jan 29, 2018

I think this is a duplicate of #971. I worked around this by using the badge from badges.io instead of the coveralls default.

@joroshiba
Copy link
Collaborator

We have made some patches to solve some issues we were having with github caching badge resources, please let us know if this is a problem again.

@thomscode
Copy link

I'm seeing this issue as well. GitHub Repo shows 0% coverage, while Coveralls Report shows 100% coverage and the embedded badge URL when viewed in browser also shows 100% coverage. I've cleared browser cache, tried multiple browsers, and updated README file, all with no change.

@joroshiba
Copy link
Collaborator

@thomscode this is a caching issue with github caching the badges.

I have reached out them try and get some clarification on how we can solve this issue outside of what their docs say and we are already doing.

@thomscode
Copy link

Thanks

@mikhailsidorov
Copy link

Hi guys. Have the same problem. Any ideas?

@sebastianovide
Copy link

@bytewalls have you managed to fix it ?

@moshfeu
Copy link

moshfeu commented Nov 2, 2018

@bytewalls It still happening :\

screen shot 2018-11-02 at 8 14 50 am

(README.md: github vs local)

@moshfeu
Copy link

moshfeu commented Nov 2, 2018

A workaround is just add queryString param to the badge image url, for instance: <img src="https://coveralls.io/repos/github/spread-the-code/git-commiter-nodejs/badge.svg?branch=master&kill_cache=1" />

@Jacksonmwirigi
Copy link

... i'm not sure where the source of this problem might lay -- browser? github? coveralls?

when I open my repo ( https://github.com/ericblade/mws-advanced ) I see a coveralls badge showing 63. My coverage has never been at 63 on it. When I click the badge, and go to the coveralls page, it shows the badge and coverage stats clearly being 88. If I load the badge SVG directly into my browser, I see 88.

Any ideas? I have tried clearing my cache, using different browsers.. it seems that when I source the image from coveralls, via github, it gives the wrong number, and I don't see how that would be.

Hi, i also had same problem where my badge shows 45% but on /coveralls.io page actually was 74%.
I cleared my browser cache for the last 7 days and it worked.

@kk7ds
Copy link

kk7ds commented Apr 22, 2019

This is still broken for me. It's not related to browser cache, AFAICT. I can hand-edit the url all the time, but that's a terrible solution. This isn't broken for other badges, just coveralls...

@drupchen
Copy link

Had the same bug, applied the workaround by @moshfeu

@iamdefinitelyahuman
Copy link

iamdefinitelyahuman commented Jun 30, 2019

I was having the same problem and found this issue. For me the problem was that the image was cached by github, not my own browser. There is a fix documented here that worked:

https://help.github.com/en/articles/about-anonymized-image-urls

attomos added a commit to attomos/bear_todo_counter that referenced this issue Jul 27, 2019
@floatingpurr
Copy link

Same problem here. Not related to the browser's cache but to the GitHub's cache. Solved removing the image from Camo's cach, e.g.,

$ curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....
> {"status": "ok", "id": "216-8675309-1008701"}

AndreaGiuntiniUNIFI added a commit to ChillinMonkeys/OnlineShopSimulator that referenced this issue Nov 9, 2019
@Jaman-dedy
Copy link

Same problem here. Not related to the browser's cache but to the GitHub's cache. Solved removing the image from Camo's cach, e.g.,

$ curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....
> {"status": "ok", "id": "216-8675309-1008701"}

Did not work for me, still facing the same issue

@xuqingkuang
Copy link

All solutions listed are not working for me ...

https://github.com/Tencent/Hippy

@meherett
Copy link

In my case, by adding &kill_cache=1 to badge seems solve problem.

Coverage Status

[![Coverage Status](https://coveralls.io/repos/github/meherett/shuttle/badge.svg?branch=master&kill_cache=1)](https://coveralls.io/github/meherett/shuttle?branch=master)

Coverage Status

<a href="https://coveralls.io/github/meherett/shuttle?branch=master">
     <img alt="Coverage Status" src="https://coveralls.io/repos/github/meherett/shuttle/badge.svg?branch=master&kill_cache=1"/>
</a>

@aflag
Copy link

aflag commented Jul 3, 2020

This is also an issue for me. Why does github have to cache those badges?

@Kissema
Copy link

Kissema commented Jul 15, 2020

i solved the same issues with: CTRL + F5 (Chome browser)

@sixg0000d
Copy link

sixg0000d commented Nov 21, 2020

Same problem here. Not related to the browser's cache but to the GitHub's cache. Solved removing the image from Camo's cach, e.g.,

$ curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....
> {"status": "ok", "id": "216-8675309-1008701"}

Did not work for me, still facing the same issue

Did you just copy the camo link from the image?
I noticed that I should trim the last path of the URL, for example https://camo.githubusercontent.com/111 instead of https://camo.githubusercontent.com/111/222. Then it worked fine and the images were refreshed in all my repositories.

@introkun
Copy link

introkun commented Jan 9, 2021

+1

@afinetooth
Copy link
Collaborator

@introkun did you try the solutions above? If you want to share the coveralls URL to your repo I'll check it out for you.

@introkun
Copy link

@afinetooth thanks, the workaround wirked for me.

@afinetooth
Copy link
Collaborator

@introkun great, glad to hear it.

Sieboldianus added a commit to Sieboldianus/lbsntransform that referenced this issue Apr 18, 2021
@HudsonSchumaker
Copy link

I think you ha ve more than one action, still not working. I have 2 repos one with one action and it is working and in the one with 3 actions is not working, always shows no status.

@afinetooth
Copy link
Collaborator

Hi, @HudsonSchumaker.

I think you may have been affected by a recent issue with status updates:
https://status.coveralls.io/incidents/cw09t217cxd0

Can you please open a new issue here, or email us at support@coveralls.io? Share your Coveralls Repo URL and the URLs for any builds that did not receive status updates? We will re-run those for you.

The issue should be resolved now, btw, but let us know if you're still experiencing it. We are not 100% sure of its origin or that it won't recur. We are monitoring, but have not seen it happen for at least 12-hours.

@HudsonSchumaker
Copy link

Hi, @afinetooth,
yes, seems was related to status updates, now is working fine.
thank you

@afinetooth
Copy link
Collaborator

@HudsonSchumaker great, glad to hear it.

rarylson added a commit to rarylson/update-conf.py that referenced this issue Oct 31, 2022
Main goal was to bypass GitHub URL cache issues on the coverage badge.

See: lemurheavy/coveralls-public#1065

Using the opportunity to add a badge regarding supported python
versions.
rarylson added a commit to rarylson/update-conf.py that referenced this issue Nov 3, 2022
Main goal was to bypass GitHub URL cache issues on the coverage badge.

See: lemurheavy/coveralls-public#1065

Using the opportunity to add a badge regarding supported python
versions.
rarylson added a commit to rarylson/update-conf.py that referenced this issue Nov 3, 2022
Main goal was to bypass GitHub URL cache issues on the coverage badge.

See: lemurheavy/coveralls-public#1065

Using the opportunity to add a badge regarding supported python
versions, and to exclude GitHub workflows from the source dist
(`MANIFEST.in`).
rarylson added a commit to rarylson/update-conf.py that referenced this issue Nov 4, 2022
Main goal was to bypass GitHub URL cache issues on the coverage badge.

See: lemurheavy/coveralls-public#1065

Using the opportunity to add a badge regarding supported python
versions, and to exclude GitHub workflows from the source dist
(`MANIFEST.in`).
chubei pushed a commit to getdozer/dozer that referenced this issue Dec 8, 2022
randombit added a commit to randombit/botan that referenced this issue Apr 21, 2023
As coveralls badge seemingly doesn't update as the results change, due
to some bug with either coveralls or Github's image caching.

lemurheavy/coveralls-public#1065
dachengx added a commit to XENONnT/alea that referenced this issue Aug 4, 2023
dachengx added a commit to XENONnT/alea that referenced this issue Aug 4, 2023
dachengx added a commit to XENONnT/appletree that referenced this issue Aug 4, 2023
dachengx added a commit to XENONnT/appletree that referenced this issue Aug 30, 2023
* Rename s1_lce and s2_lce to s1_correction and s2_correction

* Minor change

* Update documentation

* Update .gitignore

* Simplify equality sign

* Update to use importlib_resources to suppress warnings

* Kill cache of coverage

Reference: lemurheavy/coveralls-public#1065 (comment)

* Minor change
mhxion added a commit to uhd-urz/elAPI that referenced this issue Jul 4, 2024
Badges/image are cached by GitHub. The version number shown on the badge, as a result, wasn't being updated. We use the "query" trick (lemurheavy/coveralls-public#1065 (comment)) to fix it.
- Fix bad formatting
- Update introductory example; add explanation
- Mention "API key"
mhxion added a commit to uhd-urz/elAPI that referenced this issue Jul 4, 2024
Badges/image are cached by GitHub. The version number shown on the badge, as a result, wasn't being updated. We use the "query" trick (lemurheavy/coveralls-public#1065 (comment)) to fix it.
- Fix bad formatting
- Update introductory example; add explanation
- Mention "API key"
mhxion added a commit to uhd-urz/elAPI that referenced this issue Jul 4, 2024
Badges/image are cached by GitHub. The version number shown on the badge, as a result, wasn't being updated. We use the "query" trick (lemurheavy/coveralls-public#1065 (comment)) to fix it.
- Fix bad formatting
- Update introductory example; add explanation
- Mention "API key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests