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

Qiskit / qiskit-ibm-runtime / 40668667279
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: feature/switch-imports
DEFAULT BRANCH: main
Ran 28 Oct 2026 10:04AM UTC
Jobs 11
Files 336
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

28 Oct 2026 10:00AM UTC coverage: 91.112% (+0.07%) from 91.044%
40668667279

push

github

web-flow
Update metrics-related methods for resource unit usage (#3522)

### Summary

Update the methods that consume the usage/metrics information from the
API, in order to support resource units:
* `Job.usage()` and `Session.usage()` - opt-in for returning resource
units
* `QiskitRuntimeService.usage()` - no interface change (but adjust the
logic to provide a client-created `usage_remaining_ru` in the same
spirit as `usage_remaining_seconds`)
* ensuring that the method that return the response directly contain
`usage`, as well as provide interface parity with local jobs

### Details and comments

Updated the integration tests minimally as well.

Fixes #3492

### AI/LLM disclosure

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

---------

Co-authored-by: Samuele Ferracin <sam.ferracin@ibm.com>

12 of 12 new or added lines in 4 files covered. (100.0%)

1 existing line in 1 file now uncovered.

8775 of 9631 relevant lines covered (91.11%)

9.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
80.27
3.03% qiskit_ibm_runtime/session.py
Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.12-windows-latest - 40668667279.1 28 Oct 2026 10:11AM UTC 336
89.39
GitHub Action Run
2 unit-tests_python3.11-windows-latest - 40668667279.2 28 Oct 2026 10:08AM UTC 336
89.39
GitHub Action Run
3 unit-tests_python3.13-macos-latest - 40668667279.3 28 Oct 2026 10:06AM UTC 336
91.1
GitHub Action Run
4 unit-tests_python3.11-macos-latest - 40668667279.4 28 Oct 2026 10:07AM UTC 336
91.1
GitHub Action Run
5 unit-tests_python3.11-ubuntu-latest - 40668667279.5 28 Oct 2026 10:06AM UTC 336
91.1
GitHub Action Run
6 unit-tests_python3.10-ubuntu-latest - 40668667279.6 28 Oct 2026 10:04AM UTC 336
90.68
GitHub Action Run
7 unit-tests_python3.13-ubuntu-latest - 40668667279.7 28 Oct 2026 10:05AM UTC 336
91.1
GitHub Action Run
8 unit-tests_python3.12-ubuntu-latest - 40668667279.8 28 Oct 2026 10:06AM UTC 336
91.1
GitHub Action Run
9 unit-tests_python3.10-windows-latest - 40668667279.9 28 Oct 2026 10:07AM UTC 336
88.96
GitHub Action Run
10 unit-tests_python3.12-macos-latest - 40668667279.10 28 Oct 2026 10:07AM UTC 336
91.1
GitHub Action Run
11 unit-tests_python3.13-windows-latest - 40668667279.11 28 Oct 2026 10:06AM UTC 336
89.39
GitHub Action Run
Source Files on build 40668667279
  • Tree
  • List 336
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40668667279
  • d9d47b25 on github
  • Prev Build on gh-readonly-queue/main/pr-3528-d1dfdb43ca046b909ad900fc9ea583dda0f945d1 (#40653617866)
  • Delete
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