Skip to content

gh-131531: Make Android build retry after network failures #133193

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

mhsmith
Copy link
Member

@mhsmith mhsmith commented Apr 30, 2025

This commit was cherry-picked from #132870, because the buildbots have had a lot of intermittent download failures from GitHub URLs in the last few days.

It uses curl's --retry-all-errors flag, because some of the failures have returned codes that indicate a permanent failure (e.g. 403), even though it's actually temporary.

Other cleanups:

  • Use shutil.unpack_archive to remove the dependency on an external tar command.
  • Clarify documentation and comments.

@mhsmith
Copy link
Member Author

mhsmith commented Apr 30, 2025

!buildbot android

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @mhsmith for commit 4c83a6b 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133193%2Fmerge

The command will test the builders whose names match following regular expression: android

The builders matched are:

  • AMD64 Android PR
  • aarch64 Android PR

Copy link
Contributor

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

I guess time will tell whether 5 retries is enough. Otherwise, looks like a solid collection of cleanups.

@freakboy3742 freakboy3742 merged commit feac343 into python:main May 1, 2025
51 checks passed
@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 1, 2025
…honGH-133193)

Adds a retry strategy when downloading compilation resources for Android, plus some other cleanups.
(cherry picked from commit feac343d1aeef9edce91640e4bbc74516980db9a)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
@bedevere-app
Copy link

bedevere-app bot commented May 1, 2025

GH-133236 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 May 1, 2025
freakboy3742 pushed a commit that referenced this pull request May 1, 2025
…-133193) (#133236)

Adds a retry strategy when downloading compilation resources for Android, plus some other cleanups.
(cherry picked from commit feac343)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
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