Skip to content

[5.1] Replace stdlib and test/stdlib 9999 availability. (#26108) #26146

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

Conversation

stephentyrone
Copy link
Contributor

@stephentyrone stephentyrone commented Jul 15, 2019

  • Replace stdlib and test/stdlib 9999 availability.

macOS 9999 -> macOS 10.15
iOS 9999 -> iOS 13
tvOS 9999 -> tvOS 13
watchOS 9999 -> watchOS 6

  • Restore the pre-10.15 version of public init?(_: NSRange, in: __shared String)

We need this to allow master to work on 10.14 systems (in particular, to allow PR testing to work correctly without disabling back-deployment tests).

Cherry-pick of #26108

Explanation: We still have 9999 availability sprinkled throughout the tests and standard library. This change replaces all the standard library availability with the appropriate macOS, iOS, tvOS and watchOS versions. It's important to get these changes landed before people start adding features synced with future Swift versions to avoid ambiguity.

Scope: Availability annotations only, except that we had to add a fallback implementation of an internal method that will never actually be called in a built standard lib (which is always in-sync with the host OS platform), but is necessary for PR testing to work (because we're testing a 10.15 stdlib on a 10.14 host).

Risk: Low. This should not have any effect on actually released stdlibs or toolchains, since they already have availability annotated.

Testing: Full integration testing.

Reviewer: @lorentey, @milseman

Radar: rdar://problem/53163787

* Replace stdlib and test/stdlib 9999 availability.

macOS 9999 -> macOS 10.15
iOS 9999 -> iOS 13
tvOS 9999 -> tvOS 13
watchOS 9999 -> watchOS 6

* Restore the pre-10.15 version of public init?(_: NSRange, in: __shared String)

We need this to allow master to work on 10.14 systems (in particular, to allow PR testing to work correctly without disabling back-deployment tests).
@stephentyrone
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - b4f38b8

@stephentyrone
Copy link
Contributor Author

Failure is in LLDB/ExclusivityREPL.test, which should not have anything to do with these changes, but also did not effect #26145. Investigating.

@stephentyrone
Copy link
Contributor Author

@dcci and I are unclear on why this failed. Going to re-run test and see what happens.

@stephentyrone
Copy link
Contributor Author

@swift-ci please test

@stephentyrone
Copy link
Contributor Author

@swift-ci nominate

1 similar comment
@stephentyrone
Copy link
Contributor Author

@swift-ci nominate

@stephentyrone stephentyrone merged commit 14c12e5 into swiftlang:swift-5.1-branch Jul 16, 2019
@stephentyrone stephentyrone deleted the swift-5.1-stdlib-availability branch July 16, 2019 19:24
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