Repository navigation
[CD] Remove redundant CPython 3.15 builds from all affected manylinux images - #200653
Closed
Skylion007 wants to merge 1 commit into
Closed
Skylion007 wants to merge 1 commit into
Skylion007 wants to merge 1 commit into
Conversation
The manylinux x86-64 and AArch64 base images now provide CPython 3.15 and 3.15t. Rebuilding into their existing prefixes fails when install_cpython.sh creates an already-existing python symlink. Remove the redundant source-install stages from all three affected manywheel Dockerfiles; derived CPU, CUDA, ROCm and XPU images inherit the base-provided interpreters. Authored with assistance from OpenAI Codex; draft for human review. Test Plan: ```bash git diff --check ``` An ad hoc local check compared Dockerfile logical instructions against HEAD: only the redundant installer COPY/RUN pairs were removed. Each remaining RUN shell command passed bash -n. The s390x rebuild remains unchanged. Upstream pypa/manylinux#2001 supplies both Python 3.15 variants. Docker is unavailable locally; actual image builds pending CI.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/200653
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5f3ccff with merge base 0398ae1 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Skylion007
marked this pull request as ready for review
October 12, 2026 17:04
malfet
approved these changes
Oct 12, 2026
Collaborator
Author
|
@pytorchbot merge |
Collaborator
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Collaborator
|
@pytorchbot cherry-pick --onto release/2.15 -c critical |
Collaborator
Cherry picking #200653The cherry pick PR is at #200681 and it is recommended to link a critical cherry pick PR with an issue. The following tracker issues are updated: Details for Dev Infra teamRaised by workflow job |
atalman
pushed a commit
that referenced
this pull request
Oct 13, 2026
… images (#200681) [CD] Remove redundant CPython 3.15 builds from all affected manylinux images (#200653) - [ ] Passes lint (`spin fixlint`) - [ ] Added/updated tests (Dockerfile deletions; local structural checks only) - [ ] Updated documentation (not applicable) - [ ] Included benchmark results (not applicable) ## BC-breaking? ### Agent details: compatibility (AI-generated) Uses CPython 3.15/3.15t already supplied by the current manylinux base images, replacing the redundant locally compiled 3.15.0rc2 builds. ## Summary (human written only) > Make a PR that fixes everything ## Agent details (AI-generated) Prepared with OpenAI Codex at the author's request to cover every Docker image affected by the Python 3.15 installation collision. Draft for human review. Fresh manywheel Docker builds fail in `install_cpython.sh` with: ```text ln: failed to create symbolic link '/opt/_internal/cpython-3.15.0/bin/python': File exists ``` The manylinux base images now provide both CPython 3.15 and free-threaded 3.15. Rebuilding into those existing prefixes is unnecessary. Upstream [pypa/manylinux#2001](pypa/manylinux#2001) updates both variants to 3.15.0 final. Remove the redundant installer `COPY` and `RUN` from: - `Dockerfile_2_28`: covers x86-64 CPU, CUDA, ROCm and XPU derived images. - `Dockerfile_2_28_aarch64`: covers the standard AArch64 builder. - `Dockerfile_cuda_aarch64`: covers CUDA AArch64 builders. This extends the scope of #200595, which removes only the standard AArch64 block. The s390x image intentionally deletes the base image's Python installation before rebuilding for its development requirements, so its existing rebuild path is retained. Observed failure: [CPU builder job](https://github.com/pytorch/pytorch/actions/runs/38279825663/job/114914161885) from #200651. The other five failed manywheel image jobs hit the same symlink collision. Validation: `git diff --check` passed; an ad hoc local comparison confirmed that the only logical instruction removals are the three installer COPY/RUN pairs; all remaining RUN shell commands passed `bash -n`; s390x is unchanged. Docker is unavailable in the local environment, so full image builds and lint are pending. Changes under `.ci/docker` intentionally trigger image rebuilds. Pull Request resolved: #200653 Approved by: https://github.com/malfet (cherry picked from commit a139ef7) Co-authored-by: Aaron Gokaslan <[email protected]>
This branch was previously deployed
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.
spin fixlint)BC-breaking?
Agent details: compatibility (AI-generated)
Uses CPython 3.15/3.15t already supplied by the current manylinux base images, replacing the redundant locally compiled 3.15.0rc2 builds.
Summary (human written only)
Agent details (AI-generated)
Prepared with OpenAI Codex at the author's request to cover every Docker image affected by the Python 3.15 installation collision. Draft for human review.
Fresh manywheel Docker builds fail in
install_cpython.shwith:The manylinux base images now provide both CPython 3.15 and free-threaded 3.15. Rebuilding into those existing prefixes is unnecessary. Upstream pypa/manylinux#2001 updates both variants to 3.15.0 final.
Remove the redundant installer
COPYandRUNfrom:Dockerfile_2_28: covers x86-64 CPU, CUDA, ROCm and XPU derived images.Dockerfile_2_28_aarch64: covers the standard AArch64 builder.Dockerfile_cuda_aarch64: covers CUDA AArch64 builders.This extends the scope of #200595, which removes only the standard AArch64 block. The s390x image intentionally deletes the base image's Python installation before rebuilding for its development requirements, so its existing rebuild path is retained.
Observed failure: CPU builder job from #200651. The other five failed manywheel image jobs hit the same symlink collision.
Validation:
git diff --checkpassed; an ad hoc local comparison confirmed that the only logical instruction removals are the three installer COPY/RUN pairs; all remaining RUN shell commands passedbash -n; s390x is unchanged. Docker is unavailable in the local environment, so full image builds and lint are pending. Changes under.ci/dockerintentionally trigger image rebuilds.