Repository navigation
tests: pull_test no longer hangs on macOS - #3740
Merged
Merged
Conversation
ashhart
added a commit
that referenced
this pull request
Nov 19, 2026
ashhart
force-pushed
the
lead/pull-test-mac-hang
branch
from
November 19, 2026 09:58
7cfd0d0 to
c18ec5b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test-pull-host hung on macOS (0% CPU until its 20-minute deadline). A thread sample showed why: the test's debug allocator captured a stack trace on every free, including frees from the I/O worker threads during the client's connect by host name. Zig's Mach-O unwinder panicked inside its module lock and the panic handler took the same lock, so the worker deadlocked and the main thread waited behind it.
The fake Hub's workers now use their own thread-safe allocator, and the pull client under test runs on its own I/O instance and an allocator that checks leaks without capturing stack traces. Every assertion stays (86), and a planted leak is still caught.
Checked:
zig build -Dcpu=apple_m1 --test-timeout 10m test-pull-hoston Apple silicon: 34/34 tests pass in 14 s (it hung before). Linux results match main. Test-only: no engine change.