Repository navigation
smoke-tests: carry the numba cache the profiles actually write - #328
Merged
Merged
Conversation
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
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.
Problem
Every workspace's
config/build/profile_smoke.yaml(all 12) setsNUMBA_CACHE_DIR: "/tmp/numba_cache"as a default, and autohands'apply_profilelets 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 showsnumba: misson 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/tmpcache already worked; this change restores persistence across runs.Verification
tests/test_smoke_tests_wiring.pyandtests/test_smoke_timings.pypass (464 across the smoke/timing selection).test_verify_install_script::test_pep440_equivalent_versions_compare_equalfails identically onmainwithout this change.numba: hit.Generated by Claude Code