Skip to content

smoke-tests: carry the numba cache the profiles actually write - #328

Merged
Jammy2211 merged 1 commit into
mainfrom
ccr-eef5e2b2-t0z1tp
Nov 8, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
ccr-eef5e2b2-t0z1tp

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Problem

Every workspace's config/build/profile_smoke.yaml (all 12) sets NUMBA_CACHE_DIR: "/tmp/numba_cache" as a default, and autohands' apply_profile lets profile defaults override the inherited job env. The reusable smoke workflow restored, measured and saved ${{ github.workspace }}/.numba_cache, a directory numba never wrote to. So the Heart board shows numba: miss on every smoke leg, and each leg pays every numba compile cold.

Change

The restore, measure, runner-env and save steps now use /tmp/numba_cache. Keys, the epoch salt, the content-stamp step and the save guards are unchanged. The wiring tests pin all four references to the same directory.

Measured (local, py3.12)

autolens_workspace_test misc/jax_assertions/delaunay_nn.py, two trials each: cold numba 28.5s / 28.8s, warm 22.3s / 21.7s. That is about 6.5s per leg that touches the Sibson/Delaunay kernels. Within a single run the /tmp cache already worked; this change restores persistence across runs.

Verification

  • tests/test_smoke_tests_wiring.py and tests/test_smoke_timings.py pass (464 across the smoke/timing selection).
  • Full suite: 1313 passed, 1 failed. test_verify_install_script::test_pep440_equivalent_versions_compare_equal fails identically on main without this change.
  • The board will confirm the fix: the first smoke run after merge fills the cache, and the second should read numba: hit.

Generated by Claude Code

Every workspace profile_smoke.yaml defaults NUMBA_CACHE_DIR to
/tmp/numba_cache, and autohands' apply_profile lets profile defaults
override the inherited job env. The workflow restored, measured and saved
${{ github.workspace }}/.numba_cache, which numba never wrote to. So the
numba cache read "miss" on every leg of every workspace on the board, and
each leg paid every numba compile cold.

Point the restore, measure, run-env and save steps at /tmp/numba_cache.
Keys, the epoch salt, the content-stamp step and the save guards are
unchanged.

Measured locally (py3.12, autolens_workspace_test
misc/jax_assertions/delaunay_nn.py, two trials): cold numba
28.5s / 28.8s, warm 22.3s / 21.7s, so about 6.5s saved per leg that touches
the Sibson/Delaunay kernels.

Tests: smoke wiring and timing suites pass (464). The pre-existing
test_verify_install_script::test_pep440_equivalent_versions_compare_equal
failure is unchanged without this commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016nhQ8McPUvDThp9s9JAiZz
@Jammy2211
Jammy2211 merged commit 4426974 into main Nov 8, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the ccr-eef5e2b2-t0z1tp branch November 8, 2026 16:41
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