Skip to content

[6.2][Distributed] Fix distributed accessors for resilient modules #80574

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

Merged
merged 3 commits into from
Apr 8, 2025

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Apr 7, 2025

Description:

Scope/Impact: Projects using Distributed can use pedantic/all TBD verification mode.
Risk: Low. Makes sure accessors are emitted also in resilient mode and corrects the same in TBD.
Testing: Added reproducer for the issue to test suite
Reviewed by: @xedin

Original PR: #80526 #80523
Radar: rdar://128284016 rdar://148224780

@ktoso ktoso requested a review from a team as a code owner April 7, 2025 04:11
@ktoso ktoso changed the title Disable test on windows since %env not supported [6.2][Distributed] Fix distributed accessors for resilient modules Apr 7, 2025
@ktoso ktoso force-pushed the wip-pickwip-tapi-validation branch from 3caad6d to 9c8c2f8 Compare April 7, 2025 04:18
ktoso added 3 commits April 7, 2025 13:19
This is an important fix for libraries using @resolvable in resilient
libraries. Without the fix we're missing an accessor and this will fail
some remote calls which make use of remote calls on resolvable
protocols. This would manifest as missing accessor error thrown by the
executeDistributedTarget function.

resolves rdar://148224780
This resolves pedantic "all" TBD validation issues, i.e. we dont emit
unexpected records anymore - we would before as we only checked for
is_distributed but we also want to skip those for is_distributed_thunk

resolves rdar://128284016
@ktoso ktoso force-pushed the wip-pickwip-tapi-validation branch from 9c8c2f8 to eca421d Compare April 7, 2025 04:19
@ktoso
Copy link
Contributor Author

ktoso commented Apr 7, 2025

@swift-ci please test

@ktoso
Copy link
Contributor Author

ktoso commented Apr 7, 2025

@swift-ci please build toolchain macOS

@ktoso ktoso requested a review from hborla April 8, 2025 02:54
@ktoso ktoso merged commit 99ff788 into swiftlang:release/6.2 Apr 8, 2025
6 checks passed
@ktoso ktoso deleted the wip-pickwip-tapi-validation branch April 10, 2025 03:17
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