Skip to content

Continue encoding value for deprecated property in runner plan snapshot to avoid decoding error in clients #1023

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 13, 2025

Conversation

stmontgomery
Copy link
Contributor

This fixes a regression in the encoding of the Runner.Plan snapshot types, which can manifest when using Xcode 16.

Motivation:

The isParallelizationEnabled property was deprecated and changed from a stored property to a derived one in #901. That caused the value to no longer be encoded in Runner.Plan.Action.RunOptions, which can cause decoding errors in versions of Xcode which expect it to still be present.

Modifications:

  • Manually implement Codable conformance for the affected type to begin including a hardcoded value.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

Fixes rdar://146284519

…ot to avoid decoding error in clients

Fixes rdar://146284519
@stmontgomery stmontgomery added bug 🪲 Something isn't working tools integration 🛠️ Integration of swift-testing into tools/IDEs workaround Workaround for an issue in another component (may need to revert later) labels Mar 13, 2025
@stmontgomery stmontgomery added this to the Swift 6.2 milestone Mar 13, 2025
@stmontgomery stmontgomery self-assigned this Mar 13, 2025
@stmontgomery
Copy link
Contributor Author

@swift-ci please test

@stmontgomery stmontgomery merged commit cabf4d4 into swiftlang:main Mar 13, 2025
3 checks passed
@stmontgomery stmontgomery deleted the plan-run-options-coding branch March 13, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working tools integration 🛠️ Integration of swift-testing into tools/IDEs workaround Workaround for an issue in another component (may need to revert later)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants