]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] fix: test: Fix pytest-xdist loadscope splitting on "::" in params
authorMichal Nowak <mnowak@isc.org>
Thu, 28 May 2026 16:49:04 +0000 (18:49 +0200)
committerMichal Nowak <mnowak@isc.org>
Thu, 28 May 2026 16:49:04 +0000 (18:49 +0200)
commit1efa52a3f030b8dde7f02baa366dbb173af512c6
treefa186a1a9d9ee032098b98370bf99b1dacd76966
parent789ae5a98294273f46f7b78b43e80ca9e6315c1c
parent5f7684537fb8c932a472599a5618d2b0ffb545fe
[9.20] fix: test: Fix pytest-xdist loadscope splitting on "::" in params

LoadScopeScheduling._split_scope() uses rsplit("::", 1) to
extract the test file scope from a node ID.  When parametrized
test values contain "::" (IPv6 addresses like "cafe:cafe::cafe"
or "::1"), the split lands inside the parameter instead of at
the .py:: boundary.  This creates spurious scopes that get
assigned to different workers, each triggering a full fixture
setup (starting named instances).

Override _split_scope() in conftest.py to split on ".py::"
which is unambiguous.

Six tests in synthrecord/tests_synthrecord.py are affected.
A verification script is included in util/.

Assisted-by: Claude:claude-opus-4-7
Backport of MR !12103

Merge branch 'backport-mnowak/fix-xdist-loadscope-split-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!12137