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

ACEsuit / mace / 44508737789
75%

Build:
DEFAULT BRANCH: develop
Ran 19 Nov 2026 11:42AM UTC
Jobs 1
Files 71
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

19 Nov 2026 08:58AM UTC coverage: 75.322% (-0.02%) from 75.338%
44508737789

push

github

web-flow
Release the GIL when the distributed inference test tears down gloo (#1827)

test_distributed_inference_uses_global_head_identity hung now and then
until the pytest timeout on the torch 2.5 CI leg. Before torch 2.8,
destroy_process_group can deadlock with gloo. The Python binding of
ProcessGroup drops its reference to the backend with the GIL held. The
backend's destructor joins the gloo worker threads, and a worker that is
still freeing the tensors of the last collective needs the GIL. gdb on
stuck ranks shows exactly that pair of stacks. torch 2.8 fixed it by
releasing the GIL in that binding.

The backend bindings already release the GIL when they drop their
reference. tests.helpers.destroy_process_group holds one reference per
backend across the teardown and drops them afterwards, so the worker
threads are joined without the GIL. The test tears down through it, and
its init_process_group gets a 60 second timeout so a stuck collective
fails fast with a named error.

run_train is not affected. Once a DistributedDataParallel wrapper has been
built the group stays alive until the process exits, and gdb shows its
gloo destructor never runs, so no worker is ever joined.

The new test reproduces the deadlock in one process: the main thread keeps
the GIL while a gloo worker frees a tensor whose Python object is gone.
With a plain destroy_process_group it times out on torch 2.5 and 2.6.

9364 of 12432 relevant lines covered (75.32%)

0.75 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
56.48
-0.32% cli/run_train.py
Jobs
ID Job ID Ran Files Coverage
1 44508737789.1 19 Nov 2026 11:42AM UTC 71
75.32
GitHub Action Run
Source Files on build 44508737789
  • Tree
  • List 71
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44508737789
  • 4900c9d4 on github
  • Prev Build on develop (#44288467732)
  • Next Build on develop (#44720419681)
  • 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