This repository was archived by the owner on Nov 20, 2026. It is now read-only.
Repository navigation
Drop build matrix coordinates with no published torch wheel (#3755) - #3755
Closed
tushar00jain wants to merge 1 commit into
Closed
tushar00jain wants to merge 1 commit into
tushar00jain wants to merge 1 commit into
Conversation
Contributor
|
@tushar00jain has exported this pull request. If you are a Meta employee, you can view the originating Diff in D115730324. |
tushar00jain
force-pushed
the
export-D115730324
branch
from
August 25, 2026 03:02
7893a77 to
00f24a9
Compare
tushar00jain
added a commit
to tushar00jain/torchcomms
that referenced
this pull request
Aug 25, 2026
…orch#3755) Summary: torchcomms generates its wheel build matrix from `pytorch/test-infra@main`, so a new CUDA version appears in our matrix the moment it is added upstream -- which can be days before the matching torch nightly reaches `download.pytorch.org`. This happened with CUDA 13.4 (D115257402 / pytorch/pytorch#192256, landed 2026-08-07). cu134 entered our matrix immediately, but the first cu134 torch nightly did not reach the index until 2026-08-08. In between, every cu134 coordinate failed at the `pip install torch` step, produced no artifact, and the downstream upload job reported the misleading error: Artifact not found for name: meta-pytorch_torchcomms__3.10_cu134_x86_64 The reported failure is in the upload job; the actual failure is in the build job for the same coordinate. That misdirection is most of the debugging cost. Add a `filter-matrix` job that checks whether a matching torch wheel is actually published before letting a coordinate through. Matching is on CUDA version, CPython tag (including free-threaded variants: `3.14t` -> `cp314-cp314t`) and architecture. On x86 the job is chained after the existing `configure-matrix` (`generate-matrix` -> `configure-matrix` -> `filter-matrix` -> `build`) so the `validation_runner` values that `configure-matrix` patches in are preserved. On aarch64, which has no `configure-matrix`, it sits directly after `generate-matrix`. Non-CUDA coordinates -- including ROCm, now that `with-rocm` is enabled on x86 -- pass through untouched. The index is S3-backed, so a CUDA prefix that was never written answers `403 AccessDenied` rather than `404` -- both mean "nothing published". The check classifies three ways: | index response | meaning | action | |------------------------|----------------------|--------| | 200, no matching wheel | not published yet | drop | | 403 / 404 | prefix never written | drop | | timeout / 5xx / DNS | inconclusive | keep | Keeping on inconclusive is deliberate. A transient index failure must not silently shrink the matrix -- a green run with missing wheels is worse than a red one. Every drop is written to stderr and `GITHUB_STEP_SUMMARY` so a column that quietly stops building stays visible. Scope is torchcomms only. The shared test-infra matrix is untouched, so other Nova consumers are unaffected. A probe inside the shared matrix would risk silently shrinking the matrix for all ~17 consumer repos at once; the right shared-side fix is ordering discipline -- do not add a CUDA version to the Nova matrix until its nightlies are on the index. This covers the "wheels are not up yet" window only. cu134 also failed on 2026-08-09 and 2026-08-10 with torch present on the index; that is a separate, still-unexplained failure and is not addressed here. Reviewed By: kapilsh Differential Revision: D115730324
…orch#3755) Summary: torchcomms generates its wheel build matrix from `pytorch/test-infra@main`, so a new CUDA version appears in our matrix the moment it is added upstream -- which can be days before the matching torch nightly reaches `download.pytorch.org`. This happened with CUDA 13.4 (D115257402 / pytorch/pytorch#192256, landed 2026-08-07). cu134 entered our matrix immediately, but the first cu134 torch nightly did not reach the index until 2026-08-08. In between, every cu134 coordinate failed at the `pip install torch` step, produced no artifact, and the downstream upload job reported the misleading error: Artifact not found for name: meta-pytorch_torchcomms__3.10_cu134_x86_64 The reported failure is in the upload job; the actual failure is in the build job for the same coordinate. That misdirection is most of the debugging cost. Add a `filter-matrix` job that checks whether a matching torch wheel is actually published before letting a coordinate through. Matching is on CUDA version, CPython tag (including free-threaded variants: `3.14t` -> `cp314-cp314t`) and architecture. On x86 the job is chained after the existing `configure-matrix` (`generate-matrix` -> `configure-matrix` -> `filter-matrix` -> `build`) so the `validation_runner` values that `configure-matrix` patches in are preserved. On aarch64, which has no `configure-matrix`, it sits directly after `generate-matrix`. Non-CUDA coordinates -- including ROCm, now that `with-rocm` is enabled on x86 -- pass through untouched. The index is S3-backed, so a CUDA prefix that was never written answers `403 AccessDenied` rather than `404` -- both mean "nothing published". The check classifies three ways: | index response | meaning | action | |------------------------|----------------------|--------| | 200, no matching wheel | not published yet | drop | | 403 / 404 | prefix never written | drop | | timeout / 5xx / DNS | inconclusive | keep | Keeping on inconclusive is deliberate. A transient index failure must not silently shrink the matrix -- a green run with missing wheels is worse than a red one. Every drop is written to stderr and `GITHUB_STEP_SUMMARY` so a column that quietly stops building stays visible. Scope is torchcomms only. The shared test-infra matrix is untouched, so other Nova consumers are unaffected. A probe inside the shared matrix would risk silently shrinking the matrix for all ~17 consumer repos at once; the right shared-side fix is ordering discipline -- do not add a CUDA version to the Nova matrix until its nightlies are on the index. This covers the "wheels are not up yet" window only. cu134 also failed on 2026-08-09 and 2026-08-10 with torch present on the index; that is a separate, still-unexplained failure and is not addressed here. Reviewed By: kapilsh Differential Revision: D115730324
tushar00jain
force-pushed
the
export-D115730324
branch
from
August 25, 2026 03:04
00f24a9 to
c033c75
Compare
Contributor
|
This pull request has been merged in cabe4de. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
torchcomms generates its wheel build matrix from
pytorch/test-infra@main, so anew CUDA version appears in our matrix the moment it is added upstream -- which
can be days before the matching torch nightly reaches
download.pytorch.org.This happened with CUDA 13.4 (D115257402 / pytorch/pytorch#192256, landed
2026-08-07). cu134 entered our matrix immediately, but the first cu134 torch
nightly did not reach the index until 2026-08-08. In between, every cu134
coordinate failed at the
pip install torchstep, produced no artifact, and thedownstream upload job reported the misleading error:
Artifact not found for name: meta-pytorch_torchcomms__3.10_cu134_x86_64
The reported failure is in the upload job; the actual failure is in the build job
for the same coordinate. That misdirection is most of the debugging cost.
Add a
filter-matrixjob that checks whether a matching torch wheel is actuallypublished before letting a coordinate through. Matching is on CUDA version,
CPython tag (including free-threaded variants:
3.14t->cp314-cp314t) andarchitecture.
On x86 the job is chained after the existing
configure-matrix(
generate-matrix->configure-matrix->filter-matrix->build) so thevalidation_runnervalues thatconfigure-matrixpatches in are preserved.On aarch64, which has no
configure-matrix, it sits directly aftergenerate-matrix. Non-CUDA coordinates -- including ROCm, now thatwith-rocmis enabled on x86 -- pass through untouched.
The index is S3-backed, so a CUDA prefix that was never written answers
403 AccessDeniedrather than404-- both mean "nothing published". The checkclassifies three ways:
Keeping on inconclusive is deliberate. A transient index failure must not
silently shrink the matrix -- a green run with missing wheels is worse than a red
one. Every drop is written to stderr and
GITHUB_STEP_SUMMARYso a column thatquietly stops building stays visible.
Scope is torchcomms only. The shared test-infra matrix is untouched, so other
Nova consumers are unaffected. A probe inside the shared matrix would risk
silently shrinking the matrix for all ~17 consumer repos at once; the right
shared-side fix is ordering discipline -- do not add a CUDA version to the Nova
matrix until its nightlies are on the index.
This covers the "wheels are not up yet" window only. cu134 also failed on
2026-08-09 and 2026-08-10 with torch present on the index; that is a separate,
still-unexplained failure and is not addressed here.
Reviewed By: kapilsh
Differential Revision: D115730324