Skip to content

Remove skipped tests on windows #8433

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

Open
1 task done
bkhouri opened this issue Mar 31, 2025 · 0 comments
Open
1 task done

Remove skipped tests on windows #8433

bkhouri opened this issue Mar 31, 2025 · 0 comments
Assignees
Labels
bug test suite improvements to SwiftPM test suite windows

Comments

@bkhouri
Copy link
Contributor

bkhouri commented Mar 31, 2025

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

With #8210 merged, and #8176 (add windows self-hosted pipeline) a required PR build, we need to remove as many skipped tests on Windows as possible, and raise GitHub issues for actual Windows platform issues.

Acceptance Criteria:

  • remove as many skipped tests on Windows as possible
  • a GitHub issue exists to track a tests that is skipped on Windows

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

@bkhouri bkhouri added the bug label Mar 31, 2025
@bkhouri bkhouri self-assigned this Mar 31, 2025
@bkhouri bkhouri added windows test suite improvements to SwiftPM test suite labels Mar 31, 2025
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 1, 2025
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 3, 2025
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 3, 2025
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 3, 2025
Convert test from XCTest to Swift Testing.
  - Tests/BasicsTests/FileSystem/FileSystemTests.swift
  - Tests/BasicsTests/FileSystem/PathShimTests.swift
  - Tests/BasicsTests/FileSystem/PathTests.swift
  - Tests/BasicsTests/FileSystem/TemporaryFileTests.swift
  - Tests/BasicsTests/FileSystem/VFSTests.swift

relates to: swiftlang#8433
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 3, 2025
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 3, 2025
Convert test from XCTest to Swift Testing.
  - Tests/BasicsTests/FileSystem/FileSystemTests.swift
  - Tests/BasicsTests/FileSystem/PathShimTests.swift
  - Tests/BasicsTests/FileSystem/PathTests.swift
  - Tests/BasicsTests/FileSystem/TemporaryFileTests.swift
  - Tests/BasicsTests/FileSystem/VFSTests.swift

relates to: swiftlang#8433
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 3, 2025
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 4, 2025
Update the Basics/FileSystem/*.swift test to enable more tests that pass on Windows

- Update function name to get a sense of which tests are passing on Windows

Fixes: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 4, 2025
Update the Basics/FileSystem/*.swift test to enable more tests that pass on Windows

- Update function name to get a sense of which tests are passing on Windows

Fixes: swiftlang#8433
Issue: rdar://148248105
Depends on: swiftlang#8448
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 4, 2025
Convert test from XCTest to Swift Testing.
  - Tests/BasicsTests/FileSystem/FileSystemTests.swift
  - Tests/BasicsTests/FileSystem/PathShimTests.swift
  - Tests/BasicsTests/FileSystem/PathTests.swift
  - Tests/BasicsTests/FileSystem/TemporaryFileTests.swift
  - Tests/BasicsTests/FileSystem/VFSTests.swift

relates to: swiftlang#8433
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 4, 2025
Update the Basics/FileSystem/*.swift test to enable more tests that pass on Windows

- Update function name to get a sense of which tests are passing on Windows

Fixes: swiftlang#8433
Issue: rdar://148248105
Depends on: swiftlang#8448
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 4, 2025
Update the Basics/FileSystem/*.swift test to enable more tests that pass on Windows

- Update function name to get a sense of which tests are passing on Windows

Depends on: swiftlang#8448
Partially Addresses: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 4, 2025
Enable more tests on Windows that are currently passing in
Basics/FileSystem/*.swift

Depends on: swiftlang#8448
Partially Addresses: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 4, 2025
Enable more tests on Windows that are currently passing in
Basics/FileSystem/*.swift

Depends on: swiftlang#8448
Partially Addresses: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 8, 2025
Enable WorkspaceTests on Windows that, for some reason, previously
failed.

Relates: swiftlang#8433
rdar://148248105
bkhouri added a commit that referenced this issue Apr 8, 2025
Some tests in Tests/SourceControlTests are passing on Windows since
upgrading the Git Version in the associated docker image, which was
completd in https://github.com/swiftlang/swift-docker/pulls/452

Enable the tests that are skipped.

Relates to: #8433 
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 8, 2025
- Enable a few AsyncProcessTests
- Enable the lone skipped test in EnvironmentTests
- Enable all SourceKitLSPAPITests on Windows
- Replace usages of `fixwin` with `AbsolutePath.pathString`

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 8, 2025
Util $8223 is fixedd copy some helpers from IntergrationTests/Source/IntegrationTests
to Test/_InternalTestSupport so we can re-use the functionality.

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 8, 2025
Until $8223 is fixed copy some helpers from `IntergrationTests/Source/IntegrationTests``
to `Test/_InternalTestSupport` so we can re-use the functionality.

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 8, 2025
Convert test from XCTest to Swift Testing.
  - Tests/BasicsTests/FileSystem/FileSystemTests.swift
  - Tests/BasicsTests/FileSystem/PathShimTests.swift
  - Tests/BasicsTests/FileSystem/PathTests.swift
  - Tests/BasicsTests/FileSystem/TemporaryFileTests.swift
  - Tests/BasicsTests/FileSystem/VFSTests.swift

relates to: swiftlang#8433
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 15, 2025
Enable all but 3 tests.

Some AsyncProcessTests call to `cat` and `echo` commands.  Update the
executable to be called correctly on Windows via the `cmd.exe /c`
command, where the `cat` equivalent is `type`, which displays the file
contents.

Also, many tests call a script. We created a batch file, which simply
calls the associated script invoked by python.

Only 3 tests remain skipped.
- one failed assertion on Windows
- two otheers appear to have caused `swift test` tp hang.

Depends on: swiftlang#8495
Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 15, 2025
Until swiftlang#8223 is fixed copy some helpers from
`IntergrationTests/Source/IntegrationTests` to
`Test/_InternalTestSupport` so we can re-use the functionality.

Also, to workaround a Build preset issue, add a dependency on Swift
Testing when we are building using local dependencies.

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 15, 2025
Enable all but 3 tests.

Some AsyncProcessTests call to `cat` and `echo` commands.  Update the
executable to be called correctly on Windows via the `cmd.exe /c`
command, where the `cat` equivalent is `type`, which displays the file
contents.

Also, many tests call a script. We created a batch file, which simply
calls the associated script invoked by python.

Only 3 tests remain skipped.
- one failed assertion on Windows
- two otheers appear to have caused `swift test` tp hang.

Depends on: swiftlang#8495
Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit that referenced this issue Apr 15, 2025
Split the SerializedJSONTests into tests that pass and fail on Windows

Related: #8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
- Enable the BuildPlanTests on Windows
- Split a PrepareForIndexTests tests into two withthe passing, and
  failing on Windows
- update/add a message on some skipped windows tests, with a reference
  to GitHub Issue

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Until swiftlang#8223 is fixed copy some helpers from
`IntergrationTests/Source/IntegrationTests` to
`Test/_InternalTestSupport` so we can re-use the functionality.

Related to: swiftlang#8433
rdar://148248105

(cherry picked from commit e303b89)
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Convert test from XCTest to Swift Testing.
  - Tests/BasicsTests/FileSystem/FileSystemTests.swift
  - Tests/BasicsTests/FileSystem/PathShimTests.swift
  - Tests/BasicsTests/FileSystem/PathTests.swift
  - Tests/BasicsTests/FileSystem/TemporaryFileTests.swift
  - Tests/BasicsTests/FileSystem/VFSTests.swift

relates to: swiftlang#8433
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Enable more tests on Windows that are currently passing in
Basics/FileSystem/*.swift

Depends on: swiftlang#8448
Partially Addresses: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Until swiftlang#8223 is fixed copy some helpers from
`IntergrationTests/Source/IntegrationTests` to
`Test/_InternalTestSupport` so we can re-use the functionality.

Also, to workaround a Build preset issue, add a dependency on Swift
Testing when we are building using local dependencies.

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Convert test from XCTest to Swift Testing.
  - Tests/BasicsTests/FileSystem/FileSystemTests.swift
  - Tests/BasicsTests/FileSystem/PathShimTests.swift
  - Tests/BasicsTests/FileSystem/PathTests.swift
  - Tests/BasicsTests/FileSystem/TemporaryFileTests.swift
  - Tests/BasicsTests/FileSystem/VFSTests.swift

relates to: swiftlang#8433
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Enable more tests on Windows that are currently passing in
Basics/FileSystem/*.swift

Depends on: swiftlang#8448
Partially Addresses: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Until swiftlang#8223 is fixed copy some helpers from
`IntergrationTests/Source/IntegrationTests` to
`Test/_InternalTestSupport` so we can re-use the functionality.

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 16, 2025
Enable all but 3 tests.

Some AsyncProcessTests call to `cat` and `echo` commands.  Update the
executable to be called correctly on Windows via the `cmd.exe /c`
command, where the `cat` equivalent is `type`, which displays the file
contents.

Also, many tests call a script. We created a batch file, which simply
calls the associated script invoked by python.

Only 3 tests remain skipped.
- one failed assertion on Windows
- two otheers appear to have caused `swift test` tp hang.

Depends on: swiftlang#8495
Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 21, 2025
Until swiftlang#8223 is fixed copy some helpers from
`IntergrationTests/Source/IntegrationTests` to
`Test/_InternalTestSupport` so we can re-use the functionality.

Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 21, 2025
Convert test from XCTest to Swift Testing.
  - Tests/BasicsTests/FileSystem/PathShimTests.swift
  - Tests/BasicsTests/FileSystem/PathTests.swift
  - Tests/BasicsTests/FileSystem/TemporaryFileTests.swift
  - Tests/BasicsTests/FileSystem/VFSTests.swift

relates to: swiftlang#8433
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 21, 2025
Enable more tests on Windows that are currently passing in
Basics/FileSystem/*.swift

Depends on: swiftlang#8448
Partially Addresses: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 22, 2025
Enable all but 3 tests.

Some AsyncProcessTests call to `cat` and `echo` commands.  Update the
executable to be called correctly on Windows via the `cmd.exe /c`
command, where the `cat` equivalent is `type`, which displays the file
contents.

Also, many tests call a script. We created a batch file, which simply
calls the associated script invoked by python.

Only 3 tests remain skipped.
- one failed assertion on Windows
- two otheers appear to have caused `swift test` tp hang.

Depends on: swiftlang#8495
Related to: swiftlang#8433
rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 22, 2025
Enable all but 3 tests.

Some AsyncProcessTests call to `cat` and `echo` commands.  Update the
executable to be called correctly on Windows via the `cmd.exe /c`
command, where the `cat` equivalent is `type`, which displays the file
contents.

Also, many tests call a script. We created a batch file, which simply
calls the associated script invoked by python.

Only 3 tests remain skipped.
- one failed assertion on Windows
- two otheers appear to have caused `swift test` tp hang.

Depends on: swiftlang#8495
Related to: swiftlang#8433
rdar://148248105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug test suite improvements to SwiftPM test suite windows
Projects
None yet
Development

No branches or pull requests

1 participant