Skip to content

[6.2][Distributed] Distributed actor usage through protocol with lib-evolution #80942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Apr 21, 2025

Description: This corrects how we were dealing with dispatch thunks -- mostly be
removing a lot of special casing we did but doesn't seem necessary and
instead we correct and emit all the necessary information int TBD.

This builds on #74935 by further refining how we fixed that issue, and adds more regression tests. It also removes a load of special casing of distributed thunks in library evolution mode, which is great.

Scope/Impact: Resolves how we deal with dispatch thunks in library evolution mode. We previously wrongly assumed we can just not do dispatch thunks in some situations, this together with other partial fixes worked however was only a partial fix. Instead, this patch resolves all these issues, by removing all the piled up special cases.

Risk: Low, resolves library evolution issues in distributed @resolvable protocols specifically. Other code would not be affected, not would be code outside of library evoltion.
Testing: CI testing, added test covering this situation
Reviewed by: @xedin

Original PR: #80588
Radar: rdar://145292018

…ust work

This corrects how we were dealing with dispatch thunks -- mostly be
removing a lot of special casing we did but doesn't seem necessary and
instead we correct and emit all the necessary information int TBD.

This builds on  swiftlang#74935 by further refining how we fixed that issue, and adds more regression tests. It also removes a load of special casing of distributed thunks in library evolution mode, which is great.

Resolves and adds regression test for for rdar://145292018

This is also a more proper fix to the previously resolved but in a not-great-way which caused other issues:
- resolves rdar://128284016
- resolves rdar://128310903

Review followup, cleanup test
@ktoso ktoso requested a review from a team as a code owner April 21, 2025 11:37
@ktoso
Copy link
Contributor Author

ktoso commented Apr 21, 2025

This is also a more proper fix to the previously resolved but in a not-great-way which caused other issues:

refs rdar://128284016
refs rdar://128310903

@ktoso ktoso requested a review from xedin April 21, 2025 11:37
@ktoso
Copy link
Contributor Author

ktoso commented Apr 21, 2025

@swift-ci please test

@ktoso ktoso changed the title [Distributed] Distributed actor usage through protocol with lib-evolution [6.2][Distributed] Distributed actor usage through protocol with lib-evolution Apr 21, 2025
@ktoso ktoso merged commit 3728d79 into swiftlang:release/6.2 Apr 22, 2025
5 checks passed
@ktoso ktoso deleted the pick-wip-regression-test-for-b-da-bad-access branch April 22, 2025 03:16
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