From 5d2a16dc2e3bfc099366812c99d735a849516b8c Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Mon, 23 Nov 2026 11:41:29 +0000 Subject: [PATCH] Remove the released hmf exemption from the Colab gate --- heart/config/colab_gate.yaml | 2 -- tests/test_colab_gate.py | 9 +++------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/heart/config/colab_gate.yaml b/heart/config/colab_gate.yaml index 9c7a41bf..cc0f5fb6 100644 --- a/heart/config/colab_gate.yaml +++ b/heart/config/colab_gate.yaml @@ -20,7 +20,5 @@ accepted_missing: - name: colossus reason: line-of-sight halo tooling in autolens/lens/los.py, installed by the autolens[los] extra and not by the Colab bootstrap. The los_halos simulator notebooks (simulator, simulator_jax) reach it through LOSSampler; on Colab they stop with an ImportError that names colossus and says to pip install autolens[los]. Leaving those two notebooks to stop on Colab was accepted by the human on 2026-11-19, so colossus is deliberately not added to _SHARED_EXTRAS. - - name: hmf - reason: only the released autolens 2026.11.19.1 and earlier import it (autolens/lens/los.py, unguarded); source main moved LOSSampler to colossus (PyAutoLens PRs 867 and 868) and imports no hmf. The continuous check F audits the PyPI release, so this entry stays until a release carrying PR 867 is on PyPI, then is deleted. - name: mcp reason: autofit/mcp/server.py is the MCP server entry point, installed via the autofit[mcp] extra and launched outside notebooks. An unconditional import is correct for a server module, and no notebook imports it. diff --git a/tests/test_colab_gate.py b/tests/test_colab_gate.py index 665ab21e..578678c2 100644 --- a/tests/test_colab_gate.py +++ b/tests/test_colab_gate.py @@ -585,15 +585,13 @@ def test_detail_line_names_the_first_failures_then_counts_the_rest(): # -------------------------------------------------------------------------- -def test_shipped_config_accepts_exactly_the_three_argued_exemptions(): +def test_shipped_config_accepts_exactly_the_two_argued_exemptions(): """The shipped exemption list, read from the real file the gate loads. - Three library-side holes are argued exemptions: `colossus` (the + Two library-side holes are argued exemptions: `colossus` (the line-of-sight tooling in autolens/lens/los.py, behind the autolens[los] extra; the los_halos simulator notebooks reach it and stop on Colab with - a clear ImportError, accepted 2026-11-19), `hmf` (imported only by the - released autolens 2026.11.19.1 and earlier; deleted once a release - without it is on PyPI) and `mcp` (autofit/mcp/server.py, the MCP server + a clear ImportError, accepted 2026-11-19) and `mcp` (autofit/mcp/server.py, the MCP server entry point). Anything else appearing here is a hole in the `--no-deps` bootstrap being quietened rather than fixed, which is what the config file's own header forbids — so the set is asserted exactly, not as a @@ -603,7 +601,6 @@ def test_shipped_config_accepts_exactly_the_three_argued_exemptions(): assert {entry["name"] for entry in config["accepted_missing"]} == { "colossus", - "hmf", "mcp", } # A silent exemption is the failure mode the reason field exists to