Skip to content

fix: install autofit[optional] in the smoke leg so blackjax is present - #111

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/validation-searches-env-optax
Jul 27, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/validation-searches-env-optax

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Fixes searches/BlackJAXNUTS.py failing with ModuleNotFoundError: No module named 'blackjax' on every workspace-validation smoke run.

Problem

The smoke leg installs autolens[optional] to pull the transitive dependency set. But the optional extras chain each library's own [jax], never a sibling's [optional]:

autolens[optional] -> autolens[jax] -> autogalaxy[jax] -> autonerves[jax]

so it never reaches autofit[optional], the only place blackjax>=1.2.0 is declared. mode=release already installs autofit[optional]==$TESTPYPI_VERSION explicitly and is unaffected — only the smoke leg was short.

This is the same class of gap as the nufftax install 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 adjacent nufftax precedent.

API Changes

None. CI workflow only — no library code, no packaging metadata, no importable surface.

Verification

  • YAML parses (7 jobs, unchanged).
  • Only the mode=smoke install step changes; the mode=release step is untouched.
  • End-to-end proof is the next scheduled workspace-validation run, 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

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>
@Jammy2211 Jammy2211 added the pending-release Awaiting a published release label Jul 27, 2026
@Jammy2211
Jammy2211 merged commit 1a21359 into main Jul 27, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/validation-searches-env-optax branch July 27, 2026 19:25
@Jammy2211 Jammy2211 removed the pending-release Awaiting a published release label Oct 7, 2026
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