-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fixes many tests (plus skips) to get more tests running on windows #8609
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 test |
11e5eb2
to
4948871
Compare
@swift-ci test |
4948871
to
50d0a9d
Compare
@swift-ci test |
1 similar comment
@swift-ci test |
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.
Great work enabling a bunch of tests on Windows. I know this is a Draft PR, but I have some comments, some of why may not be applicable based on the remaining work prior to marking as Ready :)
50d0a9d
to
afc03c9
Compare
@swift-ci test |
afc03c9
to
c94f13d
Compare
@swift-ci test |
566280b
to
0fb200a
Compare
@swift-ci test |
49246de
to
945420b
Compare
@swift-ci test |
945420b
to
09a553d
Compare
@swift-ci test |
09a553d
to
8fa313e
Compare
@swift-ci test |
8fa313e
to
73a640f
Compare
@swift-ci test |
@swift-ci test self hosted windows |
3 similar comments
@swift-ci test self hosted windows |
@swift-ci test self hosted windows |
@swift-ci test self hosted windows |
@swift-ci test windows |
0c774f6
to
0b0a4c2
Compare
@swift-ci test |
@swift-ci test windows |
1 similar comment
@swift-ci test windows |
0b0a4c2
to
947b33e
Compare
@swift-ci test |
@swift-ci test windows |
947b33e
to
92f918e
Compare
@swift-ci test |
@swift-ci test windows |
92f918e
to
b380a7d
Compare
@swift-ci test |
b380a7d
to
0de27ae
Compare
@swift-ci test |
@swift-ci test windows |
0de27ae
to
7d389f3
Compare
@swift-ci test |
@swift-ci test windows |
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.
Thanks for this @daveinglis . It's great to see increased test coverage on Windows.
I have some comments, but nothing blocking.
Fixtures/DependencyResolution/External/Complex/FisherYates/src/Fisher-Yates_Shuffle.swift
Show resolved
Hide resolved
@@ -1,4 +1,4 @@ | |||
// swift-tools-version: 5.7 | |||
// swift-tools-version: 6.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.
issue (possibly-blocking): Although this seems like a very simple change, I fear this might introduce regression as the swift-tools-version for the test package was set for 5.7 for a reason.
What is the purpose of updating this? Can we revert this back to 5.7 and maybe disable (or mark the test as expected failure)?
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.
updating the plugin to use URL API instead of Path requires this.
Fixtures/Miscellaneous/TestableExe/Tests/TestableExeTests/TestableExeTests.swift
Show resolved
Hide resolved
@@ -559,9 +559,14 @@ private struct CommandTaskTracker { | |||
} | |||
|
|||
private func progressText(of command: SPMLLBuild.Command, targetName: String?) -> String { | |||
#if os(Windows) |
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.
suggestion (non-blocking): can we define the path separator in a common location so we don't have to redefine it multiple times whenever a test requires it?
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.
something to consider maybe if we ever vender in the TSC Path stuff into swift pm to remove that dependency... some day...
@@ -1706,6 +1716,8 @@ class PackageCommandTestCase: CommandsBuildProviderTestCase { | |||
} | |||
|
|||
func testOnlyUseVersionsFromResolvedFileFetchesWithExistingState() async throws { | |||
try XCTSkipOnWindows(because: "error: Package.resolved file is corrupted or malformed, needs investigation") |
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.
issue: can we raise a GitHub issue to fix this test, and reference the issue in the reason?
This comment applies to all skipped tests and can be done in a follow-up PR.
@@ -18,12 +18,14 @@ import _InternalTestSupport | |||
import Workspace | |||
import XCTest | |||
|
|||
import enum TSCUtility.Git |
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.
thought: I wonder if we should vender the Git
symbol in SwiftPM so we remove a dependency on TSC. I guess it's a discussion for another time.
Now that we can have executable dependencies on test targets for windows this change updates many tests that have not been building/running on windows.
closes #8606
closes #8658
closes #8547