Skip to content

Commit b3e2845

Browse files
committed
[TEMP - do not merge] Force PR validation to test Python 3.15
Temporary commit to exercise the 3.15 conda-forge validation path on this PR: - generate_binary_build_matrix.py: nightly python arches -> [3.15, 3.15t] (PR limit picks the first, so the PR validates 3.15 across linux arches). - validate-nightly-binaries.yml: scope to os=linux and torchonly=true (no torchvision cp315 wheels yet). REVERT THIS COMMIT before merging #8216.
1 parent ea8b9cc commit b3e2845

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ jobs:
106106
package-type: wheel,libtorch
107107
os: linux
108108
channel: ${{ inputs.channel }}
109-
test-infra-ref: release/2.13
109+
# TEMPORARY (revert before merge): use the PR branch so the matrix is
110+
# generated by this PR's generate_binary_build_matrix.py (3.15/3.15t).
111+
test-infra-ref: fix-py315-condaforge-pytorch-ref-release-2.13
110112
use-only-dl-pytorch-org: ${{ inputs.use-only-dl-pytorch-org }}
111113
with-xpu: enable
112114

@@ -121,6 +123,9 @@ jobs:
121123
runner: ${{ matrix.validation_runner }}
122124
repository: "pytorch/pytorch"
123125
ref: release/2.13
126+
# TEMPORARY (revert before merge): use the PR branch so validate_binaries.sh
127+
# (with the Python 3.15 conda-forge setup) comes from this PR.
128+
test-infra-ref: fix-py315-condaforge-pytorch-ref-release-2.13
124129
job-name: ${{ matrix.build_name }}
125130
docker-image: ${{ ((matrix.gpu_arch_type == 'xpu' || matrix.gpu_arch_type == 'rocm') && matrix.container_image) || 'pytorch/almalinux-builder:cpu-main' }}
126131
binary-matrix: ${{ toJSON(matrix) }}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ jobs:
3232
uses: ./.github/workflows/validate-binaries.yml
3333
with:
3434
channel: nightly
35-
os: all
35+
# TEMPORARY (revert before merge): scope to linux and torch-only to test
36+
# the Python 3.15 validation path (no torchvision cp315 wheels yet).
37+
os: linux
38+
torchonly: true

tools/scripts/generate_binary_build_matrix.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323

2424
PYTHON_ARCHES_DICT = {
25-
"nightly": ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"],
25+
# TEMPORARY (revert before merge): restrict nightly to 3.15/3.15t so this
26+
# PR's nightly validation exercises the Python 3.15 conda-forge setup.
27+
"nightly": ["3.15", "3.15t"],
2628
"test": ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"],
2729
"release": ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"],
2830
}

0 commit comments

Comments
 (0)