Skip to content

Commit 5fda9ad

Browse files
committed
Skip Windows tests triggering hangs in CI
1 parent d7c8f12 commit 5fda9ad

9 files changed

+12
-11
lines changed

Tests/SWBBuildServiceTests/BuildServiceTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import SwiftBuild
1616
import SWBBuildService
1717
import SWBTestSupport
1818

19-
@Suite fileprivate struct BuildServiceTests: CoreBasedTests {
19+
@Suite(.skipHostOS(.windows))
20+
fileprivate struct BuildServiceTests: CoreBasedTests {
2021
@Test func createXCFramework() async throws {
2122
do {
2223
let (result, message) = try await withBuildService { await $0.createXCFramework([], currentWorkingDirectory: Path.root.str, developerPath: nil) }

Tests/SwiftBuildTests/BuildOperationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import SWBUtil
2222
import SWBTestSupport
2323
import SWBProtocol
2424

25-
@Suite
25+
@Suite(.skipHostOS(.windows))
2626
fileprivate struct BuildOperationTests: CoreBasedTests {
2727
/// Check the basic behavior of an empty build.
2828
@Test

Tests/SwiftBuildTests/ConsoleCommands/CreateXCFrameworkCommandTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import SWBTestSupport
1717

1818
// Note: The functionality of this class is heavily unit tested in `XCFrameworkTests.swift`. These tests are only to ensure that the command is indeed hooked up and registered properly.
1919

20-
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
20+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"), .skipHostOS(.windows))
2121
fileprivate struct CreateXCFrameworkCommandTests {
2222
@Test
2323
func commandInvocation() async throws {

Tests/SwiftBuildTests/ConsoleCommands/GeneralCommandsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SwiftBuild
1515
import SWBTestSupport
1616
import SWBUtil
1717

18-
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
18+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"), .skipHostOS(.windows))
1919
fileprivate struct GeneralCommandsTests {
2020
@Test(.skipHostOS(.windows), // PTY not supported on Windows
2121
.requireHostOS(.macOS)) // something with terminal echo is different on macOS vs Linux

Tests/SwiftBuildTests/ConsoleCommands/ServiceConsoleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import SWBUtil
1919
import WinSDK
2020
#endif
2121

22-
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
22+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"), .skipHostOS(.windows))
2323
fileprivate struct ServiceConsoleTests {
2424
@Test
2525
func emptyInput() async throws {

Tests/SwiftBuildTests/ConsoleCommands/SessionCommandsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SWBTestSupport
1414
import Testing
1515
import SWBUtil
1616

17-
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
17+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"), .skipHostOS(.windows))
1818
fileprivate struct SessionCommandsTests {
1919
@Test(.skipHostOS(.windows), // PTY not supported on Windows
2020
.requireHostOS(.macOS)) // something with terminal echo is different on macOS vs Linux

Tests/SwiftBuildTests/ConsoleCommands/XcodeCommandsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SWBTestSupport
1414
import Testing
1515
import SWBUtil
1616

17-
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
17+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"), .skipHostOS(.windows))
1818
fileprivate struct XcodeCommandsTests {
1919
@Test(.skipHostOS(.windows), // PTY not supported on Windows
2020
.requireHostOS(.macOS)) // something with terminal echo is different on macOS vs Linux

Tests/SwiftBuildTests/MacroEvaluationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import SWBTestSupport
1818
@_spi(Testing) import SWBUtil
1919

2020
/// Test evaluating both using a scope, and directly against the model objects.
21-
@Suite
21+
@Suite(.skipHostOS(.windows))
2222
fileprivate struct MacroEvaluationTests {
2323
@Test
2424
func macroEvaluationBasics() async throws {
@@ -83,7 +83,7 @@ fileprivate struct MacroEvaluationTests {
8383
}
8484
}
8585

86-
@Test(.requireSDKs(.host), .userDefaults(["EnablePluginManagerLogging": "0"]))
86+
@Test(.requireSDKs(.host), .skipHostOS(.windows), .userDefaults(["EnablePluginManagerLogging": "0"]))
8787
func macroEvaluationAdvanced() async throws {
8888
try await withTemporaryDirectory { tmpDir in
8989
try await withAsyncDeferrable { deferrable in

Tests/SwiftBuildTests/PIFTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ fileprivate struct PIFTests {
226226
typealias LookupObject = (@Sendable (SwiftBuildServicePIFObjectType, String) async throws -> SWBPropertyListItem)
227227

228228
/// Check incremental PIF transfer.
229-
@Test(.userDefaults(["EnablePluginManagerLogging": "0"]))
229+
@Test(.skipHostOS(.windows), .userDefaults(["EnablePluginManagerLogging": "0"]))
230230
func sessionPIFLoading() async throws {
231231
let service = try await SWBBuildService()
232232

@@ -327,7 +327,7 @@ fileprivate struct PIFTests {
327327
}
328328

329329
/// Check PIF incremental cache.
330-
@Test(.userDefaults(["EnablePluginManagerLogging": "0"]))
330+
@Test(.skipHostOS(.windows), .userDefaults(["EnablePluginManagerLogging": "0"]))
331331
func sessionPIFCache() async throws {
332332
try await withTemporaryDirectory { tmpDir in
333333
try await withAsyncDeferrable { deferrable in

0 commit comments

Comments
 (0)