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

google / openhtf / 20351003542 / 3
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: test_858814312
DEFAULT BRANCH: master
Ran 18 Dec 2025 08:55PM UTC
Files 65
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

18 Dec 2025 08:54PM UTC coverage: 63.08% (+0.003%) from 63.077%
20351003542.3

Pull #1267

github

copybara-github
Fix bug in test executor where manual aborts were not letting the test clean up properly.

To understand this bug, note that:

1. OpenHTF registers a signal handler for SIGINT
2. This handler re-raises KeyboardInterrupt
3. The `execute` function in TestDescriptor expects this, and effectively waits on the test runner thread to join - twice in the case of a manual abort.

This would have worked until [Python was "fixed"](https://github.com/python/cpython/commit/a22be4943#diff-b250d3d0e8514a011e2f364027e25e0b0). (Equivalent code doesn't exist in Python 3.14, but at least today, in Python 3.12, this bites us). After this, the second wait() call would return immediately while the thread was still running. is_alive() also indicates the thread is dead when in fact it's still alive.

It's debatable whether the "fix" above is the right thing, but we can avoid this hairy issue by not using `Thread.join()` and instead use `Event.wait()` which we can explicitly set at the point we want the thread to be considered "done".

Without this fix, the test executor thread is still running teardowns while the output callbacks have started processing in the main thread, causing output callbacks to receive a test descriptor that hasn't been finalized - among other issues.

PiperOrigin-RevId: 846000293
Pull Request #1267: Fix bug in test executor where manual aborts were not letting the test clean up properly.

4772 of 7565 relevant lines covered (63.08%)

0.63 hits per line

Source Files on job python-3.11 - 20351003542.3
  • Tree
  • List 65
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20351003542
  • bb71e9f0 on github
  • Prev Job for on test_846000293 (#20321477275.2)
  • Next Job for on test_846000293 (#20351405673.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc