-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Bugfix/fix latest pypi version check #51039
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
Bugfix/fix latest pypi version check #51039
Conversation
gopidesupavan
left a comment
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.
Thanks..
Backport failed to create: v3-0-test. View the failure log Run details
You can attempt to backport this manually by running: cherry_picker eb7c346 v3-0-testThis should apply the commit to the v3-0-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continue |
Backport failed to create: v2-11-test. View the failure log Run details
You can attempt to backport this manually by running: cherry_picker eb7c346 v2-11-testThis should apply the commit to the v2-11-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continue |
* Fix version check from Pypi, requires user agent else raises HTTP 406 * Fix version check from Pypi, requires user agent else raises HTTP 406, also other cases in codebase (cherry picked from commit eb7c346) Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
… Fix version check from Pypi, requires user agent else raises HTTP 406\n\n* Fix version check from Pypi, requires user agent else raises HTTP 406, also other cases in codebase\n(cherry picked from commit eb7c346)\n\nCo-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
* Fix version check from Pypi, requires user agent else raises HTTP 406 * Fix version check from Pypi, requires user agent else raises HTTP 406, also other cases in codebase
* Fix version check from Pypi, requires user agent else raises HTTP 406 * Fix version check from Pypi, requires user agent else raises HTTP 406, also other cases in codebase
As of failed canary in https://github.com/apache/airflow/actions/runs/15233855670 and https://github.com/apache/airflow/actions/runs/15235553931 it seems Pypi.org is blocking requests w/o proper user agent.
This PR adds a user agent to all Python script calls. With this you get HTTP 200, else if this is missing HTTP 406.