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

Qiskit / qiskit / 34442473676
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: patch-lcov-errors
DEFAULT BRANCH: main
Ran 10 Sep 2026 06:19AM UTC
Jobs 1
Files 964
Run time 2min
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

10 Sep 2026 05:47AM UTC coverage: 87.846% (-0.03%) from 87.878%
34442473676

push

github

web-flow
Avoid hard allocation abort from QPY provided sizes (#16966)

This commit fixes several cases of potential out of memory aborts
caused by the rust allocator when loading QPY payloads. In several
locations in the QPY deserialization we were directly reserving
capacity unconditionally based on the size specified in the payload.
This would potentially result in the Rust allocator allocator aborts
the process in a hard error if there was insufficient memory available
to allocate the specified size. As QPY payloads are often transferred
between systems with varying memory capacity we can never guarantee
that a qpy payload will be able to fit in memory on the deserializing
system. But to improve the experience of QPY deserializing payloads on
systems with limited memory capacity this replaces all those cases
that could result in a hard abort with fallible memory reservations.
This will then result in a QPYError being raised to the use if
sufficient memory can not be allocated. This can then be handled by
the user however is appropriate instead of a hard crash of the process.

As a side effect I expect this might actually improve the performance of
the QPY deserialization slightly as it no longer needs to zero the
elements in the Vecs used for the raw bytes buffer used during
deserialization of certain fields in the QPY payload.

98 of 156 new or added lines in 9 files covered. (62.82%)

23 existing lines in 6 files now uncovered.

117375 of 133614 relevant lines covered (87.85%)

980055.52 hits per line

Uncovered Changes

Lines Coverage ∆ File
17
83.45
-9.47% crates/qpy/src/formats.rs
15
76.94
-0.54% crates/qpy/src/value.rs
12
0.0
crates/circuit/src/error.rs
9
51.47
-2.14% crates/qpy/src/bytes.rs
4
86.88
0.02% crates/circuit/src/circuit_data.rs
1
74.01
0.18% crates/qpy/src/circuit_reader.rs

Coverage Regressions

Lines Coverage ∆ File
12
97.16
-0.47% crates/qasm2/src/parse.rs
5
91.77
-0.26% crates/qasm2/src/lex.rs
3
81.64
-0.1% crates/circuit/src/parameter/symbol_expr.rs
1
90.3
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
83.45
-9.47% crates/qpy/src/formats.rs
1
76.94
-0.54% crates/qpy/src/value.rs
Jobs
ID Job ID Ran Files Coverage
1 34442473676.1 10 Sep 2026 06:19AM UTC 964
87.85
GitHub Action Run
Source Files on build 34442473676
  • Tree
  • List 964
  • Changed 13
  • Source Changed 9
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34442473676
  • cec6f667 on github
  • Prev Build on gh-readonly-queue/main/pr-16911-5738d33830db9c55c4bf5300c8b565a2732be402 (#34396322564)
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