From 3eaf95e5d31349e33ac24ddf595be2cc645efbf4 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 23 Jul 2026 12:35:07 +0100 Subject: [PATCH] chore: remove 28 zero-match no_run entries and 5 dead env_vars overrides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 28 of this repo's 30 no_run.yaml entries matched zero files, as did all 5 env_vars.yaml override patterns. They were copied in from autolens_workspace: 18 of the dead no_run entries and all 5 override patterns name files that exist only in that repo. HowToLens contains only chapter_*/tutorial_*.py, so a workspace path such as `gui/mask` or `imaging/start_here` can never match here — it is silently inert, not a skip. Keeps the only two live entries, `tutorial_searches` and `tutorial_5_borders`. `overrides: []` is written explicitly rather than left as a bare key, because env_config.py reads `.get("overrides", [])` and an empty key loads as None, which would raise on iteration. Behaviour-neutral: for all 47 scripts here the resolved should_skip set and the resolved build_env_for_script dict are identical before and after, since every removed entry matched zero files. Closes part of PyAutoLabs/HowToLens#46 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_011ZVaiShnRkv1xbQBegGK1N --- config/build/env_vars.yaml | 35 +++++++++++++++-------------------- config/build/no_run.yaml | 36 ++++++++---------------------------- 2 files changed, 23 insertions(+), 48 deletions(-) diff --git a/config/build/env_vars.yaml b/config/build/env_vars.yaml index 47ffaac..751277c 100644 --- a/config/build/env_vars.yaml +++ b/config/build/env_vars.yaml @@ -20,23 +20,18 @@ defaults: NUMBA_CACHE_DIR: "/tmp/numba_cache" # Writable cache dir for numba MPLCONFIGDIR: "/tmp/matplotlib" # Writable config dir for matplotlib -overrides: - # start_here scripts load real FITS data that breaks with small datasets - - pattern: "imaging/start_here" - unset: [PYAUTO_SMALL_DATASETS] - - pattern: "interferometer/start_here" - unset: [PYAUTO_SMALL_DATASETS] - - pattern: "group/start_here" - unset: [PYAUTO_SMALL_DATASETS] - - pattern: "multi/start_here" - unset: [PYAUTO_SMALL_DATASETS] - # (Removed the dead `howtolens/` + `guides/` PYAUTO_SMALL_DATASETS-unset - # workarounds: they matched no files here, and the tutorials now use - # `al.util.dataset.should_simulate` which deletes + re-simulates stale - # data under the cap, so the chapters run correctly at 16x16.) - # guides/results/start_here.py must produce real samples so the example - # scripts that read from `output/results_folder` afterwards - # (data_fitting, queries, models, samples_via_aggregator) find a - # non-empty aggregator. Covers all scripts under guides/results/. - - pattern: "guides/results/" - unset: [PYAUTO_TEST_MODE, PYAUTO_SKIP_FIT_OUTPUT] +# (Removed the dead `howtolens/` + `guides/` PYAUTO_SMALL_DATASETS-unset +# workarounds: they matched no files here, and the tutorials now use +# `al.util.dataset.should_simulate` which deletes + re-simulates stale +# data under the cap, so the chapters run correctly at 16x16.) +# +# 2026-07-23: the remaining five overrides were removed for the same reason — +# `imaging/start_here`, `interferometer/start_here`, `group/start_here`, +# `multi/start_here` and `guides/results/` are all autolens_workspace paths +# copied in from that repo's env_vars.yaml. HowToLens contains only +# chapter_*/tutorial_*.py, so none of them ever matched a file here. +# Do not copy override patterns between repos; a pattern that matches nothing +# is silently inert, not an override. The list is now empty, and `overrides: []` +# is written explicitly because env_config.py reads `.get("overrides", [])` — +# a bare `overrides:` key would load as None and raise on iteration. +overrides: [] diff --git a/config/build/no_run.yaml b/config/build/no_run.yaml index dd9d4c1..adfced4 100644 --- a/config/build/no_run.yaml +++ b/config/build/no_run.yaml @@ -4,6 +4,14 @@ # - Entries without '/' match the file stem exactly # Add an inline # comment to document the reason for skipping. # +# THIS LIST IS REPO-LOCAL. Do not copy entries from autolens_workspace (or any +# other repo) into it. HowToLens contains only chapter_*/tutorial_*.py, so a +# workspace path such as `gui/mask` or `cluster/modeling` can never match here; +# it is silently inert, not a skip. In July 2026 this file had accumulated 28 +# such entries against 2 real ones. Every entry below must match a file in THIS +# repo — verify with `should_skip` in PyAutoHands/autobuild/build_util.py before +# adding one. +# # SLOW-skip convention: # Entries tagged `# SLOW - ` mark scripts that are # skipped because they exceed the per-script timeout cap (300s by @@ -19,32 +27,4 @@ # the NEEDS_FIX marker. - tutorial_searches -- guides/results/examples/samples # SLOW 2026-04-10 - exceeds 60s test timeout; unsets TEST_MODE for downstream examples -- guides/results/examples/samples_via_aggregator # SLOW 2026-04-10 - exceeds 60s test timeout; unsets TEST_MODE for downstream examples -- guides/results/examples/queries # SLOW 2026-04-10 - cascade from SLOW-skipped results/start_here.py; stub Model lacks sersic_index attribute -- guides/results/database/start_here # SLOW 2026-04-10 - previously failed fast on a broken aggregator query; now runs the real aggregator and exceeds 60s - tutorial_5_borders # Cant get right masks, need proper update. -- tutorial_6_model_fit # InversionException due to test mode -- gui/extra_galaxies_centres # GUI scripts cannot be run -- gui/mask_extra_galaxies # GUI scripts cannot be run -- gui/lens_light_centre # GUI scripts cannot be run -- gui/mask # GUI scripts cannot be run -- gui/positions # GUI scripts cannot be run -- deflections # Output HDU not supported for VectorYX Detections. -- deflections_source_snr # Output HDU not supported for VectorYX Detections. -- fits_make # Test mode does not output .fits images. -- png_make # Test mode does not output .png images. -- time_delays # Test mode does not support cosmology ift -- hpc/example_cpu # HPC paths dont exist locally. -- examples/searches # Test mode breaks search visualization. -- data_fitting # Test mode breaks .fits file output -- cluster/modeling # Cluster modeling is not maintained and test mode breaks it. -- cluster/start_here # Cluster analysis is not maintained and test mode breaks it. -- mass_stellar_dark/modeling # Requires CSE to be JAX enabled. -- mass_stellar_dark/slam # Requires CSE to be JAX enabled. -- shapelets/modeling # Issue with JAX, claude remind me about this when you next look at build. -- detect/database # Unsure but not a feature actively used currently. -- imaging/features/advanced/subhalo/sensitivity/ # All sensitivity scripts need updating when visualization refactored. -- plot/visuals # Bugged, but visuals being refactored soon. -- point_source/features/double_einstein_cross/simulator # PointSolver finds 0 positions on small grid -- dataset/imaging/slacs1430+4105 # Dataset folder contains data.py helper, not a runnable script