Skip to content

🍒[5.9][Executors] Make move to ExecutorJob binary compatible; deprecate Job #65459

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
May 5, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Apr 27, 2023

Description: In #65038 we renamed Job to ExecutorJob and introduced a typealias. We knew this would be binary breaking however we hoped the change would not cause problems since noone had adopted this new API yet -- we were wrong.

This change introduces a binary compatible way to introduce ExecutorJob while keeping Job as deprecated and hopefully we'd be able to remove it still.

Diagnostics were adjusted to handle the new type and push developers towards the right implementation method.

Risk: Medium, this de-risks the binary compat break; The logic in diagnosing methods had to be carefully adjusted.
Review by: @DougGregor @airspeedswift @hborla
Testing: CI Testing, tests covering all three co-existing enqueue methods are added
Original PR: #65455
Radar: rdar://108772378

@ktoso ktoso requested a review from a team as a code owner April 27, 2023 01:59
@ktoso
Copy link
Contributor Author

ktoso commented Apr 27, 2023

@swift-ci please test

@ktoso ktoso changed the title [Executors] Make move to ExecutorJob binary compatible; deprecate Job 🍒[5.9][Executors] Make move to ExecutorJob binary compatible; deprecate Job Apr 27, 2023
@ktoso
Copy link
Contributor Author

ktoso commented May 2, 2023

rdar://108772378

@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels May 3, 2023
@ktoso
Copy link
Contributor Author

ktoso commented May 3, 2023

@swift-ci please test

@ktoso

This comment was marked as resolved.

@ktoso ktoso mentioned this pull request May 5, 2023
@ktoso
Copy link
Contributor Author

ktoso commented May 5, 2023

Maybe it's just in one of the configurations we test here hmmm

@ktoso ktoso force-pushed the pick-wip-bincompat-job-rename branch from 3d46a69 to 436325b Compare May 5, 2023 12:58
@ktoso
Copy link
Contributor Author

ktoso commented May 5, 2023

@swift-ci please test Linux

@ktoso ktoso force-pushed the pick-wip-bincompat-job-rename branch from 436325b to 4fc21de Compare May 5, 2023 13:37
@ktoso
Copy link
Contributor Author

ktoso commented May 5, 2023

@swift-ci please test and merge

The avoiding of Self is what will cause the weird test failure here -- there was misalignment on using Job and ExecutorJob in the test due to other changes

@swift-ci swift-ci merged commit 134eefe into swiftlang:release/5.9 May 5, 2023
@ktoso ktoso deleted the pick-wip-bincompat-job-rename branch May 5, 2023 22:47
@ktoso ktoso restored the pick-wip-bincompat-job-rename branch May 5, 2023 22:47
@ktoso ktoso deleted the pick-wip-bincompat-job-rename branch May 5, 2023 22:47
@ktoso ktoso restored the pick-wip-bincompat-job-rename branch May 5, 2023 22:47
@ktoso ktoso deleted the pick-wip-bincompat-job-rename branch May 8, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants