Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions heart/config/colab_gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
9 changes: 3 additions & 6 deletions tests/test_colab_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading