Skip to content
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

Test failures on Windows #8121

Open
1 task done
dschaefer2 opened this issue Nov 15, 2024 · 0 comments
Open
1 task done

Test failures on Windows #8121

dschaefer2 opened this issue Nov 15, 2024 · 0 comments
Assignees
Labels
bug test suite improvements to SwiftPM test suite windows

Comments

@dschaefer2
Copy link
Member

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

Now that we have swiftpm able to self build on Windows, running swift test I see a number of test failures. We should fix them up so we can turn them on in CI.

Test Case 'PackageModelTests.testDetermineSwiftCompilers' started at 2024-11-15 12:11:26.893
<EXPR>:0: error: PackageModelTests.testDetermineSwiftCompilers : threw error "toolchain is invalid: could not find CLI tool `swiftc` at any of these directories: [<AbsolutePath:"C:\Users\DSCHAE~1\AppData\Local\Temp\TemporaryDirectory.49clSz\bin1">, <AbsolutePath:"C:\Users\DSCHAE~1\AppData\Local\Temp\TemporaryDirectory.49clSz\bin2">]"
Test Case 'PackageModelTests.testDetermineSwiftCompilers' failed (0.036 seconds)

Test Case 'SwiftSDKBundleTests.testInstallRemote' started at 2024-11-15 12:11:27.033
[debug]: registering 'tar.exe zxf C:\Users\DSCHAE~1\AppData\Local\Temp\TemporaryDirectory.8Scm2P\bundle.tar.gz -C C:\Users\DSCHAE~1\AppData\Local\Temp\TemporaryDirectory.8Scm2P\extraction-results' with terminator
<EXPR>:0: error: SwiftSDKBundleTests.testInstallRemote : threw error "missingExecutableProgram(program: "tar.exe")"
Test Case 'SwiftSDKBundleTests.testInstallRemote' failed (0.041 seconds)

And then an assertion failure which terminates the tests.

Test Case 'ManifestSourceGenerationTests.testAdvancedFeatures' started at 2024-11-15 12:12:15.968
TSCBasic/Path.swift:969: Assertion failed

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

To self test I do the following:

swift build -c release
.\.build\x86_64-unknown-windows-msvc\release\swift-test

That lets us test in debug from the release build to avoid conflicts.

Swift Package Manager version/commit hash

tip of main.

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

Windows

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

2 participants