Repository navigation
Conversation
Addresses review feedback on pytorch#182409: the new build_env_setup.py duplicated the OS-package list already baked into the manywheel builder image (.ci/docker/manywheel/Dockerfile_2_28), with no CI use case for the duplication. The drift risk between the Dockerfile and the Python script and the broadened wheel-build-time supply-chain surface (fresh yum/apt fetches vs. the image's frozen baseline) provide no benefit on the standard CI path. This change restores the legacy "trust the image" contract for the OS-package list: * install_os_packages now installs only zip + openssl on RHEL/Ubuntu (the original build_common.sh set). All other yum/apt packages come from Dockerfile_2_28 at image-build time. * The nvidia-apt list mangling on Ubuntu is removed (no longer needed once the install set is trimmed). The CUDA + MAGMA + MKL bootstrap paths (install_cuda_toolkit, the install_magma.sh fallback in setup_cuda, and the install_mkl.sh fallback in main) are kept so the script remains usable on a lean manylinux base when those toolkits aren't already staged. Authored with Claude.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/183320
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 14 PendingAs of commit a2650c1 with merge base 3d5307b ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
malfet
approved these changes
May 11, 2026
Collaborator
Author
|
@pytorchmergebot merge -f "lint and binary builds look good" |
Collaborator
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
dsashidh
pushed a commit
to dsashidh/pytorch
that referenced
this pull request
May 13, 2026
…ytorch#183320) ## Summary Follow-up to pytorch#182409, addressing the review observation that the new `build_env_setup.py` duplicated the OS-package list already baked into the manywheel builder image (`.ci/docker/manywheel/Dockerfile_2_28`), with no CI use case for the duplication. The drift risk between the Dockerfile and the Python script and the broadened wheel-build-time supply-chain surface (fresh yum/apt fetches vs. the image's frozen baseline) provide no benefit on the standard CI path. This PR restores the legacy "trust the image" contract for the OS-package list only: - `install_os_packages` now installs only `zip` + `openssl` on RHEL/Ubuntu (the original `build_common.sh` set). All other yum/apt packages come from `Dockerfile_2_28` at image-build time. - The nvidia-apt list mangling on Ubuntu is removed (no longer needed once the install set is trimmed). The CUDA + MAGMA + MKL bootstrap paths (`install_cuda_toolkit`, the `install_magma.sh` fallback in `setup_cuda`, and the `install_mkl.sh` fallback in `main()`) are kept so the script remains usable on a lean manylinux base when those toolkits aren't already staged. Net diff: 1 file, +15 / -42. Authored with Claude. ## Test plan - [ ] Nightly manywheel CUDA / CPU / aarch64 build jobs (Linux) succeed. - [ ] No regressions from the trimmed OS-package install on Dockerfile_2_28. Pull Request resolved: pytorch#183320 Approved by: https://github.com/malfet
Alokksinha00
pushed a commit
to Alokksinha00/pytorch
that referenced
this pull request
May 15, 2026
…ytorch#183320) ## Summary Follow-up to pytorch#182409, addressing the review observation that the new `build_env_setup.py` duplicated the OS-package list already baked into the manywheel builder image (`.ci/docker/manywheel/Dockerfile_2_28`), with no CI use case for the duplication. The drift risk between the Dockerfile and the Python script and the broadened wheel-build-time supply-chain surface (fresh yum/apt fetches vs. the image's frozen baseline) provide no benefit on the standard CI path. This PR restores the legacy "trust the image" contract for the OS-package list only: - `install_os_packages` now installs only `zip` + `openssl` on RHEL/Ubuntu (the original `build_common.sh` set). All other yum/apt packages come from `Dockerfile_2_28` at image-build time. - The nvidia-apt list mangling on Ubuntu is removed (no longer needed once the install set is trimmed). The CUDA + MAGMA + MKL bootstrap paths (`install_cuda_toolkit`, the `install_magma.sh` fallback in `setup_cuda`, and the `install_mkl.sh` fallback in `main()`) are kept so the script remains usable on a lean manylinux base when those toolkits aren't already staged. Net diff: 1 file, +15 / -42. Authored with Claude. ## Test plan - [ ] Nightly manywheel CUDA / CPU / aarch64 build jobs (Linux) succeed. - [ ] No regressions from the trimmed OS-package install on Dockerfile_2_28. Pull Request resolved: pytorch#183320 Approved by: https://github.com/malfet
aperson30
pushed a commit
to aperson30/pytorch
that referenced
this pull request
Jun 20, 2026
…ytorch#183320) ## Summary Follow-up to pytorch#182409, addressing the review observation that the new `build_env_setup.py` duplicated the OS-package list already baked into the manywheel builder image (`.ci/docker/manywheel/Dockerfile_2_28`), with no CI use case for the duplication. The drift risk between the Dockerfile and the Python script and the broadened wheel-build-time supply-chain surface (fresh yum/apt fetches vs. the image's frozen baseline) provide no benefit on the standard CI path. This PR restores the legacy "trust the image" contract for the OS-package list only: - `install_os_packages` now installs only `zip` + `openssl` on RHEL/Ubuntu (the original `build_common.sh` set). All other yum/apt packages come from `Dockerfile_2_28` at image-build time. - The nvidia-apt list mangling on Ubuntu is removed (no longer needed once the install set is trimmed). The CUDA + MAGMA + MKL bootstrap paths (`install_cuda_toolkit`, the `install_magma.sh` fallback in `setup_cuda`, and the `install_mkl.sh` fallback in `main()`) are kept so the script remains usable on a lean manylinux base when those toolkits aren't already staged. Net diff: 1 file, +15 / -42. Authored with Claude. ## Test plan - [ ] Nightly manywheel CUDA / CPU / aarch64 build jobs (Linux) succeed. - [ ] No regressions from the trimmed OS-package install on Dockerfile_2_28. Pull Request resolved: pytorch#183320 Approved by: https://github.com/malfet
gplutop7
pushed a commit
to gplutop7/pytorch
that referenced
this pull request
Jul 15, 2026
…ytorch#183320) ## Summary Follow-up to pytorch#182409, addressing the review observation that the new `build_env_setup.py` duplicated the OS-package list already baked into the manywheel builder image (`.ci/docker/manywheel/Dockerfile_2_28`), with no CI use case for the duplication. The drift risk between the Dockerfile and the Python script and the broadened wheel-build-time supply-chain surface (fresh yum/apt fetches vs. the image's frozen baseline) provide no benefit on the standard CI path. This PR restores the legacy "trust the image" contract for the OS-package list only: - `install_os_packages` now installs only `zip` + `openssl` on RHEL/Ubuntu (the original `build_common.sh` set). All other yum/apt packages come from `Dockerfile_2_28` at image-build time. - The nvidia-apt list mangling on Ubuntu is removed (no longer needed once the install set is trimmed). The CUDA + MAGMA + MKL bootstrap paths (`install_cuda_toolkit`, the `install_magma.sh` fallback in `setup_cuda`, and the `install_mkl.sh` fallback in `main()`) are kept so the script remains usable on a lean manylinux base when those toolkits aren't already staged. Net diff: 1 file, +15 / -42. Authored with Claude. ## Test plan - [ ] Nightly manywheel CUDA / CPU / aarch64 build jobs (Linux) succeed. - [ ] No regressions from the trimmed OS-package install on Dockerfile_2_28. Pull Request resolved: pytorch#183320 Approved by: https://github.com/malfet
aws-kingrj
pushed a commit
to amazon-contributing/upstream-to-pytorch
that referenced
this pull request
Jul 29, 2026
…ytorch#183320) ## Summary Follow-up to pytorch#182409, addressing the review observation that the new `build_env_setup.py` duplicated the OS-package list already baked into the manywheel builder image (`.ci/docker/manywheel/Dockerfile_2_28`), with no CI use case for the duplication. The drift risk between the Dockerfile and the Python script and the broadened wheel-build-time supply-chain surface (fresh yum/apt fetches vs. the image's frozen baseline) provide no benefit on the standard CI path. This PR restores the legacy "trust the image" contract for the OS-package list only: - `install_os_packages` now installs only `zip` + `openssl` on RHEL/Ubuntu (the original `build_common.sh` set). All other yum/apt packages come from `Dockerfile_2_28` at image-build time. - The nvidia-apt list mangling on Ubuntu is removed (no longer needed once the install set is trimmed). The CUDA + MAGMA + MKL bootstrap paths (`install_cuda_toolkit`, the `install_magma.sh` fallback in `setup_cuda`, and the `install_mkl.sh` fallback in `main()`) are kept so the script remains usable on a lean manylinux base when those toolkits aren't already staged. Net diff: 1 file, +15 / -42. Authored with Claude. ## Test plan - [ ] Nightly manywheel CUDA / CPU / aarch64 build jobs (Linux) succeed. - [ ] No regressions from the trimmed OS-package install on Dockerfile_2_28. Pull Request resolved: pytorch#183320 Approved by: https://github.com/malfet
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.
Summary
Follow-up to #182409, addressing the review observation that the new
build_env_setup.pyduplicated the OS-package list already baked into the manywheel builder image (.ci/docker/manywheel/Dockerfile_2_28), with no CI use case for the duplication. The drift risk between the Dockerfile and the Python script and the broadened wheel-build-time supply-chain surface (fresh yum/apt fetches vs. the image's frozen baseline) provide no benefit on the standard CI path.This PR restores the legacy "trust the image" contract for the OS-package list only:
install_os_packagesnow installs onlyzip+opensslon RHEL/Ubuntu (the originalbuild_common.shset). All other yum/apt packages come fromDockerfile_2_28at image-build time.The CUDA + MAGMA + MKL bootstrap paths (
install_cuda_toolkit, theinstall_magma.shfallback insetup_cuda, and theinstall_mkl.shfallback inmain()) are kept so the script remains usable on a lean manylinux base when those toolkits aren't already staged.Net diff: 1 file, +15 / -42.
Authored with Claude.
Test plan