Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my coveralls.io badge not updating even when the builds are happening?

Tags:

I am trying to use coveralls.io to show a coverage badge for my tests, but the coverage badge is stuck on "unknown".

The relevant repo is here: https://github.com/cfogelberg/grunt-set-app-mode

When I look at coveralls.io for that repo I see the same "coverage: unknown" status: coveralls.io/r/cfogelberg/grunt-set-app-mode

However, the individual builds are being correctly sent to coveralls.io: https://coveralls.io/builds/788669

What am I missing?

like image 663
cfogelberg Avatar asked May 21 '14 15:05

cfogelberg


People also ask

What is coveralls io?

Coveralls is a web service to help you track your code coverage over time, and ensure that all your new code is fully covered. There is but one prerequisite for Coveralls Cloud (Coveralls Enterprise can use a variety of repo-hosting options): Your code must be hosted on GitHub, BitBucket, or GitLab.


2 Answers

If clearing your local cache isn't fixing the image, the problem is likely that it was cached by Github as a part of their image URL anonymization process.

You can force Github to clear their cache of the image with the following curl command. Change the example URL to the one from the your repo, it will always be https://camo.githubusercontent.com/ followed by a long hash.

curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....

Source: GitHub Help: About anonymized image URLs

like image 67
iamdefinitelyahuman Avatar answered Oct 13 '22 11:10

iamdefinitelyahuman


What am I missing?

It's possible that your browser cached the image. I realized this was happening to me recently. I couldn't understand why my badge said one thing on my github page, but something different on the badge's website.

Now I tend to check websites in a Chrome incognito window so I don't have the cache to worry about.

like image 44
bagrounds Avatar answered Oct 13 '22 12:10

bagrounds