Repository navigation
[CD] Remove redundant CPython 3.15 builds from all affected manylinux images - #200681
Conversation
… 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)
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/200681
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 7cda84d with merge base 2cce586 ( NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following job failed, but the AI CI Advisor judged the failure not to be evidence against this change:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.