Skip to content
This repository was archived by the owner on Nov 20, 2026. It is now read-only.

Drop build matrix coordinates with no published torch wheel (#3755) - #3755

Closed
tushar00jain wants to merge 1 commit into
meta-pytorch:mainfrom
tushar00jain:export-D115730324
Closed

tushar00jain wants to merge 1 commit into
meta-pytorch:mainfrom
tushar00jain:export-D115730324

Conversation

@tushar00jain

@tushar00jain tushar00jain commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 20, 2026
@meta-codesync

meta-codesync Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

@tushar00jain has exported this pull request. If you are a Meta employee, you can view the originating Diff in D115730324.

@meta-codesync meta-codesync Bot changed the title Drop build matrix coordinates with no published torch wheel Drop build matrix coordinates with no published torch wheel (#3755) Aug 25, 2026
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
@meta-codesync

meta-codesync Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in cabe4de.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Meta Open Source bot. Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant