Skip to content

Conversation

emmatyping
Copy link
Member

@emmatyping emmatyping commented Jun 10, 2025

@StanFromIreland pointed to this failure https://github.com/python/cpython/actions/runs/15565936921/job/43829935370?pr=135355 where we fail downloading without useful debug information because we are only catching URLError. We should probably catch both URLError and ConnectionError for both of these retries so that we retry on all connection failures.

Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emmatyping emmatyping marked this pull request as ready for review June 13, 2025 17:40
@emmatyping emmatyping requested review from sethmlarson and a team as code owners June 13, 2025 17:40
@hugovk hugovk merged commit acc20a8 into python:main Jun 17, 2025
50 checks passed
@miss-islington-app
Copy link

Thanks @emmatyping for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 17, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jun 17, 2025

GH-135611 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jun 17, 2025
@emmatyping emmatyping added the needs backport to 3.13 bugs and security fixes label Aug 14, 2025
@miss-islington-app
Copy link

Thanks @emmatyping for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@emmatyping emmatyping deleted the catch-urlerror-and-connectionerror branch August 14, 2025 19:29
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 14, 2025
@bedevere-app
Copy link

bedevere-app bot commented Aug 14, 2025

GH-137779 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Aug 14, 2025
emmatyping added a commit that referenced this pull request Aug 14, 2025
…H-135365) (#137779)

gh-134262: Catch both URLError and ConnectionError in retries (GH-135365)
(cherry picked from commit acc20a8)

Co-authored-by: Emma Smith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants