Skip to content

Stabilize CI registry caching and the expect test#5

Merged
mtfishman merged 1 commit into
mf/itensorbase-backendfrom
mf/ci-and-test-stability
Jul 10, 2026
Merged

Stabilize CI registry caching and the expect test#5
mtfishman merged 1 commit into
mf/itensorbase-backendfrom
mf/ci-and-test-stability

Conversation

@mtfishman

Copy link
Copy Markdown
Owner

Summary

Two independent fixes to make the CI runs on this branch reliable.

  • Stop caching the registries directory in the test and docs jobs (cache-registries: false). save-always: false already keeps a failed job from saving a broken depot, but a registry clone poisoned before that landed keeps getting restored on the pre runner, where it cannot rebase on origin/main, so dependency resolution fails with an unsatisfiable ITensorBase. Not caching the registries lets buildpkg clone them fresh each run and breaks the loop.
  • Seed the RNG in test_expect.jl and loosen the boundary-MPS-vs-exact tolerance. It was the only test file that did not seed, so it drew a fresh random state each run, and the atol = 10*eps(Float32) comparison of a rank-16 boundary-MPS approximation to the exact value was tight enough that a draw occasionally exceeded it. Seeding makes it deterministic and 100*eps(Float32) gives comfortable margin.

Two independent fixes to make the CI runs on this branch reliable.

- Stop caching the registries directory in the test and docs jobs (`cache-registries: false`). `save-always: false` already keeps a failed job from saving a broken depot, but a registry clone poisoned before that landed keeps getting restored on the `pre` runner, where it cannot rebase on `origin/main`, so dependency resolution fails with an unsatisfiable `ITensorBase`. Not caching the registries lets buildpkg clone them fresh each run and breaks the loop.
- Seed the RNG in `test_expect.jl` and loosen the boundary-MPS-vs-exact tolerance. It was the only test file that did not seed, so it drew a fresh random state each run, and the `atol = 10*eps(Float32)` comparison of a rank-16 boundary-MPS approximation to the exact value was tight enough that a draw occasionally exceeded it. Seeding makes it deterministic and `100*eps(Float32)` gives comfortable margin.
@mtfishman
mtfishman merged commit c5ea3ea into mf/itensorbase-backend Jul 10, 2026
3 checks passed
@mtfishman
mtfishman deleted the mf/ci-and-test-stability branch July 10, 2026 19:58
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.

1 participant