From 2d2775154c7a7aa20d5e6c7eddbf787498637617 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 11 Nov 2026 13:23:31 +0000 Subject: [PATCH 1/2] ci: validate workspaces on jax/jaxlib >=0.12.0,<0.13 (PyAutoNerves#215) The three source-mode legs of workspace-validation.yml forced jax 0.11.2, which deadlocks XLA:CPU likelihoods (PyAutoNerves#213; DNA decision jax-cpu-policy-2026-11). Move them to the approved range so workspace validation runs the source stack on jax 0.12. The eigen flag (~line 427) is left for the separate workaround-removal task. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/workspace-validation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workspace-validation.yml b/.github/workflows/workspace-validation.yml index 39e783f0..470cf6cd 100644 --- a/.github/workflows/workspace-validation.yml +++ b/.github/workflows/workspace-validation.yml @@ -290,7 +290,7 @@ jobs: # below shadow the PyAuto packages via PYTHONPATH. pip install "autolens[optional]" # 0.10.2 can deadlock in batched LAPACK; see docs/release_validation.md. - pip install "jax>=0.11.2,<0.12" "jaxlib>=0.11.2,<0.12" + pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" # nufftax backs the interferometer TransformerNUFFT and is NOT pulled # transitively by autolens[optional]; without it every interferometer # simulator (and its downstream scripts) fails fast. Matches the pin @@ -363,7 +363,7 @@ jobs: # Belt-and-braces JAX install — the [optional] -> [jax] chain # occasionally silently drops jax from test.pypi resolution. # 0.10.2 can deadlock in batched LAPACK; see docs/release_validation.md. - pip install "jax>=0.11.2,<0.12" "jaxlib>=0.11.2,<0.12" + pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" pip install "nufftax>=0.6.1,<0.7.0" - name: "Run Python scripts [mode=smoke, source-shadowed, smoke profile]" if: needs.find_scripts.outputs.mode == 'smoke' @@ -605,7 +605,7 @@ jobs: run: | pip install "autolens[optional]" # 0.10.2 can deadlock in batched LAPACK; see docs/release_validation.md. - pip install "jax>=0.11.2,<0.12" "jaxlib>=0.11.2,<0.12" + pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" pip install "nufftax>=0.6.1,<0.7.0" pip install jupyter ipynb-py-convert - name: Run notebooks From c891cfc1867701209d8c2d66e0c71d0613fda48a Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 11 Nov 2026 13:59:32 +0000 Subject: [PATCH 2/2] ci: re-pin jax last and assert 0.12 in the source-mode install steps Workspace smoke run 43028717151 showed the mid-step pin installed jax 0.12.0.1 and a later 'pip install autofit[optional]' (released autonerves metadata, jax<0.12) silently downgraded it to 0.11.2, so the old 0.11.2 pin never held either. Pin last in each step and assert the version, so a downgrade fails the job instead of passing on the wrong jax. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/workspace-validation.yml | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workspace-validation.yml b/.github/workflows/workspace-validation.yml index 470cf6cd..1b9b20d4 100644 --- a/.github/workflows/workspace-validation.yml +++ b/.github/workflows/workspace-validation.yml @@ -289,8 +289,6 @@ jobs: # installing the published autolens[optional]; the source checkouts # below shadow the PyAuto packages via PYTHONPATH. pip install "autolens[optional]" - # 0.10.2 can deadlock in batched LAPACK; see docs/release_validation.md. - pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" # nufftax backs the interferometer TransformerNUFFT and is NOT pulled # transitively by autolens[optional]; without it every interferometer # simulator (and its downstream scripts) fails fast. Matches the pin @@ -323,6 +321,12 @@ jobs: # addition to autoarray[optional] is caught by the Brain's # `hygiene extras` scan instead, which reads the SOURCE pyproject. pip install "tfp-nightly==0.26.0.dev20260713" + # Re-pin jax LAST and assert it (PyAutoNerves#215). A published extra + # installed later in the step (e.g. autofit[optional]) resolves the RELEASED + # autonerves metadata, which capped jax<0.12, and silently downgraded jax + # back to 0.11.2, so the old mid-step pin never held. Fail loudly instead. + pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" + python -c "import jax, jaxlib; assert jax.__version__.startswith('0.12.') and jaxlib.__version__.startswith('0.12.'), (jax.__version__, jaxlib.__version__); print('jax', jax.__version__, 'jaxlib', jaxlib.__version__)" - name: "Install TestPyPI wheels — NO source on PYTHONPATH [mode=release]" if: needs.find_scripts.outputs.mode == 'release' env: @@ -362,9 +366,13 @@ jobs: pip install numba # Belt-and-braces JAX install — the [optional] -> [jax] chain # occasionally silently drops jax from test.pypi resolution. - # 0.10.2 can deadlock in batched LAPACK; see docs/release_validation.md. - pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" pip install "nufftax>=0.6.1,<0.7.0" + # Re-pin jax LAST and assert it (PyAutoNerves#215). A published extra + # installed later in the step (e.g. autofit[optional]) resolves the RELEASED + # autonerves metadata, which capped jax<0.12, and silently downgraded jax + # back to 0.11.2, so the old mid-step pin never held. Fail loudly instead. + pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" + python -c "import jax, jaxlib; assert jax.__version__.startswith('0.12.') and jaxlib.__version__.startswith('0.12.'), (jax.__version__, jaxlib.__version__); print('jax', jax.__version__, 'jaxlib', jaxlib.__version__)" - name: "Run Python scripts [mode=smoke, source-shadowed, smoke profile]" if: needs.find_scripts.outputs.mode == 'smoke' env: @@ -604,10 +612,14 @@ jobs: if: steps.gate.outputs.run == 'true' run: | pip install "autolens[optional]" - # 0.10.2 can deadlock in batched LAPACK; see docs/release_validation.md. - pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" pip install "nufftax>=0.6.1,<0.7.0" pip install jupyter ipynb-py-convert + # Re-pin jax LAST and assert it (PyAutoNerves#215). A published extra + # installed later in the step (e.g. autofit[optional]) resolves the RELEASED + # autonerves metadata, which capped jax<0.12, and silently downgraded jax + # back to 0.11.2, so the old mid-step pin never held. Fail loudly instead. + pip install "jax>=0.12.0,<0.13" "jaxlib>=0.12.0,<0.13" + python -c "import jax, jaxlib; assert jax.__version__.startswith('0.12.') and jaxlib.__version__.startswith('0.12.'), (jax.__version__, jaxlib.__version__); print('jax', jax.__version__, 'jaxlib', jaxlib.__version__)" - name: Run notebooks if: steps.gate.outputs.run == 'true' run: |