Toolchain fails to build when Swift Package Manager contains a Swift Testing Tests #79113
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
When Swift Package Manager contains a Swift Testing Tests, the OSS toolchain build contains compilation errors on swift Package Manager when building the tests.
The Swift Testing test PR was reverted from Swift Package Manager swiftlang/swift-package-manager#8266, but we want to re-introduced the Swift Testing Canary test in Swift Package Manager ( see swiftlang/swift-package-manager#8267). However, if swiftlang/swift-package-manager#8267 is merged, the OSS toolchain will fail to build.
Looking the OSS Pipeline that failed, the
swiftlang/swift/utils/build-script
is executed and uses the build presetbuildbot_osx_package
.The
buildbot_osx_package
preset has themixin_osx_package_base
preset, which specifiesswift-testing
andswift-testing-macros
, in addition to specifyinginstall-swift-testing
andinstall-swift-testing-macros
.So the preset should contains swift testing. However, the build fails to find swift-testing.
Reproduction
To reproduce:
Expected behavior
Once swiftlang/swift-package-manager#8267 is merged, an OSS toolchain build does not not cause a "no such module 'Testing'` compilation error.
Environment
Observed in the OSS CI pipeline .
Additional information
No response
The text was updated successfully, but these errors were encountered: