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 not updating #971

Closed
TheFlow0360 opened this issue May 11, 2017 · 39 comments
Closed

Badge not updating #971

TheFlow0360 opened this issue May 11, 2017 · 39 comments

Comments

@TheFlow0360
Copy link

I know, by now you must be sick of these issues, but why is it that every other badge works? Only the coveralls badge is stuck...
Here is the curl call for the cached image:

$ curl -I https://camo.githubusercontent.com/ab5ccd872d8ad47d641e27dd45dddb343311a739/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f546865466c6f77303336302f63726974657269615f6f70657261746f722f62616467652e7376673f6272616e63683d6d6173746572
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0   724    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Security-Policy: default-src 'none'; img-src data:; style-src 'unsafe-inline'
Content-Type: image/svg+xml
Last-Modified: Tue, 20 Jan 2015 21:36:09 GMT
Server: github-camo (485b32e9)
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block
X-GitHub-Request-Id: 2398:4C3B:31FD392:33F17D9:5913EFD8
Content-Length: 724
Accept-Ranges: bytes
Date: Thu, 11 May 2017 07:05:30 GMT
Via: 1.1 varnish
Age: 84
Connection: keep-alive
X-Served-By: cache-hhn1531-HHN
X-Cache: HIT
X-Cache-Hits: 1
X-Timer: S1494486330.160847,VS0,VE0
X-Fastly-Request-ID: f80e264b2d51db3682eed1ff0994d90279b4b52a
Timing-Allow-Origin: https://github.com

The original badge URL is this: https://coveralls.io/repos/github/TheFlow0360/criteria_operator/badge.svg?branch=master

@TheFlow0360
Copy link
Author

TheFlow0360 commented May 11, 2017

See this Issue for mor information.

@TheFlow0360
Copy link
Author

I just updated my README with new information and the badge is still the old cached one. This really sucks...

@smbrd
Copy link

smbrd commented May 15, 2017

I don't see badge at all - redirects me to coveralls_unknown.svg

@smbrd
Copy link

smbrd commented May 15, 2017

...and now it works

@TheFlow0360
Copy link
Author

Hm.... for me it was still stuck at 24%. Deleting the local cache helped. Anyways, it should work automatically.

@peterhurford
Copy link

My badge and build are both stuck at 24%, despite the build being at 90.91%. I could understand caching affecting the badge, but why is the build also stuck at 24%?

@blenoski
Copy link

I am experiencing the same issue. CirceCI badge is working as expected. Coveralls badge is not updating on README.md. I have resorted to manually adding bogus parameters to the query string to get it work, but doing that for every change obviously isn't sustainable.

@alancast
Copy link

I am also seeing this. Badge is stuck and will update once if I add a bogus query param to it, but as was mentioned above doing that every change isn't sustainable. Did anyone find a fix for this?

@romarioraffington
Copy link

+1

@ghost
Copy link

ghost commented Jul 31, 2017

I am having the same issue. My badge is stuck at 58% coverage and it hasn't been that low in a couple weeks. Not sure why it is not updating.

You guys need a developer to help fix these issues? ;)

@ghost
Copy link

ghost commented Jul 31, 2017

Mine updated today, so maybe it just takes time.

@romankh3
Copy link

romankh3 commented Aug 4, 2017

I have the same issue =\

@whyboris
Copy link

whyboris commented Aug 17, 2017

Unsure why this is happening:

I'm not sure why Coveralls is ignoring my last build and showing the number from several weeks ago. Perhaps this is a different issue than what the others in this thread are having.

@algorys
Copy link

algorys commented Oct 24, 2017

In my case, adding &service=github to badge seems solve problem.

Example:

.. image:: https://coveralls.io/repos/github/YOUR_REPOS/badge.svg?branch=develop&service=github

Works also with markdown syntax.

@hervenivon
Copy link

@algorys, your solution doesn't work for me. 😭

@hammady
Copy link

hammady commented Nov 1, 2017

@algorys it works probably because query string parameters are not so cache-friendly to browsers/cache servers.

@algorys
Copy link

algorys commented Nov 1, 2017

@hammady yes... not sure if that update only one time and not for other pushes...

@mnboos
Copy link

mnboos commented Nov 18, 2017

Mine doesn't update either. It's stuck at 43%, but actually it's 65%.

edit: Shame on me. Didn't see the second 'branch' in the badge-url. After fixing that, it's updating. Apologies.

@bbqtd
Copy link

bbqtd commented Dec 25, 2017

It still doesn't work. It updates only on change the file where the badge is declared (README.md) or after manually emptying browser cache.

@Chaffelson
Copy link

+1

ahaselsteiner added a commit to virocon-organization/viroconweb that referenced this issue Feb 19, 2018
@whyboris
Copy link

Still stuck since before Aug 2017.
#971 (comment)
Could it have anything to do with the default branch not being named master? Absurd that I can't force a re-count through the UI interface. I don't want to craft a new release of my package just to update coverage (nor can I be sure that it would actually update the coverage anyway).

@ScottChapman
Copy link

Still stuck

@efagerberg
Copy link

Also still stuck, one time it worked clearing my browser cached image but I am noticing now that there must be some server side caching of the image because it does not load in like my other badges.

hechaoli added a commit to vmware-archive/ovsdb-client-library that referenced this issue Apr 24, 2018
@wincodes
Copy link

wincodes commented Nov 4, 2019

In my case, adding &service=github to badge seems solve problem.

Example:

.. image:: https://coveralls.io/repos/github/YOUR_REPOS/badge.svg?branch=develop&service=github

Works also with markdown syntax.

worked.. thanks

MarcusOtter added a commit to MarcusOtter/APOD.Net that referenced this issue Nov 10, 2019
Coveralls has some issues with updating their badges. The fix seems to be to add `&service=github` as mentioned [here](lemurheavy/coveralls-public#971 (comment))
@ajoslin103
Copy link

ajoslin103 commented Mar 9, 2020

npm has the new coverage in moments, so it must be the github...

here's what worked for me

#1 open inspect on the repo page
#2 open the badge image in a new tab and copy that Url
#3 in a Terminal window: curl -X PURGE
#4 right click on the reload for the repo page and choose: hard reload and clear cache
#5 repeat #3 & #4 again (it didn't work the 1st time for me)

srishanbhattarai added a commit to srishanbhattarai/nepcal that referenced this issue Mar 25, 2020
cpina added a commit to frictionlessdata/schema-collaboration that referenced this issue Aug 12, 2020
danineamati added a commit to danineamati/TrajOptSOCPs.jl that referenced this issue Aug 13, 2020
Was stuck at 0% despite being at 8%. Added "&service=github" to the end as suggested at lemurheavy/coveralls-public#971.
@ssichynskyi
Copy link

ssichynskyi commented Sep 16, 2020

This workaround works for me for every badge:

@algorys, thanks for the idea!
just add ?service=github or &service=github to every badge URL

For example:
[![Code Grade](https://www.code-inspector.com/project/<number>/score/svg?service=github)](https://www.code-inspector.com)
or
[![Coverage Status](https://coveralls.io/repos/github/<user>/<repo>/badge.svg?branch=master&service=github)](https://coveralls.io/github/<user>/<repo>?branch=master)

@afinetooth
Copy link
Collaborator

Closing this issue for age, but tagged badge-issues for reference.

timcnicholls added a commit to stfc-aeg/odin-devices that referenced this issue Nov 11, 2020
aaneitchik added a commit to aaneitchik/dog-expert that referenced this issue Feb 13, 2021
The badge is not updating when coverage changes. Current workaround is suggested here: lemurheavy/coveralls-public#971 (comment)
Hitomaru added a commit to Hitomaru/naromat that referenced this issue Apr 5, 2021
@Stannislav
Copy link

npm has the new coverage in moments, so it must be the github...

here's what worked for me

#1 open inspect on the repo page
#2 open the badge image in a new tab and copy that Url
#3 in a Terminal window: curl -X PURGE
#4 right click on the reload for the repo page and choose: hard reload and clear cache
#5 repeat #3 & #4 again (it didn't work the 1st time for me)

Awesome, thanks! Related GitHub docs: https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/about-anonymized-urls#removing-an-image-from-camos-cache

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