-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
GitHub API rate limit #127
Comments
For auth, you can do like so: Line 62 in 2bd9199
Also see: https://github.com/pex-tool/pex/blob/027781802e73d68fb26a75f6e2b7d8b65e3b160b/.github/workflows/ci.yml#L10-L12 The whole auth scheme is defined here: Lines 78 to 127 in 2bd9199
So you could similarly define basic auth or use ~/.netrc. For caching, I won't teach GitHub actions, but science allows you to control the cache with So you can use |
@achimnol I've marked this as an answered question, but please confirm this answer works for you. |
Thanks for the detailed answer. |
@achimnol do you have any results to report? |
We made a temporary CI workflow to reproduce the issue before applying the GitHub API token, but we failed to reproduce it when we triggered the workflow manually several times afterwards. 😞 I'll update you once it happens again. |
@jsirois https://github.com/lablup/backend.ai/actions/runs/13407796118/job/37451008145 |
@Yaminyam this is a problem - there should be at least 2 hits and there is just 1:
1st rule of Pants club: Pants blocks env vars by default So you need to leak the |
@Yaminyam have you been able to configure Pants to let the |
Line 108 in e4bf708
https://github.com/encode/httpx/blob/9e8ab40369bd3ec2cc8bff37ab79bf5769c8b00f/httpx/_client.py#L448 I think passing a tuple as |
@cairijun indeed. That tuple should be routed to the request headers but it is not. Thanks for spotting this bug! I'll get out a release today with a fix. Keep in mind, my observation above is still pertinent. Even with the fix, things should still fail due to rate limits unless the env var is punched through past Pants hermetic sandbox walls. |
@cairijun thank you very much for looking at the code. That was an embarrasing bug. #148 is out for review and I should have a release in the next several hours. I'll in turn produce a Pex release that bumps its minimum science requirement to that release. I'll not when both releases are complete here and then close the issue. |
OK, |
And now Pex 2.33.5 is released with a bump to @achimnol, @Yaminyam and @cairijun please speak up if you are not able to upgrade to Pex 2.33.5 or newer and fix your rate limit issue after ensuring Pants is not blocking the |
After #116, I see now it performs retries while downloading PBS and other stuffs.
Unfortunately, there is another problem: we now hit the GitHub's API rate limit. 🫠
Would there be any better way to avoid it?
For instance,
GITHUB_TOKEN
to authenticate the fetch requests?Example workflow run: https://github.com/lablup/backend.ai/actions/runs/12868611532
The text was updated successfully, but these errors were encountered: