Repository navigation
fix: install autofit[optional] in the smoke leg so blackjax is present - #111
Merged
Merged
Conversation
searches/BlackJAXNUTS.py failed with ModuleNotFoundError: No module named 'blackjax' on every workspace-validation smoke run. blackjax is declared only in autofit[optional], and the optional extras chain each library's own [jax] rather than a sibling's [optional] — so autolens[optional] never reaches it. mode=release already installs autofit[optional]==$TESTPYPI_VERSION explicitly; this gives the smoke leg the same parity, alongside the existing nufftax install that exists for the same 'not pulled transitively' reason. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Fixes
searches/BlackJAXNUTS.pyfailing withModuleNotFoundError: No module named 'blackjax'on everyworkspace-validationsmoke run.Problem
The smoke leg installs
autolens[optional]to pull the transitive dependency set. But theoptionalextras chain each library's own[jax], never a sibling's[optional]:so it never reaches
autofit[optional], the only placeblackjax>=1.2.0is declared.mode=releasealready installsautofit[optional]==$TESTPYPI_VERSIONexplicitly and is unaffected — only the smoke leg was short.This is the same class of gap as the
nufftaxinstall directly above, which exists for exactly this "not pulled transitively" reason.Change
Add
pip install "autofit[optional]"to the smoke install step, commented in the style of the adjacentnufftaxprecedent.API Changes
None. CI workflow only — no library code, no packaging metadata, no importable surface.
Verification
mode=smokeinstall step changes; themode=releasestep is untouched.workspace-validationrun, read via the Actions API.Companion PRs
The same red shard has an independent second cause — two scripts missing their
__Env__declaration. Fixed in autofit_workspace_test #78, with the optax half of the dependency gap in PyAutoGalaxy #530. All three are needed for a green shard.Refs PyAutoLabs/autofit_workspace_test#77