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

Qiskit / qiskit / 13553732677
88%

Build:
DEFAULT BRANCH: main
Ran 26 Feb 2025 09:53PM UTC
Jobs 1
Files 897
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

26 Feb 2025 08:55PM UTC coverage: 87.86% (-0.01%) from 87.87%
13553732677

push

github

web-flow
Refactor parallelism utilities for public API (#12412)

* Refactor parallelism utilities for public API

`should_run_in_parallel` was added in a stable manner to enable backport
to the 1.1 series, but from 2.0 onwards, we want this to be part of the
public interface so that others can rely on it too.

As part of this, the parallelisation configuration was made more robust
and controllable with context managers.  This is convenient beyond just
for users - it makes it far easier to control the parallelism during the
test suite runs.  Several instances where different parts of Qiskit and
its test suite reached into deep internals of the parallelism utilities
and made significant assumptions about the internal logic are refactored
to use public interfaces to achieve what they wanted to.

The multiprocessing detection is changed from making OS-based
assumptions about what Python does to simply querying the module for its
configuration.  This makes it more robust to changes in Python's
handling (especially important since 3.14 will change the default start
method on Unix).  In the future, we may want to change to making these
assumptions only if the user hasn't configured the `multiprocessing`
start method themselves.

* Dodge use of `print`

* Fix typo

Co-authored-by: Kevin Hartman <kevin@hart.mn>

* Gracefully handle bad user input

---------

Co-authored-by: Kevin Hartman <kevin@hart.mn>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

73 of 98 new or added lines in 8 files covered. (74.49%)

15 existing lines in 5 files now uncovered.

77531 of 88244 relevant lines covered (87.86%)

341893.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.3
-0.0% qiskit/circuit/quantumcircuit.py
1
95.47
0.0% qiskit/transpiler/preset_passmanagers/builtin_plugins.py
23
74.16
-6.54% qiskit/utils/parallel.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.23
-0.23% crates/qasm2/src/expr.rs
1
86.87
-0.76% qiskit/user_config.py
2
94.29
-0.1% crates/accelerate/src/unitary_synthesis.rs
5
91.48
-0.75% crates/qasm2/src/lex.rs
6
97.61
0.46% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 13553732677.1 26 Feb 2025 09:53PM UTC 897
87.86
GitHub Action Run
Source Files on build 13553732677
  • Tree
  • List 897
  • Changed 99
  • Source Changed 8
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13553732677
  • cd2bd524 on github
  • Prev Build on main (#13544415862)
  • Next Build on main (#13573429192)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc