Skip to content

Comments

Ensure correct type parameter of serialized RemoteChannel (forwardport of JuliaLang/Distributed.jl#179)#36

Closed
DilumAluthge wants to merge 1 commit intomasterfrom
dpa/179-forward-port
Closed

Ensure correct type parameter of serialized RemoteChannel (forwardport of JuliaLang/Distributed.jl#179)#36
DilumAluthge wants to merge 1 commit intomasterfrom
dpa/179-forward-port

Conversation

@DilumAluthge
Copy link
Member

This is a forward-port of JuliaLang/Distributed.jl#179. cc: @andreasnoack

When serializing RemoteChannels, a new zeroed RemoteChannel is constructed. However, the input type parameter might be part of an outer type parameter which can then lead to a TypeError during deserialization. The fix is just to reuse the type parameter of the input when constructing the zeroed RemoteChannel.

(cherry picked from commit 6649a94075ff6a52ee9558db3ec4491496bf1bea)

@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.00%. Comparing base (d8f44f5) to head (2e52996).

❗ There is a different number of reports uploaded between BASE (d8f44f5) and HEAD (2e52996). Click for more details.

HEAD has 8 uploads less than BASE
Flag BASE (d8f44f5) HEAD (2e52996)
9 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #36       +/-   ##
===========================================
- Coverage   88.00%   78.00%   -10.01%     
===========================================
  Files          11       11               
  Lines        2117     2041       -76     
===========================================
- Hits         1863     1592      -271     
- Misses        254      449      +195     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DilumAluthge DilumAluthge changed the title Ensure correct type parameter of serialized RemoteChannel (#179) Ensure correct type parameter of serialized RemoteChannel Feb 22, 2026
@DilumAluthge DilumAluthge marked this pull request as ready for review February 22, 2026 14:26
@DilumAluthge
Copy link
Member Author

I can combine this with other forwardports in the forwardport PR (#49), if desired.

@DilumAluthge DilumAluthge changed the title Ensure correct type parameter of serialized RemoteChannel Ensure correct type parameter of serialized RemoteChannel (forwardport of JuliaLang/Distributed.jl#179) Feb 22, 2026
This is a forward-port of
JuliaLang/Distributed.jl#179
(JuliaLang/Distributed.jl@6649a94).

When serializing RemoteChannels, a new zeroed RemoteChannel is
constructed. However, the input type parameter might be part of an outer
type parameter which can then lead to a TypeError during deserialization.
The fix is just to reuse the type parameter of the input when
constructing the zeroed RemoteChannel.

(cherry picked from commit 6649a94075ff6a52ee9558db3ec4491496bf1bea)
@DilumAluthge DilumAluthge marked this pull request as draft February 22, 2026 14:46
@DilumAluthge
Copy link
Member Author

I've combined this into #49

@DilumAluthge DilumAluthge deleted the dpa/179-forward-port branch February 22, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants