Repository navigation
smoke: skip in-search fit visualization (311s → 211s per leg) - #47
Merged
Merged
Conversation
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8McPUvDThp9s9JAiZz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
autocti_workspace's smoke coverage grew from 3 to 44 scripts on 2026-11-06, and the leg went from about 38s of scripts to about 315s. Profiling the slowest script,
plot/fpa/imaging_ci/fit.py(40s on CI), shows nearly all of it is in-search fit visualization: pre-fit, per-update and combined subplots for 36 test-mode fits. This profile was the only workspace smoke profile withoutPYAUTO_SKIP_VISUALIZATION.Change
Adds
PYAUTO_SKIP_VISUALIZATION: "1"to the smoke defaults, as autolens/autogalaxy already do. Explicit plot calls in scripts are unaffected. This supersedes the 2026-09-08 choice to keep every in-search plot call in smoke. The maintainer approved that on 2026-11-08 becauseprofile_release.yamlkeeps real visualization (PYAUTO_SKIP_VISUALIZATION: "0"), so release validation still covers it.Verification (local, py3.12, CI runner
.github/scripts/run_smoke.py, freshoutput/)plot/fpa/imaging_ci/fit.pyimaging_ci/modeling/features/cosmic_rays.pyimaging_ci/advanced/chaining/pipelines/parallel.pyplot/ccd/dataset_1d/fit.pyplot/fpa/imaging_ci/database.pystill passes onfit.py's output (38.4s / 38.9s).validate_env_profiles --strict-declarations: 0 errors, 0 warnings.Not changed (noted)
database.py's time goes into rebuilding datasets and fits from sqlite in several loops. That is the example's teaching content, so I left it alone.output/test_mode/plot_fpa.sqlite, but the script removesoutput/plot_fpa.sqlite. A second local run on the same checkout therefore fails withUNIQUE constraint failed: fit.id. CI always starts clean, so this only affects local re-runs.Generated by Claude Code