-
Notifications
You must be signed in to change notification settings - Fork 29
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
request-cache is not working properly #119
Comments
Idea: store the cache file somewhere else? In S3, or at least somewhere that gives us a bit more control? https://github.com/marketplace/actions/s3-cache-for-github-actions or similar? |
One year later, I'm reopening this, as the cache is clearly not used. Cache is python version specific, which defeats the purpose of our caching attempts. A local run of the test suite consumes about 500 rest requests and 25 graphql points. As we run 5 versions of python, we're still at only 50% of quota on rest, and much less on graphql. So there's probably some other consumer of quota outside of CI. Storage of cache outside of github seems like the only option at this point. I will follow up on the suggestion above. |
Actually, I think I misunderstood what is happening. The cache key is But the cached file is 3 weeks old in the screenshot above, so our code ignores it (it expires the cache after 24h) so it hits the API again. My guess at this point is that the cache works the first day we use it, but it then becomes stale and ignored by
|
To expand on the above, this is all because cached files are read-only, so the cache file is not updated beyond its first creation time. |
Tests keep hitting rate limiting issues, which suggests that our request-cache implementation is not working as expected during CI runs. It is working fine locally, which makes it hard to debug...
We should resolve this problem to help with our CI, making it faster and less frustrating
The text was updated successfully, but these errors were encountered: