Repository navigation
ci(pytorch): add Python 3.15 release builds #8394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
5d88db3
d83a905
8af6de7
cb8697f
7010880
d3108fe
51aefa1
205958d
028c48a
b9c00ae
6261ce2
ae7339c
9c58218
fe730ce
353924f
9ad33be
49f8b95
848d070
b7ee09a
505cc1b
8ebb60b
8d0720e
1422aa0
716c63e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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"] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 = { | ||
|
|
@@ -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" | ||
|
|
@@ -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: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would add a comment here about the expected matrix: |
||
| [(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"): | ||
|
|
@@ -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): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,7 @@ | |
| "cp312", | ||
| "cp313", | ||
| "cp314", | ||
| "cp315", | ||
| } | ||
| ) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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: truenow, right? Or at least that could be a separate PR at this point to be more forward looking.