Skip to content

smoke: skip in-search fit visualization (311s → 211s per leg) - #47

Merged
Jammy2211 merged 1 commit into
mainfrom
ccr-eef5e2b2-t0z1tp
Nov 8, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
ccr-eef5e2b2-t0z1tp

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

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 without PYAUTO_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 because profile_release.yaml keeps real visualization (PYAUTO_SKIP_VISUALIZATION: "0"), so release validation still covers it.

Verification (local, py3.12, CI runner .github/scripts/run_smoke.py, fresh output/)

before after
whole leg 311s, 44/44 pass 211s, 44/44 pass
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, 0 warnings.

Not changed (noted)

  • About 55% of 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.
  • In test mode the database is created at output/test_mode/plot_fpa.sqlite, but the script removes output/plot_fpa.sqlite. A second local run on the same checkout therefore fails with UNIQUE constraint failed: fit.id. CI always starts clean, so this only affects local re-runs.

Generated by Claude Code

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
@Jammy2211
Jammy2211 merged commit a4c1121 into main Nov 8, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the ccr-eef5e2b2-t0z1tp branch November 8, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants