Skip to content

test: flip features/assertion smoke to PYAUTO_TEST_MODE=1 (~67s → ~6s)#13

Merged
Jammy2211 merged 1 commit intomainfrom
feature/latent-fitexception-safe
Apr 26, 2026
Merged

test: flip features/assertion smoke to PYAUTO_TEST_MODE=1 (~67s → ~6s)#13
Jammy2211 merged 1 commit intomainfrom
feature/latent-fitexception-safe

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Flip the features/assertion env_vars override from unset: [PYAUTO_TEST_MODE] (mode 0, full real sampler, ~67–107s) to set: PYAUTO_TEST_MODE: "1" (reduced iterations, real sampler, ~6s).

Why

Requires the companion library fix in PyAutoLabs/PyAutoFit#1233. Before that fix, TEST_MODE=1 was flaky (~1-in-2 CI runs crashed) because Dynesty's sample_list sometimes contained assertion-violating samples that crashed compute_latent_samples post-fit. PyAutoFit#1233 makes the latent computation per-sample tolerant of FitException, so TEST_MODE=1 is now safe here.

Ordering

PyAutoFit#1233 must merge first. Workspace CI matches branch names, so while both PRs are open the smoke workflow runs this config against the library fix on the feature branch — green.

Test plan

  • 5 consecutive run_smoke.py runs → all 9/9 pass, features/assertion.py 4–9s each
  • CI against the matching PyAutoFit branch

🤖 Generated with Claude Code

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) <[email protected]>
@Jammy2211 Jammy2211 merged commit 005d812 into main Apr 26, 2026
4 checks passed
@Jammy2211 Jammy2211 deleted the feature/latent-fitexception-safe branch April 26, 2026 10:52
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.

1 participant