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

Qiskit / qiskit-ibm-runtime / 27194711136
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-2902-de3f7fc90bdece5cdc395d0712365843364d7e2d
DEFAULT BRANCH: main
Ran 09 Jun 2026 08:51AM UTC
Jobs 11
Files 313
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

09 Jun 2026 08:46AM UTC coverage: 86.936% (+0.7%) from 86.249%
27194711136

push

github

web-flow
Re-organize / clean parts of utils package (#2894)

<!--
⚠️ The pull request title should be short detailed and understandable
for all.
⚠️ Also, please add a release note file using reno if the change needs
to be
  documented in the release notes.
⚠️ If your pull request fixes an open issue, please link to the issue.

✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.
-->

### Summary

Revise the `utils` package, aiming to reduce the imports traversing
through it from other packages and remove unused code, as well as
focusing on reducing the amount of functionality in the really diverse
`utils.utils`:
* remove unused members
* for functions used by just one other package, move them to such
package:
   * `account.utils`
   * `api.utils`
   * moving `backend_encoder.py` to `fake_provider`
* moved the logging functionality to its own module

### Details and comments

Related to #2749

This is not meant to tackle all the possible revamps of `utils`. After
this step, `utils` roughly contains:
* utils used by the backends (backend converter, backend decoder) -
prone to be combined in a module
* utils for validation (validations and most of the items in
`utils.utils`) - prone to be combined together
* utils for a well defined purpose (deprecation, logging, default
session) - prone to stay or bubble up in some cases
* smaller functions for time conversion and other functionality used in
several places - requires more evaluation
* `json.py` - prone to be promoted to top level, requires some finesse
as it is public

Import-wise, tackling `json.py` remains the biggest source of import
complexity, and moving it out would alleviate most of the issues for
keeping a well-behaved `utils` package.

### AI/LLM disclosure

- [x] I didn't use LLM tooling, or only used it privately.

75 of 113 new or added lines in 10 files covered. (66.37%)

7932 of 9124 relevant lines covered (86.94%)

9.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
38.24
qiskit_ibm_runtime/accounts/utils.py
17
59.52
qiskit_ibm_runtime/api/utils.py
Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.12-windows-latest - 27194711136.1 09 Jun 2026 08:52AM UTC 313
85.27
GitHub Action Run
2 unit-tests_python3.13-macos-latest - 27194711136.2 09 Jun 2026 08:51AM UTC 313
86.94
GitHub Action Run
3 unit-tests_python3.11-windows-latest - 27194711136.3 09 Jun 2026 08:52AM UTC 313
85.27
GitHub Action Run
4 unit-tests_python3.10-ubuntu-latest - 27194711136.4 09 Jun 2026 08:51AM UTC 313
86.94
GitHub Action Run
5 unit-tests_python3.13-ubuntu-latest - 27194711136.5 09 Jun 2026 08:51AM UTC 313
86.94
GitHub Action Run
6 unit-tests_python3.12-macos-latest - 27194711136.6 09 Jun 2026 08:51AM UTC 313
86.94
GitHub Action Run
7 unit-tests_python3.12-ubuntu-latest - 27194711136.7 09 Jun 2026 08:51AM UTC 313
86.94
GitHub Action Run
8 unit-tests_python3.10-windows-latest - 27194711136.8 09 Jun 2026 08:52AM UTC 313
85.27
GitHub Action Run
9 unit-tests_python3.11-ubuntu-latest - 27194711136.9 09 Jun 2026 08:51AM UTC 313
86.94
GitHub Action Run
10 unit-tests_python3.11-macos-latest - 27194711136.10 09 Jun 2026 08:51AM UTC 313
86.94
GitHub Action Run
11 unit-tests_python3.13-windows-latest - 27194711136.11 09 Jun 2026 08:52AM UTC 313
85.27
GitHub Action Run
Source Files on build 27194711136
  • Tree
  • List 313
  • Changed 10
  • Source Changed 10
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27194711136
  • d2c325ff on github
  • Prev Build on gh-readonly-queue/main/pr-2887-0838a5cc729cc3395bf0757f91bb1fc162be899a (#27159884863)
  • Delete
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