-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Use GitHub API to download constraint files and avoid rate limiting #50716
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool Nice catch amogh
I think the response we get it from github api is base64 , we need to decode that.? |
Nice catch indeed - i had no idea that you cannot pu t authorization in raw URL |
I think we have other places in some bash scripts and yaml files where we are using |
Very good catch @amoghrajesh ! |
Yep, will do! |
…e limiting (apache#50716) (cherry picked from commit 35a4ced) Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
We have been hitting GH rate limiting quite frequently in the CI during last few days. On further checking,
it looks like we pass down the GITHUB_TOKEN to the breeze commands but we do not use GH API's and
instead use raw github, which doesn't need the tokens and hence doesn't follow the trajectory for fixing rate limiting.
Ref here: https://stackoverflow.com/questions/77054807/how-do-you-use-raw-githubusercontent-com-in-a-github-action#comment135840009_77054807
Works as expected:
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in airflow-core/newsfragments.