-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add and fix missing Triple
tests
#6842
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
@swift-ci smoke test |
Cherry-pick of #6842. Vendored Swift Driver triple was not checked against a few tests that weren't brought over from TSC after `TSC.Triple` type was deprecated. We should fix those tests, especially as they verified that per-component equality for triples worked instead of the current string-based equality check. Also fixed `Utilities/soundness.sh` script failures. (cherry picked from commit 2cdc604) ``` # Conflicts: # Tests/BasicsTests/FileSystem/PathShimTests.swift # Tests/BasicsTests/FileSystem/PathTests.swift ```
Thanks! The changes to vendored files are only |
Not exclusively, let me revert the formatting changes to make it easier to review those. |
2cdc604
to
cfb7836
Compare
@@ -239,53 +239,6 @@ extension Triple { | |||
} | |||
} | |||
|
|||
// The Darwin platform version used for linking. | |||
public var darwinLinkerPlatformVersion: Version { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed as unused and therefore not worth adapting to the optionality changes made in this PR.
Sources/Basics/Vendor/Triple.swift
Outdated
@@ -72,14 +72,16 @@ public struct Triple { | |||
|
|||
/// Represents a version that may be present in the target triple. | |||
public struct Version: Equatable, Comparable, CustomStringConvertible { | |||
public static let zero = Version(0, 0, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed as unused, previously it was incorrectly used as a substitute for nil
where Triple.Version
should've been optional in the first place.
@neonichu ready for review |
@swift-ci smoke test |
1 similar comment
@swift-ci smoke test |
@swift-ci test windows |
What's the plan here, are you planning to upstream the changes? It doesn't seem ideal to make permanent changes because that'll make it harder to update the vendored copy. Another option could be to wrap the entire driver triple so that we control the API and don't have to care about any of its surface that we think is wrong. |
@swift-ci smoke test linux |
@swift-ci test windows |
I prefer to upstream these changes, will create corresponding PRs on swift-driver after this one is merged. |
Could we do that in reverse order for the |
Makes sense, I need a review on the 5.9 PR then so that it unblocks versioned triples checks in #6819. Thanks! |
Cherry-pick of #6842. Vendored Swift Driver triple was not checked against a few tests that weren't brought over from TSC after `TSC.Triple` type was deprecated. We should fix those tests, especially as they verified that per-component equality for triples worked instead of the current string-based equality check. Also fixed some of the `Utilities/soundness.sh` script failures. * Revert formatting changes (cherry picked from commit cfb7836) * Fix optionality issues after revert (cherry picked from commit 8de70d3)
8de70d3
to
5bcb8b8
Compare
Triple
tests
@swift-ci test |
@swift-ci test windows |
Vendored Swift Driver triple was not checked against a few tests that weren't brought over from TSC after `TSC.Triple` type was deprecated. We should fix those tests, especially as they verified that per-component equality for triples worked instead of the current string-based equality check. Also fixed some of the `Utilities/soundness.sh` script failures. Related to rdar://113967401
Vendored Swift Driver triple was not checked against a few tests that weren't brought over from TSC after `TSC.Triple` type was deprecated. We should fix those tests, especially as they verified that per-component equality for triples worked instead of the current string-based equality check. Also fixed some of the `Utilities/soundness.sh` script failures. Related to rdar://113967401
Vendored Swift Driver triple was not checked against a few tests that weren't brought over from TSC after
TSC.Triple
type was deprecated. We should fix those tests, especially as they verified that per-component equality for triples worked instead of the current string-based equality check.Also fixed some of the
Utilities/soundness.sh
script failures.Related to rdar://113967401