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

sandialabs / LoQS / 32096351089
88%

Build:
DEFAULT BRANCH: main
Ran 18 Aug 2026 04:08AM UTC
Jobs 1
Files 63
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

18 Aug 2026 03:40AM UTC coverage: 89.656% (+0.5%) from 89.129%
32096351089

push

github

web-flow
SERIALIZATION_VERSION bump to version 2 (#113)

* Fix _get_cumulative_changes's infinite loop and a latent KeyError

_get_cumulative_changes's `while version < SERIALIZATION_VERSION` loop
never incremented `version`, causing an infinite loop once more than
one version hop separates an object's recorded version from
`SERIALIZATION_VERSION`; replaced with a `for` loop over the actual
range. Also fixes a related bug: both
`IMPORT_LOCATION_CHANGES_BY_VERSION[...]` lookups assumed every
version has a table entry, raising `KeyError` for a version bump with
no import-location changes; switched both to `.get(..., {})`. Adds
regression tests for a 3-hop rename composition and a missing
middle-version entry.

* Bump SERIALIZATION_VERSION to 2 with a version-dispatch decode registry

Introduces `VersionedDecoder` (`loqs/internal/versioning.py`), a small
registry mapping a serialization version to the decoder for that
version's on-disk shape, replacing every hardcoded `!= 1`/`== 1`
version-bound check across both encoders.

- Converts every decode site in `jsonencoder.py`/`hdf5encoder.py` to
  register one self-contained decoder per version, aliasing version 2
  to version 1 everywhere (version 2 introduces no new on-disk shape);
  an unregistered version now raises `DecodableVersionError` cleanly.
- Bumps `SERIALIZATION_VERSION` to 2 and adds
  `IMPORT_LOCATION_CHANGES_BY_VERSION[2]`: the 14 `*CastableTypes` ->
  `*Like` renames, plus `None`-sentinel entries (widening the table's
  value type to allow "deleted, not relocated") for
  `DictModelCastableTypes`/`Castable`/`SeqCastable`/`MapCastable`.
- Moves `SyndromeLabelCastableTypes`'s rename out of version 1's entry
  into its own version-2 entry.
- Adds a coverage test asserting every registry has a decoder for
  every version it should, plus regression tests for the rename,
  version-bound rejection, and the registry mechanism itself.

* Add generic legacy-compatibility shim machinery

Adds `loqs/internal/lega... (continued)

1353 of 1482 branches covered (91.3%)

Branch coverage included in aggregate %.

7713 of 8630 relevant lines covered (89.37%)

0.89 hits per line

Coverage Regressions

Lines Coverage ∆ File
47
83.15
1.06% core/quantumprogram.py
31
93.2
1.86% internal/encoder/hdf5encoder.py
21
96.5
2.51% internal/serializable.py
20
94.44
2.25% internal/encoder/jsonencoder.py
11
83.75
1.08% core/instructions/instructionstack.py
7
73.94
2.42% core/instructions/instruction.py
3
97.09
0.0% backends/reps/gatereps.py
2
97.33
-0.63% backends/reps/legacy.py
1
98.81
1.67% core/instructions/instructionlabel.py
Jobs
ID Job ID Ran Files Coverage
1 32096351089.1 18 Aug 2026 04:08AM UTC 63
89.66
GitHub Action Run
Source Files on build 32096351089
  • Tree
  • List 63
  • Changed 13
  • Source Changed 0
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32096351089
  • aa8fdf68 on github
  • Prev Build on main (#31993797025)
  • Next Build on main (#32227180573)
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