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

google / openhtf / 38480404742
64%
master: 66%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/github-actions-04cceb3d66
DEFAULT BRANCH: master
Ran 13 Oct 2026 10:51PM UTC
Jobs 4
Files 65
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

13 Oct 2026 10:50PM UTC coverage: 64.034% (+0.4%) from 63.674%
38480404742

Pull #1281

github

copybara-github
Make OpenHTF TestState, PhaseExecutor, and KillableThread thread-safe for concurrent phases.

- Use thread-local storage for running_phase_state, test_api, and last_phase_record in TestState.
- Track multiple active phases via TestState.active_phases and guard shared state access with state_lock.
- Bind the monitor thread in core/monitors.py to the monitored phase's PhaseState so monitors keep sampling while other phases run concurrently.
- Make TestApi.get_measurement/get_attachment (and the _strict variants) check the bound phase before consulting TestState, so lookups stay correct from threads started by a phase.
- Raise a clearer error from TestState.test_api when called from a thread not bound to a phase while multiple phases are running.
- Finalize test outcome as ERROR when any phase has PhaseOutcome.ERROR in finalize_normally().
- Guard cProfile.Profile.enable() with a module lock in KillableThread so concurrent phase threads do not conflict when profiling is enabled.

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/google/openhtf/pull/1340 from google:glados-verma-contrib 45bf71e16
PiperOrigin-RevId: 904170357
Pull Request #1281: Make OpenHTF TestState, PhaseExecutor, and KillableThread thread-safe for concurrent phases.

122 of 135 new or added lines in 5 files covered. (90.37%)

5 existing lines in 2 files now uncovered.

4946 of 7724 relevant lines covered (64.03%)

2.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
92.89
0.94% openhtf/core/test_state.py
5
69.16
-1.98% openhtf/util/threads.py
1
96.38
0.21% openhtf/core/phase_executor.py

Coverage Regressions

Lines Coverage ∆ File
4
92.89
0.94% openhtf/core/test_state.py
1
69.16
-1.98% openhtf/util/threads.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.11 - 38480404742.1 13 Oct 2026 10:51PM UTC 65
64.03
GitHub Action Run
2 python-3.14 - 38480404742.2 13 Oct 2026 10:51PM UTC 65
64.02
GitHub Action Run
3 python-3.12 - 38480404742.3 13 Oct 2026 10:51PM UTC 65
64.03
GitHub Action Run
4 python-3.13 - 38480404742.4 13 Oct 2026 10:51PM UTC 65
64.03
GitHub Action Run
Source Files on build 38480404742
  • Tree
  • List 65
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38480404742
  • Pull Request #1281
  • PR Base - master (#38477591183)
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