You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing new release tag blocking upgrade to pytest 9.2.0 breaking loadgroup working #1407
Missing new release tag here on fresh master is blocking upgrade to pytest 9.2.0 breaking loadgroup working, so please distribute new tag on latest master
Reacted by Jakub Gladykowski, Grzegorz Śliwiński, Eric Buehl, Tobias Genannt, Philip de Rijk, Daniił M., Lars Evje, Daniel Haag, Mike J, Srikanth and 9 more
Hit this while developing qikly, on pytest 9.2.0 with pytest-xdist 3.8.0:
grouped tests were spread across workers with no warning, and tests that
share files started failing intermittently.
Pin pytest<9.2. With xdist 3.8.0, pytest 9.0.0, 9.1.0 and 9.1.1 still
group correctly.
Or stay on 9.2 and add this hook to conftest.py. It tags grouped tests
the way --dist loadgroup expects, through the node id pytest 9.2 reads,
and runs after xdist's own hook, so on older pytest it leaves tests xdist
has already tagged alone:
importpytest@pytest.hookimpl(trylast=True) # after xdist's own hook, which tags on pytest < 9.2defpytest_collection_modifyitems(config, items):
ifnotgetattr(config.option, "loadgroup", False):
returnforiteminitems:
names=sorted({str(m.args[0] ifm.argselsem.kwargs.get("name", "default"))
forminitem.iter_markers("xdist_group")})
nodeid=item.nodeidifnotnamesornodeid.rfind("@") >nodeid.rfind("]"): # already taggedcontinuetagged="%s@%s"% (nodeid, "_".join(names))
ifhasattr(item, "_id"): # pytest 9.2+from_pytest.nodeidimportcoerce_node_iditem._id=coerce_node_id(tagged)
else:
item._nodeid=tagged
Like xdist itself, it relies on pytest internals, so it is a stopgap to
delete after the next release. Checked on small reproductions, including parametrize ids containing "@"
and a test in two groups: with it, each group ran on one worker on pytest
9.2.0 and 8.4.2.
Found and checked with the help of an AI coding assistant.
Not blocking, but nice to have in the same release: #1413 (loadscope scope parsing for ids containing ::) and #1414 (keep the worker interpreter's own sys.path).
Activity
justmike1 commentedon Nov 2, 2026
test: run the suite in parallel with pytest-xdist (#3098)
chore(deps): keep pytest at 9.1.1
chore(deps): bump the python group in /code_source with 10 updates (#96)
Cap `pytest` below `9.2`, which breaks `--dist=loadgroup` grouping
pytestupper bound afterpytest-xdistrelease munich-quantum-toolkit/ddsim#1066Serialize the docs build of the cross-reference tests
gal-a commentedon Nov 11, 2026
Hit this while developing qikly, on pytest 9.2.0 with pytest-xdist 3.8.0:
grouped tests were spread across workers with no warning, and tests that
share files started failing intermittently.
Until a release includes #1388, two workarounds:
pytest<9.2. With xdist 3.8.0, pytest 9.0.0, 9.1.0 and 9.1.1 stillgroup correctly.
conftest.py. It tags grouped teststhe way
--dist loadgroupexpects, through the node id pytest 9.2 reads,and runs after xdist's own hook, so on older pytest it leaves tests xdist
has already tagged alone:
Like xdist itself, it relies on pytest internals, so it is a stopgap to
delete after the next release. Checked on small reproductions, including parametrize ids containing "@"
and a test in two groups: with it, each group ran on one worker on pytest
9.2.0 and 8.4.2.
Found and checked with the help of an AI coding assistant.
RonnyPfannschmidt commentedon Nov 11, 2026
i started to follow up on what we need to put it to be able to release - as soon as possibe
build(deps): bump soupsieve to 4.1 and require python >=3.11.5 (#906)
Tests: run in parallel (4 xdist workers) and in random order on CI
build(deps): bump the python group, holding pytest at 9.1.1
rgant commentedon Nov 16, 2026
@RonnyPfannschmidt Any thing we can do to help get the next release cut?
Tests: run in parallel (4 xdist workers) and in random order on CI
Tests: run in parallel (4 xdist workers) and in random order on CI
RonnyPfannschmidt commentedon Nov 17, 2026
🤖 Written by Claude Opus 5.5 via Claude Code for the pytest-xdist maintainers; I prompted it, it did the work, I read it.
Release checklist for the next pytest-xdist release, which brings the pytest 9.2 loadgroup fix:
_nodeid. This is the pytest 9.2 fix, and it is merged.--dist loadgroupis combined with any-k/-mthat deselects tests (loadgroup crashes after late collection deselection #1399). Merged.add_node_collectionworking. Since Fix loadgroup with pytest main node IDs #1388, they fail withTypeErrorunder every--distmode.Not blocking, but nice to have in the same release: #1413 (loadscope scope parsing for ids containing
::) and #1414 (keep the worker interpreter's ownsys.path).Generated by Claude Code
Tests: run in parallel (4 xdist workers) and in random order on CI
Stop the parallel integration run from exhausting memory by running r…
Work around pytest-dev/pytest-xdist#1407
checks: split scripts/check into --lint/--tests/--docs, run pytest on…
build(deps): hold pytest at 9.1.1 until pytest-xdist supports 9.2
Work around pytest-dev/pytest-xdist#1407
Miscellaneous CI fixes for 2026-W47 (#1050)
chore(deps-dev): hold pytest below 9.2
Repin what the tool update moved and keep pytest below 9.2