Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# 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_PYTHON_VERSIONS = ["3.11", "3.12", "3.13", "3.14"]
CI_PYTHON_VERSIONS = {
"linux": ["3.12"],
"windows": ["3.12"],
Expand Down Expand Up @@ -193,10 +193,10 @@ def generate_pytorch_matrix_for_release_type(
#
# [
# {
# "python_version": "3.10",
# "python_version": "3.11",
# "pytorch_git_ref": "release/2.12",
# "amdgpu_families": "gfx94X-dcgpu",
# "test_level": "none"
# "test_level": "standard"
# },
# ...
# {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ def test_ci_windows_uses_reduced_matrix(self):
],
)

def test_release_defaults_exclude_python310(self):
matrix = m.generate_pytorch_matrix_for_release_type(
release_type="nightly",
amdgpu_families="gfx94X-dcgpu",
platform="linux",
)

self.assertNotIn("3.10", {row["python_version"] for row in matrix})
Comment on lines +75 to +82

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.

Not sure this test is super valuable as-is, we could add similar tests checking that we don't build 3.9, 3.8, 2.7, 4.1234, etc. What's special about 3.10?

We could have a change-detector test checking which versions are built, but all that would really be testing would be the RELEASE_PYTHON_VERSIONS = ["3.11", "3.12", "3.13", "3.14"] list, which is obvious enough to not need a unit test.


def test_explicit_versions_and_refs_narrow_matrix(self):
matrix = m.generate_pytorch_matrix_for_release_type(
release_type="nightly",
Expand Down Expand Up @@ -144,15 +153,15 @@ 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"],
python_versions=["3.11", "3.12", "3.13"],
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.11", "standard"), ("3.12", "none"), ("3.13", "none")],
)

def test_summary_explains_an_all_none_matrix(self):
Expand Down
2 changes: 1 addition & 1 deletion external-builds/pytorch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ detailed instructions. That information is summarized here.

### Prerequisites and setup

You will need a supported Python version (3.10+) on a system for which we build
You will need a supported Python version (3.11+) on a system for which we build
the `rocm[libraries,devel,device-*]` packages. See the
[`RELEASES.md`: Installing releases using pip](../../RELEASES.md#installing-releases-using-pip)
and [Python Packaging](../../docs/packaging/python_packaging.md) documentation
Expand Down
Loading