test: flip features/assertion smoke to PYAUTO_TEST_MODE=1 (~67s → ~6s)#13
Merged
test: flip features/assertion smoke to PYAUTO_TEST_MODE=1 (~67s → ~6s)#13
Conversation
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]>
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.
Summary
Flip the
features/assertionenv_vars override fromunset: [PYAUTO_TEST_MODE](mode 0, full real sampler, ~67–107s) toset: PYAUTO_TEST_MODE: "1"(reduced iterations, real sampler, ~6s).Why
Requires the companion library fix in PyAutoLabs/PyAutoFit#1233. Before that fix,
TEST_MODE=1was flaky (~1-in-2 CI runs crashed) because Dynesty'ssample_listsometimes contained assertion-violating samples that crashedcompute_latent_samplespost-fit. PyAutoFit#1233 makes the latent computation per-sample tolerant ofFitException, soTEST_MODE=1is 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
run_smoke.pyruns → all 9/9 pass,features/assertion.py4–9s each🤖 Generated with Claude Code