Skip to content

Conversation

@etcwilde
Copy link
Member

main cherry-pick of #489.

The most recent versions of parse_version throw an exception if the version is empty. The version passed in is only set on Darwin (call to mac_ver(), so it's causing test failures on newer versions of Linux since the test suite can't even start.

Now, the only reason for the version parse is because the tests are looking at whether or not concurrency is available on the OS. This is only a limitation if we're working with Darwin. Swift 5.10 on Windows and Linux always have a Swift 5.10 concurrency runtime, so we don't even need to check for a version.

rdar://128502662
(cherry picked from commit 65e6ecd)

The most recent versions of `parse_version` throw an exception if the
version is empty. The version passed in is only set on Darwin (call to
`mac_ver()`, so it's causing test failures on newer versions of Linux
since the test suite can't even start.

Now, the only reason for the version parse is because the tests are
looking at whether or not concurrency is available on the OS. This is
only a limitation if we're working with Darwin. Swift 5.10 on Windows
and Linux always have a Swift 5.10 concurrency runtime, so we don't even
need to check for a version.

rdar://128502662
(cherry picked from commit 65e6ecd)
@etcwilde
Copy link
Member Author

@swift-ci please test

@etcwilde
Copy link
Member Author

@swift-ci please test

@etcwilde
Copy link
Member Author

@swift-ci please test Linux

@etcwilde
Copy link
Member Author

swiftlang/swift-foundation#885
@swift-ci please test Linux

@grynspan
Copy link
Contributor

@swift-ci test

@grynspan
Copy link
Contributor

@etcwilde Do you still want to merge this change?

@etcwilde
Copy link
Member Author

Yeah, we'll need it eventually when working with newer python versions. I'm starting to think maybe my change did break something, but I haven't had a chance to figure out why.

@shahmishal
Copy link
Member

@swift-ci test

@etcwilde
Copy link
Member Author

swiftlang/sourcekit-lsp#1666

@swift-ci please test

@etcwilde
Copy link
Member Author

@swift-ci please test

@etcwilde
Copy link
Member Author

@swift-ci please test Windows platform

@etcwilde etcwilde merged commit a356762 into swiftlang:main Sep 20, 2024
@etcwilde etcwilde deleted the ewilde/guard-parse-version branch September 20, 2024 16:09
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.

5 participants