From ccdda5f77ace187b23ae35eaed0d625dc3171caa Mon Sep 17 00:00:00 2001 From: Alex Vasile <48962821+Alex-Vasile@users.noreply.github.com> Date: Fri, 30 Oct 2026 21:41:29 +0000 Subject: [PATCH] build(tensilelite): require pytest-xdist 3.2 or newer The --dist=worksteal scheduler first appeared in pytest-xdist 3.2. The requirements-test.txt, tox.ini and pyproject.toml lists all allowed pytest-xdist>=1.32.0, so an old cached environment satisfies them and then fails at startup with "argument --dist: invalid choice: 'worksteal'" (checked with xdist 3.1.0). Raise the limit in all three lists to >=3.2, which requirements-test.txt says have to stay equal. The branch that needs it is users/alvasile/unit-tests-xdist-worksteal-8-workers (#14605), which passes --dist=worksteal in the quick and standard categories of test_categories.yaml. Also update the pytest-xdist specifier recorded in uv.lock to match. The locked version (3.8.0) already satisfies it, so no resolved package changes. --- projects/hipblaslt/tensilelite/pyproject.toml | 2 +- projects/hipblaslt/tensilelite/requirements-test.txt | 2 +- projects/hipblaslt/tensilelite/tox.ini | 2 +- projects/hipblaslt/tensilelite/uv.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/hipblaslt/tensilelite/pyproject.toml b/projects/hipblaslt/tensilelite/pyproject.toml index 75843bcc5d16..8bec21ed45b8 100644 --- a/projects/hipblaslt/tensilelite/pyproject.toml +++ b/projects/hipblaslt/tensilelite/pyproject.toml @@ -102,7 +102,7 @@ TensileRetuneLibrary = "tensilelite.TensileRetuneLibrary:main" dev = [ "rocisa", "pytest>=5.4.1", - "pytest-xdist>=1.32.0", + "pytest-xdist>=3.2", "pytest-cov", "syrupy", "filelock", diff --git a/projects/hipblaslt/tensilelite/requirements-test.txt b/projects/hipblaslt/tensilelite/requirements-test.txt index ad498175abb9..67b1375586c7 100644 --- a/projects/hipblaslt/tensilelite/requirements-test.txt +++ b/projects/hipblaslt/tensilelite/requirements-test.txt @@ -11,4 +11,4 @@ numpy>=1.26.0 filelock>=3.0.0 syrupy hip-python; sys_platform != "win32" -pytest-xdist>=1.32.0 +pytest-xdist>=3.2 diff --git a/projects/hipblaslt/tensilelite/tox.ini b/projects/hipblaslt/tensilelite/tox.ini index bdd0321bbd28..b7ec971d154b 100644 --- a/projects/hipblaslt/tensilelite/tox.ini +++ b/projects/hipblaslt/tensilelite/tox.ini @@ -19,7 +19,7 @@ deps = setuptools -r{toxinidir}/requirements.txt pytest>=5.4.1 - pytest-xdist>=1.32.0 + pytest-xdist>=3.2 pytest-timeout==2.4.0 syrupy filelock diff --git a/projects/hipblaslt/tensilelite/uv.lock b/projects/hipblaslt/tensilelite/uv.lock index 4037380757a3..0ffd08d27614 100644 --- a/projects/hipblaslt/tensilelite/uv.lock +++ b/projects/hipblaslt/tensilelite/uv.lock @@ -886,7 +886,7 @@ dev = [ { name = "pre-commit" }, { name = "pytest", specifier = ">=5.4.1" }, { name = "pytest-cov" }, - { name = "pytest-xdist", specifier = ">=1.32.0" }, + { name = "pytest-xdist", specifier = ">=3.2" }, { name = "rocisa", editable = "rocisa" }, { name = "syrupy" }, ]