Open
Description
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
SwiftPM tests execution were included in the Windows Platform build in swiftlang/swift#82274, however some tests were failing in the Platform build, but not in the self-hosted SwiftPM PR build.
The test is question is swiftRunQuietLogLevel(buildSystem:configuration:)
, which verifies the behaviour of passing --quiet
to swift run
.
Expected behavior
The test passes without any known issues
Actual behavior
× Test swiftRunQuietLogLevel(buildSystem:configuration:) recorded an issue with 2 arguments buildSystem → .swiftbuild, configuration → .debug at RunCommandTests.swift:401:6: Caught error: terminated(1): T:\x86_64-unknown-windows-msvc\PackageManagerTests\x86_64-unknown-windows-msvc\release\swift-package-manager --package-path T:\tmp\Miscellaneous_SwiftRun.ngsC8z\Miscellaneous_SwiftRun --configuration debug --build-system swiftbuild --quiet output:
Building for debugging...
error: Unexpected build state
× Test swiftRunQuietLogLevel(buildSystem:configuration:) recorded an issue with 2 arguments buildSystem → .swiftbuild, configuration → .release at RunCommandTests.swift:401:6: Caught error: terminated(1): T:\x86_64-unknown-windows-msvc\PackageManagerTests\x86_64-unknown-windows-msvc\release\swift-package-manager --package-path T:\tmp\Miscellaneous_SwiftRun.HRzRlF\Miscellaneous_SwiftRun --configuration release --build-system swiftbuild --quiet output:
Building for production...
error: Unexpected build state
Steps to reproduce
- Ensure Re-apply "Tests: enable Swift PM tests in Windows toolchain build"" swift#82274, and all associated PR dependencies, are merged.
- Run the Windows platform build
Swift Package Manager version/commit hash
n/a
Swift & OS version (output of swift --version ; uname -a
)
Originally observed in swiftlang/swift#82274 PR build https://ci-external.swift.org/job/swift-PR-windows/42874/