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

Qiskit / qiskit-ibm-runtime / 45814318547 / 8
91%
main: 91%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 12:03PM UTC
Files 344
Run time 3s
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 Nov 2026 11:42AM UTC coverage: 91.267%. Remained the same
45814318547.8

push

github

web-flow
Add job tags and auto-cancel in integration tests (#3594)

### Summary

Enhance how submitted jobs from integration tests are handled, via
fixtures:
* cancel jobs that might be left queued or running once a test finishes,
via a new `submitted_jobs()` fixture.
* the functionality was present to some extent in the existing
`submit_bell_job()` fixture
* tag the jobs when submitted (with test case, test, CI run, and CI
commit hash), via an `options()` fixture
* set `max_execution_time` for jobs when run in CI
* revise the tests so they make use of the fixture

The test that submit jobs now follow this pattern as a result:

```python

def test_foo(self, options, submitted_jobs):
    primitive = Primitive(backend, options=options)
    job = primitive.run(...)
    submitted_jobs.append(job)
```

### Details and comments

Part of this could be made transparent via monkeypatching (for example,
injecting the tags prior to the HTTP request in the `api/` layers), or
more streamlined (for example, by auto-using those fixtures, or having
another one that wraps up the "instantiate primitive, submit job with
right tags, add it to the list").

I went with explicitness as the number of integration tests that submit
jobs is relatively manageable, and for better control (for example, some
tests may want to cancel directly, or may want to control tags more
easily) - it cost some more lines, but arguably keeps corner cases under
control.

Fixes #3591

### AI/LLM disclosure

- [x] I used the following tool to generate or modify code: Claude Opus
5

8852 of 9699 relevant lines covered (91.27%)

0.91 hits per line

Source Files on job unit-tests_python3.12-macos-latest - 45814318547.8
  • Tree
  • List 344
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 45814318547
  • 5422d783 on github
  • Prev Job for on main (#45374291000.10)
  • 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