• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sandialabs / LoQS / 41205197238
90%

Build:
DEFAULT BRANCH: main
Ran 31 Oct 2026 01:27PM UTC
Jobs 1
Files 84
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Oct 2026 01:21PM UTC coverage: 89.093% (+0.01%) from 89.08%
41205197238

push

github

web-flow
Improve shot-checkpoint reads and writes (#169)

* Memoize content hashes during checkpoint encodes

Shot-checkpoint writes rehashed each subtree at every level, so a
numpy History write took about 90x its shot; hashing is now linear and
the #153 Part 5 MWE drops from 2.29 to 0.19 s per checkpointed shot.

- Memoize Serializable._serial_hash for one top-level encode in a
  ContextVar that holds each object and never stores a cyclic hash.
- Hash non-object numpy arrays from shape, dtype and raw bytes, so
  equal values of different dtypes no longer dedupe as copies.
- Decode HDF5 complex arrays bit-exactly through the ndarray.imag
  setter, so NaN, inf and -0.0 survive and decoded seeds match.
- Minor: skip the hash when there's no encode cache; tests for memo
  scope, id reuse, dtypes and shapes, call scaling, complex round trip.

Co-authored-by: claude-opus-5-5 <noreply@anthropic.com>
Co-authored-by: claude-sonnet-5-5 <noreply@anthropic.com>

* Skip needless decode walks in shot-checkpoint reads

Reading shots back re-walked every decoded object for placeholders and
scanned a noise model before a program's blob, so a numpy LoGST read
cost 1.7x its shots; it now costs about half (22.8 s to 6.1 s).

- Run Serializable.decode's placeholder walk only once a decode in the
  context has handed out a DeferredRef, counted in a ContextVar.
- Search a group's collapsed blob before its real children when
  resolving a missing source; cache IDs are unique in a file.
- Minor: drop a redundant DeferredRef branch in JSON decode_cached_obj;
  test a placeholder reached by a later decode.

Co-authored-by: claude-sonnet-5-5 <noreply@anthropic.com>
Co-authored-by: claude-opus-5-5 <noreply@anthropic.com>

---------

Co-authored-by: claude-opus-5-5 <noreply@anthropic.com>

3701 of 4430 branches covered (83.54%)

Branch coverage included in aggregate %.

11975 of 13165 relevant lines covered (90.96%)

0.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
33
92.72
0.22% internal/serializable.py
9
92.23
-0.06% internal/encoder/jsonencoder.py
Jobs
ID Job ID Ran Files Coverage
1 41205197238.1 31 Oct 2026 01:27PM UTC 84
89.09
GitHub Action Run
Source Files on build 41205197238
  • Tree
  • List 84
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41205197238
  • a5dcd37d on github
  • Prev Build on main (#41202741864)
  • Next Build on main (#42140515486)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc