codecov / browser-extension

Codecov Browser Extension
http://codecov.io
Apache License 2.0
214 stars 60 forks source link

Option to clear codecov cache? #36

Open cyli opened 7 years ago

cyli commented 7 years ago

Browser: Chrome

Sometimes if there were a lot of changes to a PR, the codecov browser extension displays code as uncovered when it's covered, or vice versa. Shift-reloading, restarting the browser, removing the extension + restarting browser + re-adding extension etc. does not seem to fix the issue.

When I view the code in codecov itself, the real coverage is displayed. When I switch to a different chrome "person" or use a different browser, the real coverage is displayed. And clearing cached files and cookies from the last hour does seem to fix it.

I'm not sure what causes it to get stuck like this, but perhaps having a "clear cache" button or option to fix it, so I can just delete the codecov data rather than clearing all recent cookies and plugin data (so I have to re-log-in to a bunch of sites), would be awesome.

stevepeak commented 7 years ago

@cyli the extension caches based on commit sha. Based on your findings does the actual commit change in coverage?

I believe I can come up with a way to check the etag cache and update the cache accordingly. I'll review and update this thread. Thanks!