Repository navigation
WIP 3.14t support - #9194
Draft
crusaderky wants to merge 9 commits into
Draft
WIP 3.14t support#9194crusaderky wants to merge 9 commits into
crusaderky wants to merge 9 commits into
Conversation
crusaderky
marked this pull request as draft
February 13, 2026 10:18
Contributor
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 50 files + 4 50 suites +4 16h 21m 11s ⏱️ + 7h 59m 44s For more details on these failures, see this check. Results for commit 51a9e62. ± Comparison against base commit 215e0e5. This pull request removes 2 and adds 7 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
crusaderky
force-pushed
the
314t
branch
2 times, most recently
from
February 13, 2026 12:29
15f90ab to
e4f757e
Compare
6 of 19 tasks
crusaderky
force-pushed
the
314t
branch
5 times, most recently
from
May 4, 2026 13:07
37af8da to
091940c
Compare
crusaderky
force-pushed
the
314t
branch
2 times, most recently
from
May 21, 2026 13:58
4648c6d to
fc7fa74
Compare
The warning context leaked into the object protocol and dispatch helpers, copying ordinary payload buffers and reserving an RPC keyword. Keep the reference in the comm layer and scope it around existing dispatch. Preserve each batched message’s enqueue-time context without inheriting the writer’s context.
The existing plugin registration test already warms up its scheduler comm before capturing the duplicate warning. Match the warning there instead of starting a second cluster for the same coverage.
Msgpack implementations can report different serialization errors. Match Distributed’s own log text and retain the frame assertions that verify the fallback behavior.
Frame-splitting callers expect only payload frames even under a warnings filter. Add TCP and WebSocket transport entry points for the optional context frame and leave the raw helpers unchanged.
…re frames The previous approach appended a 48-byte process-local UUID frame to TCP and WebSocket payloads, required transport-specific hooks in tcp.py, ws.py, inproc.py, and comm/utils.py, inflated comm.write() byte counts, triggered an extra TCP read_bytes_rw allocation when warnings filters were active, leaked unconsumed tokens in the global registry when talking to remote processes, and copied BatchedSend message dicts on enqueue and serialize. Replace the wire-frame mechanism with an in-memory FIFO side channel paired during the existing comm handshake in distributed/comm/core.py. Remote peers ignore the ephemeral handshake key and stay completely unwrapped with zero per-message overhead, all transports (including TLS and UCX) work with untouched wire framing and byte counts, BatchedSend keeps plain message lists with a parallel context list, and ContextVar resets tolerate cross-context GC.
This branch has not been deployed
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.
General and CI changes
Warning-related test failures
This PR fixes thee following failures in 3.14t and 3.15t.
These are due to a difference between 3.14 and 3.14t, which causes warnings to be contextvars-based. This causes
pytest.warnsandpytest.mark.filterwarningsnot to catch warnings emitted by a thread which was started before the filter was set - such as in workers started by thecfixture. So it should just be a matter of tweaking the tests.See also dask/dask side: dask/dask#12224
Other test failures
I have not investigated these yet.
OUT OF SCOPE: these tests are expected to keep failing as of this PR.