From 42e99272f0d75a03f0e55c891dfc446adef8fcfb Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 8 Nov 2026 17:58:23 +0000 Subject: [PATCH] smoke: skip in-search fit visualization (311s -> 211s per leg) Adds PYAUTO_SKIP_VISUALIZATION: "1" to the smoke defaults, matching the autolens / autogalaxy smoke profiles. Explicit plot calls in scripts are unaffected; only the search's own pre-fit, per-update and combined visualization is skipped. The maintainer chose this on 2026-11-08, superseding the 2026-09-08 choice to keep every in-search plot call in smoke. The release profile keeps real visualization (PYAUTO_SKIP_VISUALIZATION: "0"), so the release run still covers it. Measured locally (py3.12, the CI runner .github/scripts/run_smoke.py, fresh output/ each run): whole leg 311s -> 211s, 44/44 pass both ways plot/fpa/imaging_ci/fit.py 40.0s -> 9.7s imaging_ci/modeling/features/cosmic_rays.py 21.5s -> 13.3s imaging_ci/advanced/chaining/pipelines/parallel.py 14.9s -> 5.6s plot/ccd/dataset_1d/fit.py 11.0s -> 3.6s plot/fpa/imaging_ci/database.py still passes on fit.py's output (38.4s / 38.9s). validate_env_profiles --strict-declarations: 0 errors. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016nhQ8McPUvDThp9s9JAiZz --- config/build/profile_smoke.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/build/profile_smoke.yaml b/config/build/profile_smoke.yaml index 9723e46..2c92bb1 100644 --- a/config/build/profile_smoke.yaml +++ b/config/build/profile_smoke.yaml @@ -18,6 +18,16 @@ defaults: # 2026-09-08): ~17s of image rasterisation + ~20-40s of per-figure mask-edge # derivation on the 2000x100 frame, across ~100 on-the-fly figures per run. PYAUTO_FAST_PLOTS: "1" + # Skip the in-search fit visualization (pre-fit, per-update and combined + # subplots), as the autolens / autogalaxy smoke profiles do. Explicit plot + # calls in scripts are unaffected. This supersedes the 2026-09-08 choice to + # keep exercising every in-search plot call in smoke: the release profile + # keeps real visualization (PYAUTO_SKIP_VISUALIZATION: "0"), so the release + # run still covers it. Measured locally (py3.12, PyAutoBrain /ci_speedup, + # 2026-11-08), whole smoke leg 311s -> 211s with all 44 scripts passing; + # plot/fpa/imaging_ci/fit.py 40.0s -> 9.7s, cosmic_rays 21.5s -> 13.3s, + # chaining/pipelines/parallel 14.9s -> 5.6s. + PYAUTO_SKIP_VISUALIZATION: "1" MPLBACKEND: "Agg" NUMBA_CACHE_DIR: "/tmp/numba_cache" MPLCONFIGDIR: "/tmp/matplotlib"