[Backport][v1.75.x][Python] Build manylinux aarch64 without cross-compilation#40636
Merged
sergiitk merged 1 commit intogrpc:v1.75.xfrom Sep 8, 2025
Merged
Conversation
This PR does the following: - Updates the base docker image used by the manylinux2014_aarch64 artifact build from a dockcross image that uses cross-compilation to a simple pypa image that doesn't require cross-compilation - Hence switch the manylinux2014_aarch64 build to run in an ARM64 machine without cross compiling. - We already have a '**Distribution Tests Python Linux Arm64**' job that runs on an ARM64 machine to build only `musllinux_aarch64` targets. - Updating the build process so that the manylinux2014_aarch64 target is also now built as part of the '**Distribution Tests Python Linux Arm64**' job instead of the '**Distribution Tests Python Linux**' job. This change cuts the execution time of the '**Distribution Tests Python Linux**' job significantly effectively reducing the total runtime by over 55% as shown below: - Previously the presubmit runs usually take about 75-90 minutes of runtime: [Example run from grpc#40317](https://btx.cloud.google.com/invocations/147e002e-12da-441f-a744-630233725563/targets) - Now the presubmit run-time has reduced to about 30-40 minutes: [Test run from this PR](https://btx.cloud.google.com/invocations/93602c73-228b-48e1-9bcc-059f51479887/targets) Given that the presubmit jobs building only a small subset of targets show such time improvement, the release job which currently builds many more aarch64 artifacts will also show significant execution time improvement going forward. Closes grpc#40354 PiperOrigin-RevId: 798104586
sergiitk
approved these changes
Sep 8, 2025
sreenithi
added a commit
to sreenithi/grpc
that referenced
this pull request
Sep 9, 2025
…pilation (grpc#40636) Backport of grpc#40354 to v1.75.x. --- This PR does the following: - Updates the base docker image used by the manylinux2014_aarch64 artifact build from a dockcross image that uses cross-compilation to a simple pypa image that doesn't require cross-compilation - Hence switch the manylinux2014_aarch64 build to run in an ARM64 machine without cross compiling. - We already have a '**Distribution Tests Python Linux Arm64**' job that runs on an ARM64 machine to build only `musllinux_aarch64` targets. - Updating the build process so that the manylinux2014_aarch64 target is also now built as part of the '**Distribution Tests Python Linux Arm64**' job instead of the '**Distribution Tests Python Linux**' job. This change cuts the execution time of the '**Distribution Tests Python Linux**' job significantly effectively reducing the total runtime by over 55% as shown below: - Previously the presubmit runs usually take about 75-90 minutes of runtime: [Example run from - Now the presubmit run-time has reduced to about 30-40 minutes: [Test run from this PR](https://btx.cloud.google.com/invocations/93602c73-228b-48e1-9bcc-059f51479887/targets) Given that the presubmit jobs building only a small subset of targets show such time improvement, the release job which currently builds many more aarch64 artifacts will also show significant execution time improvement going forward.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #40354 to v1.75.x.
This PR does the following:
musllinux_aarch64targets.This change cuts the execution time of the 'Distribution Tests Python Linux' job significantly effectively reducing the total runtime by over 55% as shown below:
Given that the presubmit jobs building only a small subset of targets show such time improvement, the release job which currently builds many more aarch64 artifacts will also show significant execution time improvement going forward.