Repository navigation
fix(ci): stop filtering JAX tracebacks in the script-run harness - #187
Merged
Merged
Conversation
JAX removes its own frames from a traceback by default and, in practice, takes the exception that names the failure with them. A workspace script failing under JAX therefore reported only "For simplicity, JAX has removed its internal frames from the traceback of the following exception" — which script failed, and nothing about why. The cost is measured, not hypothetical. Run 30516167217 (2026-07-30) failed both interferometer shards with exactly that placeholder, so the night read as an unidentified failure; the real cause — RESOURCE_EXHAUSTED, an ~86 GB allocation — became legible only in run 30607596240 the following night, where the message happened to survive. One night was spent identifying a failure the harness already had the information to name. Set JAX_TRACEBACK_FILTERING=off on: - workspace-validation.yml, at workflow level, so both the smoke and release legs and every project in the matrix inherit it. run_python.py's per-script env profiles inherit it too, since a profile only *sets* the keys it is given and never clears inherited vars. workspace-smoke.yml is a thin caller of this workflow, so it is covered with no edit of its own. - smoke-tests.yml, on the workspace-runner step — the other surface that executes workspace scripts under JAX. Quoted "off" deliberately: bare off is a YAML 1.1 boolean, and JAX wants the string. The trade is longer, noisier tracebacks in CI logs. A CI log is read only once something has already failed, and the frames are what say what failed. Closes #186 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SFoQCsxRTGjKk2YGe4R9Rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #186.
JAX removes its own frames from a traceback by default and, in practice, takes the exception that names the failure with them. A workspace script failing under JAX reported only:
Which script failed, and nothing about why.
The cost is measured. Run 30516167217 (2026-07-30) failed both interferometer shards with exactly that placeholder, so the night read as an unidentified failure. The real cause —
jax.errors.JaxRuntimeError: RESOURCE_EXHAUSTED: Out of memory allocating 85898814480 bytes— became legible only in run 30607596240 the following night, where the message happened to survive. One night was spent identifying a failure the harness already had the information to name. A gate whose error messages are filtered away is the PyAutoBrain#196 exit-code problem again: the signal exists and the harness discards it before a human sees it.Changes
.github/workflows/workspace-validation.ymlJAX_TRACEBACK_FILTERING: "off"in the workflow-levelenv:block.github/workflows/smoke-tests.ymlenv:Coverage. Workflow-level
env:reaches every job and step ofworkspace-validation.yml, so bothmode=smokeandmode=releaseand every project in the matrix inherit it.run_python.py's per-script env profiles inherit it too — a profile only sets the keys it is given and never clears inherited vars, which is the documented behaviourprofile_release.yaml's own header relies on.workspace-smoke.ymlis a thin caller ofworkspace-validation.yml, so it is covered with no edit of its own;smoke-tests.ymlis the one other surface that executes workspace scripts under JAX, hence the second hunk."off"is quoted deliberately — bareoffis a YAML 1.1 boolean, and JAX wants the string. Verified:yaml.safe_loadreturns{'PYAUTO_SKIP_WORKSPACE_VERSION_CHECK': '1', 'JAX_TRACEBACK_FILTERING': 'off'}.Verification
yaml.safe_load.python3 -m pytest -q -n auto→ 641 passed (includestests/test_workflow_wiring.py,tests/test_ci_status.py).What is not verified here, and is the exit criterion the issue asks for: that a real JAX exception now prints its own type and message in a job log. That needs a JAX failure in a CI run — reading this diff is not proof, since the whole defect is that the diff looks obviously right and the log is what has to change. Worth confirming against the next nightly that exercises a JAX script, or a deliberately induced one.
Trade-off
Longer, noisier tracebacks in CI logs. A CI log is read only once something has already failed, and the frames are what say what failed.
Related
The interferometer OOM that exposed this was itself root-caused and fixed on 2026-07-31 (
autolens_workspace#450,batch_size=4on a 48-startMultiStartProdigy), and the leg has been green since. This PR is the harness gap that outlived it — see PyAutoMind#347.Generated by Claude Code