Skip to content

Conversation

@EmilienM
Copy link
Contributor

@EmilienM EmilienM commented May 26, 2025

Add robust HTTP retry functionality to handle network errors and improve
reliability when communicating with external services like GitHub API and
PyPI. This addresses common issues with HTTP exceptions I've seen in our CI pipelines.

Signed-off-by: Emilien Macchi [email protected]
Fixes #222

@mergify mergify bot added the ci label May 26, 2025
@EmilienM EmilienM force-pushed the issue_222 branch 2 times, most recently from 0022f44 to f4d2080 Compare May 27, 2025 13:55
@EmilienM EmilienM marked this pull request as ready for review May 27, 2025 14:35
@EmilienM EmilienM requested review from dhellmann and tiran May 27, 2025 14:35
@EmilienM
Copy link
Contributor Author

I forgot proper unit tests, marking as draft again.

@EmilienM EmilienM marked this pull request as draft May 27, 2025 16:17
@EmilienM EmilienM force-pushed the issue_222 branch 2 times, most recently from b8d9e79 to df9c1b4 Compare May 27, 2025 17:36
@EmilienM EmilienM marked this pull request as ready for review May 27, 2025 17:42
Copy link
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

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

This looks okay to me!

I would prefer if @tiran and / or @dhellmann takes a look at this as well. I will leave it to them for final approval

@EmilienM
Copy link
Contributor Author

EmilienM commented Jun 2, 2025

I need to add retry for Gitlab, now it has merged

@EmilienM EmilienM marked this pull request as draft June 2, 2025 14:50
@EmilienM EmilienM marked this pull request as ready for review June 2, 2025 15:51
Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

This should make a big difference in reliability, thanks!

@EmilienM EmilienM removed the request for review from tiran June 2, 2025 18:26
@dhellmann
Copy link
Member

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Jun 2, 2025

refresh

✅ Pull request refreshed

@EmilienM
Copy link
Contributor Author

EmilienM commented Jun 2, 2025

@Mergifyio refresh

ah thanks, I wasn't sure what to do 😄

@dhellmann
Copy link
Member

I think this needs to be rebased to run the new tests and merge automatically.

@Mergifyio rebase

@dhellmann
Copy link
Member

@Mergifyio rebase

Add robust HTTP retry functionality to handle network errors and improve
reliability when communicating with external services like GitHub API and
PyPI. This addresses common issues with HTTP 504 Gateway Timeout errors,
IncompleteRead, and ChunkedEncodingError exceptions.

Signed-off-by: Emilien Macchi <[email protected]>
@mergify
Copy link
Contributor

mergify bot commented Jun 2, 2025

rebase

✅ Branch has been successfully rebased

@dhellmann
Copy link
Member

I guess you have to give mergify instructions without preceding comments. 🤷🏼

@dhellmann
Copy link
Member

I got the mergify rules wrong in a previous PR. I'm merging this by hand and I will fix the rules in a follow-up.

@dhellmann dhellmann merged commit b623cf3 into python-wheel-build:main Jun 2, 2025
102 checks passed
@EmilienM EmilienM deleted the issue_222 branch June 2, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make fromager more resilient against network hickups

3 participants