Skip to content

[Distributed][CustomRuntimeAttrs] Support custom runtime attributes on distributed actors #63364

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 5 commits into from
Feb 6, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Feb 2, 2023

Making sure we can use custom runtime attributes on a distributed actor even if only on distributed methods.

It seems we can't do this on non distributed methods at least typecheck wise, but it fails in SIL -- would you be able to have a look @xedin? We should make sure we're able to annotate distributed funcs using attributes, this would be tremendously useful in the near term for distributed.

@ktoso
Copy link
Contributor Author

ktoso commented Feb 2, 2023

@swift-ci please smoke test

@ktoso ktoso force-pushed the wip-distributed-attrs branch from 368451c to 079cc9c Compare February 2, 2023 09:11
@ktoso
Copy link
Contributor Author

ktoso commented Feb 3, 2023

Depends on #63396

@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Feb 3, 2023
ktoso and others added 3 commits February 6, 2023 14:19
Making sure we can use custom runtime attributes on a `distributed actor` even if only on distributed methods.

It seems we can't do this on non distributed methods, as the call is made cross actor so the distributed isolation prevents it. Not sure if that should be possible anyway -- as long as distributed funcs can be annotated the most important part works <3
@ktoso ktoso force-pushed the wip-distributed-attrs branch from d2abc38 to 12d1ebc Compare February 6, 2023 09:49
@ktoso
Copy link
Contributor Author

ktoso commented Feb 6, 2023

@swift-ci please smoke test and merge

@ktoso
Copy link
Contributor Author

ktoso commented Feb 6, 2023

Updated the tests, thanks for review! I kept the compilation only one as well.

@ktoso
Copy link
Contributor Author

ktoso commented Feb 6, 2023

@swift-ci please smoke test and merge

@ktoso ktoso changed the title [Distributed][CustomRuntimeAttrs] Add distributed actor test cases [Distributed][CustomRuntimeAttrs] Support custom runtime attributes on distributed actors Feb 6, 2023
@swift-ci swift-ci merged commit 64a5f48 into main Feb 6, 2023
@swift-ci swift-ci deleted the wip-distributed-attrs branch February 6, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants