Repository navigation
Start test workers with eager peer connections - #857
Merged
Merged
Conversation
Julia 1.11 stdlib Distributed can wait on a thread-affine lazy peer condition when the first worker-to-worker RPC comes from another thread. Use the supported lazy=false setting through one test worker helper. Every active test addition must match that setting because both transports reject mixing lazy and eager workers in one cluster. Production and benchmark defaults stay unchanged. Reuse the existing four-worker Context fixture for a first-peer RPC from thread 2 before loading Dagger on those workers, and always remove them on failure. Native Julia 1.11.9 reproduces the old lazy launcher's exact lock-must-be-held error; eager stdlib and DistributedNext 1.3.2 each pass all five public first-peer checks without Dagger or a GPU loaded. Written by an AI agent on jpsamaroo's review feedback.
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.
Julia 1.11 stdlib Distributed can throw
ConcurrencyViolationError("lock must be held")when a worker's first lazy peer RPC originates on another thread. This surfaced in #635's expanded ROCm tests. Start test workers with supportedlazy=falsethrough one shared helper, and use it for every active test worker addition so lazy and eager modes cannot mix.The existing Context fixture now checks its first peer RPC on another thread before loading Dagger on the new workers, and removes those workers in
finally. Existing project selection, explicit thread counts, numerical assertions, and Context/scope/removal assertions are retained. Production and benchmark transport defaults are unchanged; the cold lazy path remains an upstream stdlib issue.Validation:
-t2first-peer controls pass with both transports, including a second default-single-thread addition with Next. These reuse the frozen 1.11 manifest and retain imported-binding warnings.Written by an AI agent on jpsamaroo's review feedback.