From f2c65070323d09003eb6ba366e4d50b0e3c6ef8b Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 24 Apr 2026 20:16:43 +0100 Subject: [PATCH] test: flip features/assertion smoke back to PYAUTO_TEST_MODE=1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that PyAutoFit#1233 tolerates per-sample FitException in compute_latent_samples, the features/assertion smoke can run in reduced- iteration real-sampler mode without the previous post-fit updater crash. Runtime drops from ~67–107s (mode 0, full real fit) to ~6s (mode 1, reduced iterations). Co-Authored-By: Claude Opus 4.7 (1M context) --- config/build/env_vars.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config/build/env_vars.yaml b/config/build/env_vars.yaml index 8b68b2c..4402ddc 100644 --- a/config/build/env_vars.yaml +++ b/config/build/env_vars.yaml @@ -35,8 +35,10 @@ overrides: # (e.g. gaussian_0.centre > gaussian_1.centre). Bypass mode (TEST_MODE=2) # uses a midpoint unit vector so both parameters get identical values, # violating the assertion and raising FitException before the likelihood - # is called. Run with no test mode (real sampler) instead — TEST_MODE=1 - # reduces iterations but can leave assertion-violating samples in the - # posterior that then crash compute_latent_variables post-fit. + # is called. Use TEST_MODE=1 (reduced iterations, real sampler) — the + # library's compute_latent_samples now tolerates per-sample FitException, + # so assertion-violating posterior samples are skipped rather than + # crashing the post-fit updater. - pattern: "features/assertion" - unset: [PYAUTO_TEST_MODE] + set: + PYAUTO_TEST_MODE: "1"