Skip to content

fix(ci): stop filtering JAX tracebacks in the script-run harness - #187

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/jax-traceback-filtering-release-harness
Aug 27, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/jax-traceback-filtering-release-harness

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

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:

scripts/interferometer/start_here.py ...  FAIL (19.5s)
For simplicity, JAX has removed its internal frames from the traceback of the
following exception. Set JAX_TRACEBACK_FILTERING=off to include these.

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

File Change
.github/workflows/workspace-validation.yml JAX_TRACEBACK_FILTERING: "off" in the workflow-level env: block
.github/workflows/smoke-tests.yml the same, on the workspace-runner step's env:

Coverage. Workflow-level env: reaches every job and step of workspace-validation.yml, so both mode=smoke and mode=release and 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 behaviour profile_release.yaml's own header relies on. workspace-smoke.yml is a thin caller of workspace-validation.yml, so it is covered with no edit of its own; smoke-tests.yml is the one other surface that executes workspace scripts under JAX, hence the second hunk.

"off" is quoted deliberately — bare off is a YAML 1.1 boolean, and JAX wants the string. Verified: yaml.safe_load returns {'PYAUTO_SKIP_WORKSPACE_VERSION_CHECK': '1', 'JAX_TRACEBACK_FILTERING': 'off'}.

Verification

  • Both workflows re-parse under yaml.safe_load.
  • python3 -m pytest -q -n auto → 641 passed (includes tests/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=4 on a 48-start MultiStartProdigy), and the leg has been green since. This PR is the harness gap that outlived it — see PyAutoMind#347.


Generated by Claude Code

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
@Jammy2211
Jammy2211 merged commit c8b093e into main Aug 27, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/jax-traceback-filtering-release-harness branch August 27, 2026 16:34
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.

fix(ci): stop filtering JAX tracebacks in the script-run harness

2 participants