Skip to content

[CD] Remove redundant CPython 3.15 builds from all affected manylinux images - #200681

Merged
atalman merged 1 commit into
release/2.15from
cherry-pick-200653-by-pytorch_bot_bot_
Oct 13, 2026
Merged

atalman merged 1 commit into
release/2.15from
cherry-pick-200653-by-pytorch_bot_bot_

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator
  • 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:

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 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 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.

… 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)
@pytorch-bot

pytorch-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

🔗 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 (image):

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.

@atalman
atalman merged commit 539799d into release/2.15 Oct 13, 2026

This branch was previously deployed

1 inactive deployment
bedrock — 7cda84d6 Deployed Oct 12, 2026 by pytorchbot
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