|
Ran
|
Jobs
4
|
Files
65
|
Run time
1min
|
Badge
README BADGES
|
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
122 of 135 new or added lines in 5 files covered. (90.37%)
6 existing lines in 3 files now uncovered.4946 of 7724 relevant lines covered (64.03%)
2.56 hits per line
| 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 |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 4 |
92.89
|
0.94% | openhtf/core/test_state.py |
| 1 |
88.73
|
0.0% | openhtf/util/test.py |
| 1 |
69.16
|
-1.98% | openhtf/util/threads.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | python-3.12 - 38484582959.1 | 65 |
64.03
|
GitHub Action Run | |
| 2 | python-3.11 - 38484582959.2 | 65 |
64.03
|
GitHub Action Run | |
| 3 | python-3.13 - 38484582959.3 | 65 |
64.03
|
GitHub Action Run | |
| 4 | python-3.14 - 38484582959.4 | 65 |
64.02
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|