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

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

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-3560-cb418c701c9ef58dcca9128d194dc1cf8c18017c
DEFAULT BRANCH: main
Ran 06 Oct 2026 11:50AM UTC
Jobs 11
Files 332
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

06 Oct 2026 11:46AM UTC coverage: 91.099% (+0.07%) from 91.025%
37458629915

push

github

web-flow
Make local mode `job.metrics()` match service jobs (#3434)

### Summary

Make `LocalRuntimeJob.metrics()` (local testing mode) return the same
layout as the metrics of a job run on the service, following #2884: ISO
8601 UTC timestamp strings, and `usage` with `qpu_charge_time_seconds`
and `status`.

### Details and comments

`LocalRuntimeJob.metrics()` still returned the layout from before API
version 2026-04-15:

| | Service job (`BaseRuntimeJob.metrics()`) | Local mode, before |
Local mode, after |
|---|---|---|---|
| `timestamps` values | ISO 8601 strings, e.g.
`"2026-09-28T16:44:27.019265Z"` | naive local `datetime` objects | ISO
8601 UTC strings (`...Z`) |
| `usage` | `qpu_charge_time_seconds`, `status`, ... |
`quantum_seconds`, `seconds` | `{"qpu_charge_time_seconds": 0, "status":
"complete"}` |
| `bss` | not present | `{"seconds": 0}` | removed |

- The timestamps are converted with the existing `local_to_utc()`
helper. The job's stored times are unchanged, so `creation_date` and the
other job attributes behave as before.
- `usage.status` is `"complete"`, as returned by the service for a
finished job and as used in `test_jobs.py`.
- I didn't add `circuits_execution_time_ns` or `qiskit_version`, since
local jobs have no service-side execution time to report. Happy to add
them if you'd prefer full key parity.
- The new test is parameterized over `SamplerV2` and `EstimatorV2`. It
checks the `usage` layout, that `bss` is gone, and that the timestamps
are UTC strings that `utc_to_local()` converts back to the job's local
`creation_date`. It fails on `main` and passes with this change.
`test/unit/local_mode`, `test/unit/test_jobs.py` and
`test/unit/backwards_compatibility` pass locally.
- This changes what local mode `metrics()` returns, so code that read
`quantum_seconds` from a local job will see the new key, as it would on
a service job. The release note is
`release-notes/unreleased/3434.bug.rst`.

Fixes #3431

### AI/LLM disclosure

- [ ] I didn'... (continued)

1 of 1 new or added line in 1 file covered. (100.0%)

8669 of 9516 relevant lines covered (91.1%)

9.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.13-ubuntu-latest - 37458629915.1 06 Oct 2026 11:50AM UTC 332
91.09
GitHub Action Run
2 unit-tests_python3.11-macos-latest - 37458629915.2 06 Oct 2026 11:52AM UTC 332
91.09
GitHub Action Run
3 unit-tests_python3.12-macos-latest - 37458629915.3 06 Oct 2026 11:53AM UTC 332
91.09
GitHub Action Run
4 unit-tests_python3.13-windows-latest - 37458629915.4 06 Oct 2026 11:54AM UTC 332
89.42
GitHub Action Run
5 unit-tests_python3.11-windows-latest - 37458629915.5 06 Oct 2026 11:52AM UTC 332
89.42
GitHub Action Run
6 unit-tests_python3.12-windows-latest - 37458629915.6 06 Oct 2026 11:53AM UTC 332
89.42
GitHub Action Run
7 unit-tests_python3.13-macos-latest - 37458629915.7 06 Oct 2026 11:51AM UTC 332
91.09
GitHub Action Run
8 unit-tests_python3.10-windows-latest - 37458629915.8 06 Oct 2026 11:53AM UTC 332
89.42
GitHub Action Run
9 unit-tests_python3.11-ubuntu-latest - 37458629915.9 06 Oct 2026 11:51AM UTC 332
91.09
GitHub Action Run
10 unit-tests_python3.10-ubuntu-latest - 37458629915.10 06 Oct 2026 11:51AM UTC 332
91.09
GitHub Action Run
11 unit-tests_python3.12-ubuntu-latest - 37458629915.11 06 Oct 2026 11:51AM UTC 332
91.09
GitHub Action Run
Source Files on build 37458629915
  • Tree
  • List 332
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37458629915
  • c099968c on github
  • Prev Build on gh-readonly-queue/main/pr-3427-c0150b58ee4f5f568bf5aaa2fb605c1e276e98c8 (#37447697077)
  • 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