Skip to content

ci: adopt the notebook SystemExit(0) skip-guard classifier (PyAutoHands#198) - #119

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/g-heart-green-fable-opus-uuiaqf
Jul 25, 2026
Merged

ci: adopt the notebook SystemExit(0) skip-guard classifier (PyAutoHands#198)#119
Jammy2211 merged 1 commit into
mainfrom
claude/g-heart-green-fable-opus-uuiaqf

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Rolls the PyAutoHands#198 adoption into this repo's run_smoke.py copy: notebooks that exit via the optional-dependency skip guard (sys.exit(0) — e.g. searches/mcmc.ipynb without blackjax) now PASS instead of erroring the cell, matching the .py semantics. Two-line change importing build_util.is_clean_skip_exit (PyAutoHands is already on PYTHONPATH here); the skip check short-circuits ahead of the regenerate-and-retry path; nonzero exits and real errors still FAIL (verified end-to-end with throwaway pass/fail notebooks through this repo's own run_notebook).

Note: of the nine run_smoke.py copies, only the three user-facing workspaces (autofit/autolens/autogalaxy) have a notebook leg — sibling PRs land the same change there; the HowTo and *_test runners are scripts-only and need nothing.


Generated by Claude Code

Adopt PyAutoHands#198 in this repo's copy of `.github/scripts/run_smoke.py`.
The optional-dependency skip guard (`sys.exit(0)`) is a clean exit 0 as a `.py`
script, but raises SystemExit in a Jupyter kernel, so nbconvert exits non-zero
and the notebook smoke entry was reported as a spurious FAIL. `run_notebook`
now consults PyAutoHands's `build_util.is_clean_skip_exit` on the combined
nbconvert output and records a PASS; `SystemExit: 1` and every other exception
stay failures.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PzN9PZfG5zXMVku8ckSqkC
@Jammy2211
Jammy2211 merged commit 922286e into main Jul 25, 2026
8 checks passed
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.

2 participants