From: Michal Nowak Date: Thu, 28 May 2026 16:49:04 +0000 (+0200) Subject: [9.20] fix: test: Fix pytest-xdist loadscope splitting on "::" in params X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=1efa52a3f030b8dde7f02baa366dbb173af512c6;p=thirdparty%2Fbind9.git [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 --- 1efa52a3f030b8dde7f02baa366dbb173af512c6