Skip to content

Remove redundant python3.15 installation from aarch64 builder image - #200595

Closed
puneetmatharu wants to merge 1 commit into
pytorch:mainfrom
puneetmatharu:remove-py315-installation-from-aarch64-dockerfile
Closed

puneetmatharu wants to merge 1 commit into
pytorch:mainfrom
puneetmatharu:remove-py315-installation-from-aarch64-dockerfile

Conversation

@puneetmatharu

Copy link
Copy Markdown
Contributor

Description

This PR removes the now-redundant custom installation of CPython 3.15 from the AArch64 manywheel Dockerfile.

The manylinux base image now includes both standard and free-threaded CPython 3.15.0; the October 9 update results in a collision. The PyTorch installer script (install_cpython.sh) rebuilds CPython into /opt/_internal/cpython-3.15.0, then fails because python already exists there.

@puneetmatharu
puneetmatharu requested a review from a team as a code owner October 12, 2026 07:19
@pytorch-bot

pytorch-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

PR Status: missing actionable issue

Auto PR Triage did not find either of the following when it checked this PR:

  • a linked issue labeled actionable (Fixes #<issue> or Part of #<issue>); or
  • a maintainer named in the description who agreed to the change (Supported by @<maintainer>).

Such PRs are a low priority for maintainers to review and might not get a response given the very high volume of PRs we receive. Please focus on actionable issues to ensure a maintainer will be available to review your PR.

If one of these applies, add the matching line to the PR description. If there is no actionable issue for this change yet, you can open one (or comment on an existing one) and wait for a maintainer to label it actionable. Then ask a maintainer to triage the PR again: they remove the triaged, bot-triaged, and missing actionable issue labels, then remove and re-add open source.

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/200595

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

✅ You can merge normally! (10 Unrelated Failures)

As of commit 6a55966 with merge base d2f3a9d (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

@pytorch-bot

pytorch-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@puneetmatharu puneetmatharu changed the title fix: remove python3.15 installation from aarch64 builder image Remove python3.15 installation from aarch64 builder image Oct 12, 2026
@puneetmatharu puneetmatharu changed the title Remove python3.15 installation from aarch64 builder image Remove redundant python3.15 installation from aarch64 builder image Oct 12, 2026
@github-actions github-actions Bot added bot-triaged This is a label only to be used by the auto triage bot missing actionable issue A PR without a linked actionable issue or maintainer sponsor 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

@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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

pytorchmergebot pushed a commit that referenced this pull request Oct 12, 2026
… 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
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]>

@huydhn huydhn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soulitzer soulitzer added missing actionable issue A PR without a linked actionable issue or maintainer sponsor and removed missing actionable issue A PR without a linked actionable issue or maintainer sponsor labels Oct 15, 2026
@puneetmatharu

Copy link
Copy Markdown
Contributor Author

Closed as superseded by #200653.

@puneetmatharu
puneetmatharu deleted the remove-py315-installation-from-aarch64-dockerfile branch October 26, 2026 20:34

This branch was previously deployed

1 inactive deployment
bedrock — 6a55966c 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 missing actionable issue A PR without a linked actionable issue or maintainer sponsor 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.

6 participants