From 675ba2df031ffe085b3385528f4fb373f71e8cf4 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Mon, 27 Jul 2026 18:58:01 +0100 Subject: [PATCH] fix: install autofit[optional] in the smoke leg so blackjax is present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/workspace-validation.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/workspace-validation.yml b/.github/workflows/workspace-validation.yml index 077cb0ce..ba31b08b 100644 --- a/.github/workflows/workspace-validation.yml +++ b/.github/workflows/workspace-validation.yml @@ -246,6 +246,12 @@ jobs: # simulator (and its downstream scripts) fails fast. Matches the pin # PyAutoArray declares (jax 0.10.x + nufftax 0.4.x is the tested combo). pip install "nufftax>=0.4.0,<0.5.0" + # blackjax backs autofit_test's searches/BlackJAXNUTS and is NOT pulled + # transitively either: the `optional` extras chain each library's own + # [jax], never a sibling's [optional], so autolens[optional] never + # reaches autofit[optional]. mode=release below already installs + # autofit[optional] explicitly — this gives the smoke leg parity. + pip install "autofit[optional]" - name: "Install TestPyPI wheels — NO source on PYTHONPATH [mode=release]" if: needs.find_scripts.outputs.mode == 'release' env: