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

Qiskit / qiskit / 13553732677 / 1
88%
main: 88%

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

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>

77531 of 88244 relevant lines covered (87.86%)

341893.83 hits per line

Source Files on job 13553732677.1
  • Tree
  • List 897
  • Changed 99
  • Source Changed 8
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13553732677
  • cd2bd524 on github
  • Prev Job for on main (#13544415862.1)
  • Next Job for on main (#13573429192.1)
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

© 2026 Coveralls, Inc