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

HelixObs / client-python / 28056078235
95%

Build:
DEFAULT BRANCH: main
Ran 23 Jun 2026 08:49PM UTC
Jobs 1
Files 6
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 Jun 2026 08:49PM UTC coverage: 95.062% (-2.0%) from 97.074%
28056078235

push

github

chitrangpatel
fix: register at-fork handlers to prevent gRPC deadlock in child processes

Pipelines that use os.fork() (directly or via multiprocessing/cadcutils)
can deadlock permanently when fork() happens while a BatchSpanProcessor or
BatchLogRecordProcessor background thread holds an internal gRPC mutex.
The child inherits the locked mutex but the thread is dead, so any
subsequent gRPC call in the child waits forever.

Add helixobs/_fork.py with os.register_at_fork() handlers:
  before:         force_flush(timeout_millis=500) on all providers — drains
                  the export queue and releases locks before fork copies state
  after_in_child: shutdown() on all providers — stops background threads
                  in the child so it never tries to export telemetry

Both configure_logging(otlp=True) and Instrument.__init__ register their
providers via _fork.register_provider_for_fork(). No-op on Windows where
os.register_at_fork is not available.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

20 of 29 new or added lines in 3 files covered. (68.97%)

385 of 405 relevant lines covered (95.06%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
64.0
helixobs/_fork.py
Jobs
ID Job ID Ran Files Coverage
1 28056078235.1 23 Jun 2026 08:49PM UTC 6
95.06
GitHub Action Run
Source Files on build 28056078235
  • Tree
  • List 6
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28056078235
  • 6809a25b on github
  • Prev Build on main (#27728196886)
  • Next Build on main (#28056541309)
  • 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