Skip to content

Commit 85138c6

Browse files
authored
[release/2.13] Pin test-infra-ref to release/2.13 in validation matrix generation (#8171)
The per-platform validate workflows call generate_binary_build_matrix.yml without passing test-infra-ref, so it falls back to the workflow default of 'main'. The build matrix (and its stable_version / CURRENT_CANDIDATE_VERSION) is therefore computed from main's generate_binary_build_matrix.py even when validating release/2.13. main's CURRENT_CANDIDATE_VERSION does not match the version served on the test channel for the 2.13 release, so validation installs the wrong version and smoke_test.py fails with a "Torch version mismatch, expected <x> for channel test" error. Pin test-infra-ref: release/2.13 in the matrix-generation calls so the matrix is computed from the release branch. Authored with the assistance of Claude Code.
1 parent 9f3fd4d commit 85138c6

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/validate-aarch64-linux-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
package-type: wheel
9797
os: linux-aarch64
9898
channel: ${{ inputs.channel }}
99+
test-infra-ref: release/2.13
99100
with-cuda: enable
100101
with-cpu: enable
101102
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}

.github/workflows/validate-linux-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
package-type: wheel,libtorch
107107
os: linux
108108
channel: ${{ inputs.channel }}
109+
test-infra-ref: release/2.13
109110
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
110111
with-xpu: enable
111112

.github/workflows/validate-macos-arm64-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
package-type: wheel,libtorch # We stopped producing conda nightlies
9797
os: macos-arm64
9898
channel: ${{ inputs.channel }}
99+
test-infra-ref: release/2.13
99100
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
100101

101102
macos-arm64:

.github/workflows/validate-windows-binaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
package-type: wheel,libtorch # We stopped producing conda nightlies
9797
os: windows
9898
channel: ${{ inputs.channel }}
99+
test-infra-ref: release/2.13
99100
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
100101
with-xpu: enable
101102

0 commit comments

Comments
 (0)