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

Qiskit / coheriq / 35805687691
86%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 01:17AM UTC
Jobs 1
Files 5
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

23 Sep 2026 01:12AM UTC coverage: 85.915% (+0.07%) from 85.849%
35805687691

push

github

web-flow
Acquire the engine lock in enable_engine (#9)

The comment in enable_engine documents the convention that the domain
lock is always acquired first and any engine lock second, and the
docstring of _enable_engine_low_level states that both locks are held
when it runs.  Neither was true: enable_engine acquired only the domain
lock, while _enable_engine_low_level reads and writes engine._state and
reads engine._impl.

This left the engine-state transition unsynchronized against
AccelerationEngine.materialize, which writes _state and _impl under the
engine lock.  Acquire the engine lock so the code matches the documented
convention.

No deadlock is introduced: no code path holds an engine lock while
acquiring a domain lock, so domain-then-engine remains the only nesting
order.  The env-var activation path in _ensure_realized_impl already
releases the domain lock before calling enable_engine, so it does not
re-enter either lock.

The added test observes both locks from inside the critical section and
fails without the accompanying change.

Assisted-by: Claude Opus 5

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

183 of 213 relevant lines covered (85.92%)

0.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35805687691.1 23 Sep 2026 01:17AM UTC 5
85.92
GitHub Action Run
Source Files on build 35805687691
  • Tree
  • List 5
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35805687691
  • 49450036 on github
  • Prev Build on main (#35096425466)
  • Next Build on main (#35916771581)
  • 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