Skip to content

Commit d3433a2

Browse files
committed
[DO NOT MERGE] Temporarily force PR builds to test 3.15/3.15t on Linux
PR builds normally limit to python_versions[0] (3.10); override that to ["3.15", "3.15t"] for linux and linux-aarch64 so this PR's CI actually exercises the new versions (macOS/Windows keep 3.10 to avoid an empty matrix). Revert this commit before merging. Authored with assistance from Claude Code (AI assistant).
1 parent 65fa050 commit d3433a2

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

tools/scripts/generate_binary_build_matrix.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ def generate_wheels_matrix(
448448
) -> List[Dict[str, str]]:
449449
package_type = "wheel"
450450

451+
explicitly_requested_versions = bool(python_versions)
452+
451453
if not python_versions:
452454
# Define default python version
453455
python_versions = list(PYTHON_ARCHES)
@@ -488,7 +490,15 @@ def generate_wheels_matrix(
488490
arches += [XPU]
489491

490492
if limit_pr_builds:
491-
python_versions = [python_versions[0]]
493+
# TEMPORARY (DO NOT MERGE): force the default PR build selection to
494+
# exercise 3.15 / 3.15t on Linux so this PR's CI validates the new
495+
# versions. Callers that pass an explicit python-versions list (e.g. the
496+
# ExecuTorch self-test, which pins 3.10/3.11 because it caps <3.15) keep
497+
# theirs. Revert to `python_versions = [python_versions[0]]` before merging.
498+
if not explicitly_requested_versions and os in (LINUX, LINUX_AARCH64):
499+
python_versions = ["3.15", "3.15t"]
500+
else:
501+
python_versions = [python_versions[0]]
492502

493503
global WHEEL_CONTAINER_IMAGES
494504

0 commit comments

Comments
 (0)