Skip to content

[Workaround][Concurrency] Mark Job as NOT moveonly until we fix moveonly use in stdlib #64536

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 1 commit into from
Mar 22, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Mar 22, 2023

Moveonly types in stdlib, the only instance of which is Job, are somehow broken and sometimes fail to look up like this:

custom_executors_priority.swift:13:38: error: cannot find type 'Job' in scope
  public func enqueue(_ job: __owned Job) {
                                     ^~~

This can be worked around by doing a clean build and it sometimes just works.
It seems to be caused by moveonly, and not other configuration issues.

In order to get CI into a workable state until this issue is fixed, this PR removes the annotation and disables (or works-around) tests using this type.

⚠️ We must either fix moveonly types and revert his PR, or remove Job before shipping. ⚠️
⚠️ This PR is a temporary state to allow debugging the issue. ⚠️

@ktoso ktoso changed the title [Workaround][Concurrency] Mark Job as NOT moveonly until we fix moveonly types [Workaround][Concurrency] Mark Job as NOT moveonly until we fix them in stdlib Mar 22, 2023
@ktoso ktoso changed the title [Workaround][Concurrency] Mark Job as NOT moveonly until we fix them in stdlib [Workaround][Concurrency] Mark Job as NOT moveonly until we fix moveonly use in stdlib Mar 22, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Mar 22, 2023

@swift-ci please clean smoke test

@ktoso ktoso merged commit abe377c into swiftlang:main Mar 22, 2023
@ktoso ktoso deleted the wip-guard-from-null-job branch March 23, 2023 01:48
kavon added a commit to kavon/swift that referenced this pull request Mar 23, 2023
kavon added a commit to kavon/swift that referenced this pull request Mar 23, 2023
etcwilde pushed a commit to etcwilde/swift that referenced this pull request Apr 19, 2023
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.

1 participant