Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
5d88db3
ci(pytorch): add Python 3.15 release builds
ethanwee1 Sep 18, 2026
d83a905
build(pytorch): prepare Python 3.15 tooling
ethanwee1 Sep 18, 2026
8af6de7
ci(pytorch): use Python 3.15 manylinux image
ethanwee1 Sep 21, 2026
cb8697f
test(pytorch): drop dedicated Python 3.15 matrix cases
ethanwee1 Sep 22, 2026
7010880
test(pytorch): cover 3.15 in existing version lists
ethanwee1 Sep 22, 2026
d3108fe
test(pytorch): wrap 3.15 matrix assertion for black
ethanwee1 Sep 22, 2026
51aefa1
ci(pytorch): add 3.15 to the shared Python version list
ethanwee1 Sep 22, 2026
205958d
test(pytorch): restore original matrix test layout
ethanwee1 Sep 22, 2026
028c48a
test(pytorch): cover the default release versions
ethanwee1 Sep 22, 2026
b9c00ae
ci(pytorch): split manylinux image publication
ethanwee1 Sep 23, 2026
6261ce2
ci(pytorch): exclude 2.12 from Python 3.15
ethanwee1 Sep 25, 2026
ae7339c
Merge remote-tracking branch 'origin/main' into users/ethanwee/python…
ethanwee1 Sep 28, 2026
9c58218
Merge remote-tracking branch 'origin/main' into users/ethanwee/python…
ethanwee1 Oct 2, 2026
fe730ce
ci(pytorch): complete Python 3.15 manylinux enablement
ethanwee1 Oct 26, 2026
353924f
Merge remote-tracking branch 'rocm/main' into users/ethanwee/python31…
ethanwee1 Oct 26, 2026
9ad33be
fix(rocprofiler-sdk): keep HIP and LLVM runtime roots distinct
ethanwee1 Oct 26, 2026
49f8b95
ci: consume Python 3.15 manylinux image in all Linux builds
ethanwee1 Oct 28, 2026
848d070
ci: use current manylinux base and wait for upstream codeobj fix
ethanwee1 Oct 28, 2026
b7ee09a
Merge main into Python 3.15 enablement
ethanwee1 Oct 29, 2026
505cc1b
ci: sequence manylinux image publication
ethanwee1 Oct 30, 2026
8ebb60b
ci: consume published Python 3.15 manylinux image
ethanwee1 Oct 30, 2026
8d0720e
ci: stabilize Windows MSI and ROCgdb tests
ethanwee1 Nov 2, 2026
1422aa0
ci: keep runner fixes out of Python 3.15 PR
ethanwee1 Nov 2, 2026
716c63e
Merge remote-tracking branch 'origin/main' into users/ethanwee/python…
ethanwee1 Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/copy_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
- "3.12"
- "3.13"
- "3.14"
- "3.15"
default: "3.12"
include_torch:
description: Copy 'torch' packages in addition to 'rocm' packages?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ jobs:
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ inputs.python_version }}
allow-prereleases: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really want this?
i thought we only run on officially released python versions or am i missing something?

If allow-prereleases is set to true, the action will allow falling back to pre-release versions of Python when a matching GA version of Python is not available.
This allows for example to simplify reuse of python-version as an input of nox for pre-releases of Python by not requiring manipulation of the 3.y-dev specifier.
For CPython, allow-prereleases will only have effect for x.y version range (e.g. 3.14).
https://github.com/actions/setup-python/blob/06da6279cdbca41027908073e81a4544dc79c06b/docs/advanced-usage.md?plain=1#L671

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python 3.15 is not yet released, but we'd like to have packages available early.

See

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess they missed the 2026-10-01 (:
but ok all good then. wasnt aware of those details

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need allow-prereleases: true now, right? Or at least that could be a separate PR at this point to be more forward looking.


- name: Select Python version
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_pytorch_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ inputs.python_version }}
allow-prereleases: true

# Multi-arch packages use pip extras (e.g. torch[device-gfx942]) to
# select GPU-specific device packages. Expand the family to get the
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_pytorch_wheels_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ jobs:
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ inputs.python_version }}
allow-prereleases: true

# Multi-arch packages use pip extras (e.g. torch[device-gfx942]) to
# select GPU-specific device packages. Expand the family to get the
Expand Down
15 changes: 10 additions & 5 deletions build_tools/github_actions/configure_pytorch_release_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@
# TODO: add opt-ins for CI runs to use python versions and pytorch refs normally
# only included in release runs

# All configured refs currently share this build-version range. When upstream
# support windows diverge, replace it with an ordered per-ref version map and
# derive each ref's primary test version from the oldest entry in that map.
RELEASE_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
# Release matrices start with this shared version range, then omit unsupported
# ref/version combinations below.
RELEASE_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description lists dependency pull requests that are still open but the PR linked successful workflow runs?

Does this currently work or do we need to wait for those PRs to be merged too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proofs used combined dependency branches and a staged image; this PR does not work standalone yet. The description now states the exact merge order and blocks merge until those dependencies and the published main image are available.

CI_PYTHON_VERSIONS = {
"linux": ["3.12"],
"windows": ["3.12"],
}

UNSUPPORTED_PYTHON_VERSIONS = {
"release/2.12": {"3.15"},
}

# Refs for the "prerelease" release type. The "nightly" release type extends
# this set with additional refs (see RELEASE_PYTORCH_REFS).
RELEASE_STABLE_PYTORCH_REFS = {
Expand Down Expand Up @@ -200,7 +203,7 @@ def generate_pytorch_matrix_for_release_type(
# },
# ...
# {
# "python_version": "3.14",
# "python_version": "3.15",
# "pytorch_git_ref": "nightly",
# "amdgpu_families": "gfx94X-dcgpu",
# "test_level": "none"
Expand All @@ -209,6 +212,8 @@ def generate_pytorch_matrix_for_release_type(
matrix: list[dict[str, str]] = []
for py in versions:
for ref in refs:
if py in UNSUPPORTED_PYTHON_VERSIONS.get(ref, set()):
continue
exclude = UNSUPPORTED_AMDGPU_FAMILIES[platform].get(ref, set())
families = _filter_families(amdgpu_families, exclude)
if not families:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,33 @@ def test_explicit_versions_and_refs_narrow_matrix(self):
],
)

def test_excludes_unsupported_python_version_for_ref(self):
matrix = m.generate_pytorch_matrix_for_release_type(
release_type="nightly",
python_versions=["3.14", "3.15"],
pytorch_git_refs=[
"release/2.12",
"release/2.13",
"release/2.14",
"nightly",
],
amdgpu_families="gfx94X-dcgpu",
platform="linux",
)

self.assertEqual(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would add a comment here about the expected matrix:


UNSUPPORTED_PYTHON_VERSIONS = {
    "release/2.12": {"3.15"},
}

[(row["python_version"], row["pytorch_git_ref"]) for row in matrix],
[
("3.14", "release/2.12"),
("3.14", "release/2.13"),
("3.14", "release/2.14"),
("3.14", "nightly"),
("3.15", "release/2.13"),
("3.15", "release/2.14"),
("3.15", "nightly"),
],
)

def test_filters_exact_unsupported_family(self):
# Unsupported families are filtered while supported ones are kept.
for pytorch_git_ref in ("release/2.13", "release/2.14"):
Expand Down Expand Up @@ -144,15 +171,21 @@ def test_unknown_explicit_ref_keeps_families(self):
def test_release_uses_primary_python_version_for_standard_tests(self):
matrix = m.generate_pytorch_matrix_for_release_type(
release_type="nightly",
python_versions=["3.10", "3.11", "3.12"],
pytorch_git_refs=["release/2.13"],
amdgpu_families="gfx94X-dcgpu",
platform="linux",
)

self.assertEqual(
[(row["python_version"], row["test_level"]) for row in matrix],
[("3.10", "none"), ("3.11", "standard"), ("3.12", "none")],
[
("3.10", "none"),
("3.11", "standard"),
("3.12", "none"),
("3.13", "none"),
("3.14", "none"),
("3.15", "none"),
],
)

def test_summary_explains_an_all_none_matrix(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class FakeBucket:
"numpy-2.0.0-cp312-cp312-linux_x86_64.whl",
"numpy-2.0.0-cp313-cp313-linux_x86_64.whl",
"numpy-2.0.0-cp314-cp314-linux_x86_64.whl",
"numpy-2.0.0-cp315-cp315-linux_x86_64.whl",
# manylinux variants
"numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.whl",
"numpy-2.0.0-cp312-cp312-manylinux2014_x86_64.whl",
Expand Down Expand Up @@ -109,6 +110,7 @@ def test_rejected_platform(pkg: str) -> None:
# Free-threaded and future versions
"numpy-2.0.0-cp313t-cp313t-linux_x86_64.whl",
"numpy-2.0.0-cp314t-cp314t-linux_x86_64.whl",
"numpy-2.0.0-cp315t-cp315t-linux_x86_64.whl",
# Python 2 and py2.py3 universal tags
"six-1.16.0-py2-none-any.whl",
"six-1.16.0-py2.py3-none-any.whl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"cp312",
"cp313",
"cp314",
"cp315",
}
)

Expand Down
Loading