Skip to content

Windows Test failures #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 · May be fixed by #8616
Open
1 task done

Windows Test failures #8433

bkhouri opened this issue Mar 31, 2025 · 0 comments · May be fixed by #8616
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 30, 2025
A few SourceControlPackageContainerTests fail for the same reason.  Keep skipping them but add a GitHub issue and the error that occurs to the skip reason

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 30, 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 30, 2025
A few SourceControlPackageContainerTests fail for the same reason.  Keep skipping them but add a GitHub issue and the error that occurs to the skip reason

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 30, 2025
A few SourceControlPackageContainerTests fail for the same reason.  Keep skipping them but add a GitHub issue and the error that occurs to the skip reason

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 30, 2025
Guard a test in ManifestSourceGenerationTest based on the compiler
version, and annotate skipped tests with a GitHub issue.

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 30, 2025
A few SourceControlPackageContainerTests fail for the same reason.  Keep skipping them but add a GitHub issue and the error that occurs to the skip reason

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue Apr 30, 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 May 1, 2025
Guard a test in ManifestSourceGenerationTest based on the compiler
version, and annotate skipped tests with a GitHub issue.

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue May 1, 2025
Guard a test in ManifestSourceGenerationTest based on the compiler
version, and annotate skipped tests with a GitHub issue.

Also, enable the two Workspace Traits tests that were added after swiftlang#8569
was merged.

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue May 1, 2025
Guard a test in ManifestSourceGenerationTest based on the compiler
version, and annotate skipped tests with a GitHub issue.

Also, enable the two Workspace Traits tests that were added after swiftlang#8569
was merged.

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue May 1, 2025
A few SourceControlPackageContainerTests fail for the same reason.  Keep skipping them but add a GitHub issue and the error that occurs to the skip reason

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue May 1, 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 May 1, 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 May 2, 2025
Guard a test in ManifestSourceGenerationTest based on the compiler
version, and annotate skipped tests with a GitHub issue.

Also, enable the two Workspace Traits tests that were added after swiftlang#8569
was merged.

Relates to: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit that referenced this issue May 2, 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: #8433
Depends on: #8569
rdar://148248105
bkhouri added a commit that referenced this issue May 2, 2025
…8579)

A few SourceControlPackageContainerTests fail for the same reason. Keep
skipping them but add a GitHub issue and the error that occurs to the
skip reason

Relates to: #8433
Issue: rdar://148248105
Depends on: #8569
bkhouri added a commit that referenced this issue May 2, 2025
…g) (#8450)

Convert posted test from XCTest to Swift Testing, while updating to
ensuring we mark the tests that currently fail on windows.

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

Depends on swiftlang/swift#81217
Partially Addresses: #8433
Issue: rdar://148248105
bkhouri added a commit that referenced this issue May 2, 2025
…8582)

Guard a test in ManifestSourceGenerationTest based on the compiler
version, and annotate skipped tests with a GitHub issue.

Also, enable the two Workspace Traits tests that were added after #8569
was merged.

Relates to: #8433
Issue: rdar://148248105
@bkhouri bkhouri changed the title Remove skipped tests on windows Windows Test failures May 5, 2025
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue May 5, 2025
Enabled additional tests on Windows  Since all tests on Windows are
either enabled, or are skipped with an associated GitHub issue, update
the XCTSkipOnWindows(...) helper API to require providing a reson as to
why the test is being skipped.

Fixes: swiftlang#8433
Issue: rdar://148248105
@bkhouri bkhouri linked a pull request May 5, 2025 that will close this issue
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue May 12, 2025
Enabled additional tests on Windows  Since all tests on Windows are
either enabled, or are skipped with an associated GitHub issue, update
the XCTSkipOnWindows(...) helper API to require providing a reson as to
why the test is being skipped.

Fixes: swiftlang#8433
Issue: rdar://148248105
bkhouri added a commit to bkhouri/swift-package-manager that referenced this issue May 13, 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 that referenced this issue May 14, 2025
Until #8223 is fixed copy some helpers from
`IntergrationTests/Source/IntegrationTests` to
`Test/_InternalTestSupport` so we can re-use the functionality.

Related to: #8433
rdar://148248105
Depends on: swiftlang/swift#81401
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

Successfully merging a pull request may close this issue.

1 participant