Commit 63a9e7a40c for bind

commit 63a9e7a40cbba1a441e7b4b67554fad9e323413a
Author: Andoni Duarte Pintado <andoni@isc.org>
Date:   Wed Dec 2 18:57:24 2026 +0100

    Keep isctest.mark out of the nsec_synthesis conftest imports

    Import isctest.mark only in the test modules that use the mark, i.e.
    after pytest_configure has already run. Otherwise, when running via
    "make check" the test fails with a KeyError because the conftest imports
    isctest.mark through common.py, and isctest.mark reads TOP_BUILDDIR from
    the environment before it is set by pytest_configure.

diff --git a/bin/tests/system/nsec_synthesis/common.py b/bin/tests/system/nsec_synthesis/common.py
index 99ab5d85a8..120b4e3e0f 100644
--- a/bin/tests/system/nsec_synthesis/common.py
+++ b/bin/tests/system/nsec_synthesis/common.py
@@ -15,7 +15,6 @@ import dns.rdatatype
 import pytest

 import isctest
-import isctest.mark
 import isctest.template
 import isctest.zone

@@ -30,8 +29,6 @@ ARTIFACTS = pytest.mark.extra_artifacts(
     ]
 )

-SIGNED_ZONE_MARKS = [isctest.mark.with_ecdsa_deterministic, ARTIFACTS]
-
 F004_ZONE = "f004.test."
 F004_VICTIM = f"victim.{F004_ZONE}"
 F004_VICTIM_A = "203.0.113.1"
diff --git a/bin/tests/system/nsec_synthesis/tests_nsec_child_next.py b/bin/tests/system/nsec_synthesis/tests_nsec_child_next.py
index 9415bb8966..472e3317fe 100644
--- a/bin/tests/system/nsec_synthesis/tests_nsec_child_next.py
+++ b/bin/tests/system/nsec_synthesis/tests_nsec_child_next.py
@@ -12,14 +12,15 @@
 import pytest

 from nsec_synthesis.common import (
+    ARTIFACTS,
     F023_ZONE,
-    SIGNED_ZONE_MARKS,
     check_forged_nsec,
     get_nsec,
     has_a,
 )

 import isctest
+import isctest.mark
 import isctest.template
 import isctest.zone

@@ -29,7 +30,7 @@ POISON_NEXT = f"zzz.{F023_ZONE}"
 TARGET = f"target.{F023_ZONE}"
 TARGET_A = "192.0.2.77"

-pytestmark = SIGNED_ZONE_MARKS
+pytestmark = [isctest.mark.with_ecdsa_deterministic, ARTIFACTS]


 def bootstrap():
diff --git a/bin/tests/system/nsec_synthesis/tests_nsec_exact_nodata.py b/bin/tests/system/nsec_synthesis/tests_nsec_exact_nodata.py
index 8634e080da..0dabead7db 100644
--- a/bin/tests/system/nsec_synthesis/tests_nsec_exact_nodata.py
+++ b/bin/tests/system/nsec_synthesis/tests_nsec_exact_nodata.py
@@ -10,10 +10,10 @@
 # information regarding copyright ownership.

 from nsec_synthesis.common import (
+    ARTIFACTS,
     F004_VICTIM,
     F004_VICTIM_A,
     F004_ZONE,
-    SIGNED_ZONE_MARKS,
     check_forged_nsec,
     f004_bootstrap,
     get_nsec,
@@ -21,10 +21,11 @@ from nsec_synthesis.common import (
 )

 import isctest
+import isctest.mark

 POISON_NEXT = f"z.{F004_ZONE}"

-pytestmark = SIGNED_ZONE_MARKS
+pytestmark = [isctest.mark.with_ecdsa_deterministic, ARTIFACTS]


 def bootstrap():
diff --git a/bin/tests/system/nsec_synthesis/tests_nsec_pending_cd.py b/bin/tests/system/nsec_synthesis/tests_nsec_pending_cd.py
index b7b44380d8..4c9c8468b2 100644
--- a/bin/tests/system/nsec_synthesis/tests_nsec_pending_cd.py
+++ b/bin/tests/system/nsec_synthesis/tests_nsec_pending_cd.py
@@ -10,10 +10,10 @@
 # information regarding copyright ownership.

 from nsec_synthesis.common import (
+    ARTIFACTS,
     F004_VICTIM,
     F004_VICTIM_A,
     F004_ZONE,
-    SIGNED_ZONE_MARKS,
     check_forged_nsec,
     f004_bootstrap,
     get_nsec,
@@ -21,11 +21,12 @@ from nsec_synthesis.common import (
 )

 import isctest
+import isctest.mark

 ATTACKER = f"attacker.{F004_ZONE}"
 POISON_NEXT = f"b.{F004_VICTIM}"

-pytestmark = SIGNED_ZONE_MARKS
+pytestmark = [isctest.mark.with_ecdsa_deterministic, ARTIFACTS]


 def bootstrap():