From 6b0c13677c0a143bcc30c2189e254a6aaf6d2032 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 27 Aug 2026 16:32:10 +0000 Subject: [PATCH] fix(ci): stop filtering JAX tracebacks in the script-run harness (#186) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_01SFoQCsxRTGjKk2YGe4R9Rs --- .github/workflows/smoke-tests.yml | 6 ++++++ .github/workflows/workspace-validation.yml | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index f3e818f7..71123fd7 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -205,6 +205,12 @@ jobs: - name: Run the workspace runner (the smoke runner by default) env: JAX_ENABLE_X64: "True" + # Same reason as workspace-validation.yml's workflow-level env: JAX's + # default traceback filter strips the frames that name the exception, + # so a failing script reports the placeholder instead of the failure. + # This runner is the other surface that executes workspace scripts + # under JAX, so it needs the same treatment. + JAX_TRACEBACK_FILTERING: "off" NUMBA_CACHE_DIR: /tmp/numba_cache MPLCONFIGDIR: /tmp/matplotlib PYTHONPATH: ${{ github.workspace }}/PyAutoHands/autohands diff --git a/.github/workflows/workspace-validation.yml b/.github/workflows/workspace-validation.yml index 7c4d9f37..a83985d8 100644 --- a/.github/workflows/workspace-validation.yml +++ b/.github/workflows/workspace-validation.yml @@ -75,6 +75,18 @@ env: # in profile_release.yaml (the TestPyPI dev version never matches the # workspace pin either) — belt and braces. PYAUTO_SKIP_WORKSPACE_VERSION_CHECK: "1" + # JAX filters its own frames out of a traceback by default, and in practice + # takes the exception that names the failure with them — a failing script then + # reports only "For simplicity, JAX has removed its internal frames...". Run + # 30516167217 (2026-07-30) failed both interferometer shards with exactly that + # and nothing else; the real cause (a RESOURCE_EXHAUSTED OOM) was only legible + # the next night, in 30607596240, when the message happened to survive. 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. Set at workflow level so both the smoke and release legs, and every + # project in the matrix, are covered — run_python.py's per-script env profiles + # inherit it, since a profile only *sets* the keys it is given. + JAX_TRACEBACK_FILTERING: "off" jobs: find_scripts: