Skip to content

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

Closed
Skylion007 wants to merge 1 commit into
pytorch:mainfrom
Skylion007:ci/remove-redundant-python315
Closed

Skylion007 wants to merge 1 commit into
pytorch:mainfrom
Skylion007:ci/remove-redundant-python315

Conversation

@Skylion007

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.

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.
@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/200653

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5f3ccff with merge base 0398ae1 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@Skylion007
Skylion007 requested review from atalman and malfet October 12, 2026 17:03
@Skylion007
Skylion007 marked this pull request as ready for review October 12, 2026 17:04
@Skylion007
Skylion007 requested a review from a team as a code owner October 12, 2026 17:04
@github-actions github-actions Bot added bot-triaged This is a label only to be used by the auto triage bot triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Oct 12, 2026
@Skylion007

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 12, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@atalman

atalman commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot cherry-pick --onto release/2.15 -c critical

@pytorchbot

Copy link
Copy Markdown
Collaborator

Cherry picking #200653

The 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 team Raised 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

1 inactive deployment
bedrock — 5f3ccffe Deployed Oct 12, 2026 by pytorchbot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot-triaged This is a label only to be used by the auto triage bot ciflow/docker ciflow/trunk Trigger trunk jobs on your pull request Merged open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants