Skip to content

ci(lib-tests): persist every JAX compile in the unit gate (threshold 0) - #223

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/jax-cache-threshold-smoke-nfobes
Sep 10, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
claude/jax-cache-threshold-smoke-nfobes

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Follow-up named on #221 / #222: the libraries' unit gate lib-tests.yml restores and saves the same JAX compilation cache as the smoke leg, with the same missing compile-time threshold, so autonerves' setdefault of 1s wins and the restored cache holds almost nothing a unit suite compiles. This exports JAX_PERSISTENT_CACHE_MIN_COMPILE_TIME_SECS: "0" in the Run tests step env, beside JAX_COMPILATION_CACHE_DIR.

API Changes

None. One env key; the run: command is untouched (wiring test pins it). No PYAUTO_CACHE_EPOCH bump.

The trade (same as #222, unmeasured here)

The libraries' saved JAX cache grows with every sub-second compile a unit suite makes. Unlike the smoke leg there is no local measurement behind this one, only the same mechanism; it is the pricing #222 deferred. Watch the unit board's [jax cache hit|miss] lines and the sidecar's jax_mb / jax_n. Rollback: delete the line or bump the epoch.

Tests

python3 -m pytest -q -n auto in PyAutoHeart: 967 passed. New: test_the_suite_persists_every_compile_it_makes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NWYEAsAsN5cfuqqBoYTHho


Generated by Claude Code

Same knob PyAutoHeart#222 set for the smoke leg, on the libraries' unit
gate: lib-tests.yml restores and saves the same JAX compilation cache with
no compile-time threshold, so autonerves' setdefault of 1s wins and the
restored cache holds almost nothing a unit suite compiles. Export
JAX_PERSISTENT_CACHE_MIN_COMPILE_TIME_SECS="0" in the Run tests step env,
beside JAX_COMPILATION_CACHE_DIR; the command is untouched. Wiring test
pins the key.

Follow-up named on PyAutoHeart#221.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NWYEAsAsN5cfuqqBoYTHho
@Jammy2211
Jammy2211 merged commit 6afdbd4 into main Sep 10, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/jax-cache-threshold-smoke-nfobes branch September 10, 2026 18:25
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