From c2f9f8bdd43001e94fffe0414cd10a010ac90df7 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sat, 17 Oct 2026 12:46:11 -0700 Subject: [PATCH] fix: prior stable test ids --- test_autofit/mapper/prior/test_prior_properties.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test_autofit/mapper/prior/test_prior_properties.py b/test_autofit/mapper/prior/test_prior_properties.py index f4413c013..250a326d1 100644 --- a/test_autofit/mapper/prior/test_prior_properties.py +++ b/test_autofit/mapper/prior/test_prior_properties.py @@ -61,7 +61,14 @@ def all_priors(): def prior_id(prior): - return f"{type(prior).__name__}({prior.message})" + # Message reprs may contain process-local addresses, which make xdist + # workers collect different node IDs. Configuration is stable across workers. + parameters = ",".join( + f"{name}={value}" + for name, value in sorted(prior.dict().items()) + if name not in {"id", "type"} + ) + return f"{type(prior).__name__}({parameters})" def support_window(prior, tail=1e-11):