@@ -90,7 +90,7 @@ private func executeAddURLDependencyAndAssert(
9090}
9191
9292@Suite (
93- . serializedIfOnWindows ,
93+ . serialized ,
9494 . tags(
9595 . TestSize. large,
9696 . Feature. Command. Package. General,
@@ -1044,7 +1044,7 @@ struct PackageCommandTests {
10441044 func describeJson(
10451045 data: BuildData ,
10461046 ) async throws {
1047- try await withKnownIssue ( isIntermittent: ProcessInfo . hostOperatingSystem == . windows ) {
1047+ try await withKnownIssue ( isIntermittent: true ) {
10481048 try await fixture ( name: " DependencyResolution/External/Simple/Bar " ) { fixturePath in
10491049 // Generate the JSON description.
10501050 let ( jsonOutput, _) = try await execute (
@@ -1189,7 +1189,7 @@ struct PackageCommandTests {
11891189 withPrettyPrinting: Bool ,
11901190 ) async throws {
11911191 // try XCTSkipIf(buildSystemProvider == .native && (try? UserToolchain.default.getSymbolGraphExtract()) == nil, "skipping test because the `swift-symbolgraph-extract` tools isn't available")
1192- try await withKnownIssue {
1192+ try await withKnownIssue ( isIntermittent : true ) {
11931193 try await fixture (
11941194 name: " DependencyResolution/Internal/Simple " ,
11951195 removeFixturePathOnDeinit: true
@@ -3069,9 +3069,7 @@ struct PackageCommandTests {
30693069 func purgeCacheWithoutPackage(
30703070 data: BuildData ,
30713071 ) async throws {
3072- try await withKnownIssue (
3073- isIntermittent: ProcessInfo . isHostAmazonLinux2 ( ) // rdar://134238535
3074- ) {
3072+ try await withKnownIssue ( isIntermittent: true ) {
30753073 // Create a temporary directory without Package.swift
30763074 try await fixture ( name: " Miscellaneous " ) { fixturePath in
30773075 let tempDir = fixturePath. appending ( " empty-dir-for-purge-test " )
@@ -3090,7 +3088,7 @@ struct PackageCommandTests {
30903088 }
30913089 }
30923090 } when: {
3093- ProcessInfo . isHostAmazonLinux2 ( )
3091+ ProcessInfo . isHostAmazonLinux2 ( ) //rdar://134238535
30943092 }
30953093 }
30963094
@@ -3434,7 +3432,7 @@ struct PackageCommandTests {
34343432 """
34353433 )
34363434 }
3437- try await withKnownIssue {
3435+ try await withKnownIssue ( isIntermittent : true ) {
34383436 try await testWithTemporaryDirectory { tmpPath in
34393437 let packageDir = tmpPath. appending ( components: " library " )
34403438 try localFileSystem. writeFileContents (
@@ -4421,7 +4419,7 @@ struct PackageCommandTests {
44214419 func buildToolPlugin(
44224420 data: BuildData ,
44234421 ) async throws {
4424- try await withKnownIssue {
4422+ try await withKnownIssue ( isIntermittent : true ) {
44254423 try await testBuildToolPlugin ( data: data, staticStdlib: false )
44264424 } when: {
44274425 ProcessInfo . hostOperatingSystem == . windows && data. buildSystem == . swiftbuild
@@ -4565,7 +4563,7 @@ struct PackageCommandTests {
45654563 buildSystem: data. buildSystem,
45664564 )
45674565 ) { error in
4568- withKnownIssue {
4566+ withKnownIssue ( isIntermittent : true ) {
45694567 #expect( error. stderr. contains ( " This is text from the plugin " ) )
45704568 #expect( error. stderr. contains ( " error: This is an error from the plugin " ) )
45714569 } when: {
@@ -5495,7 +5493,7 @@ struct PackageCommandTests {
54955493 ) async throws {
54965494 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
54975495 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5498- try await withKnownIssue {
5496+ try await withKnownIssue ( isIntermittent : true ) {
54995497 // By default, a plugin-requested build produces a debug binary
55005498 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55015499 let _ = try await execute (
@@ -5530,7 +5528,7 @@ struct PackageCommandTests {
55305528 ) async throws {
55315529 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
55325530 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5533- try await withKnownIssue {
5531+ try await withKnownIssue ( isIntermittent : true ) {
55345532 // If the plugin specifies a debug binary, that is what will be built, regardless of overall configuration
55355533 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55365534 let _ = try await execute (
@@ -5569,7 +5567,7 @@ struct PackageCommandTests {
55695567 ) async throws {
55705568 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
55715569 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5572- try await withKnownIssue {
5570+ try await withKnownIssue ( isIntermittent : true ) {
55735571 // If the plugin requests a release binary, that is what will be built, regardless of overall configuration
55745572 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55755573 let _ = try await execute (
@@ -5607,7 +5605,7 @@ struct PackageCommandTests {
56075605 ) async throws {
56085606 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
56095607 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5610- try await withKnownIssue {
5608+ try await withKnownIssue ( isIntermittent : true ) {
56115609 // If the plugin inherits the overall build configuration, that is what will be built
56125610 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
56135611 let _ = try await execute (
@@ -5705,7 +5703,7 @@ struct PackageCommandTests {
57055703 func commandPluginBuildTestabilityAllWithTests_Release_True(
57065704 data: BuildData ,
57075705 ) async throws {
5708- try await withKnownIssue ( isIntermittent: ( ProcessInfo . hostOperatingSystem == . linux ) ) {
5706+ try await withKnownIssue ( isIntermittent: true ) {
57095707 // Overall configuration: release, plugin build request: release including tests -> with testability
57105708 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
57115709 let _ = await #expect( throws: Never . self) {
@@ -5754,7 +5752,7 @@ struct PackageCommandTests {
57545752 // otherwise the logs may be different in subsequent tests.
57555753
57565754 // Check than nothing is echoed when echoLogs is false
5757- try await withKnownIssue ( isIntermittent: ProcessInfo . hostOperatingSystem == . windows ) {
5755+ try await withKnownIssue ( isIntermittent: true ) {
57585756 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
57595757 let ( stdout, stderr) = try await execute ( //got here
57605758 [ " print-diagnostics " , " build " ] ,
@@ -6502,7 +6500,7 @@ struct PackageCommandTests {
65026500 func commandPluginBuildingCallbacks(
65036501 data: BuildData ,
65046502 ) async throws {
6505- try await withKnownIssue {
6503+ try await withKnownIssue ( isIntermittent : true ) {
65066504 try await testWithTemporaryDirectory { tmpPath in
65076505 let buildSystemProvider = data. buildSystem
65086506 // Create a sample package with a library, an executable, and a command plugin.
@@ -6678,7 +6676,7 @@ struct PackageCommandTests {
66786676 }
66796677
66806678 // SwiftBuild is currently not producing a static archive for static products unless they are linked into some other binary.
6681- try await withKnownIssue {
6679+ try await withKnownIssue ( isIntermittent : true ) {
66826680 // Invoke the plugin with parameters choosing a verbose build of MyStaticLibrary for release.
66836681 do {
66846682 let ( stdout, _) = try await execute (
@@ -6757,7 +6755,7 @@ struct PackageCommandTests {
67576755 arguments: [ BuildSystemProvider . Kind. native, . swiftbuild] ,
67586756 )
67596757 func commandPluginBuildingCallbacksExcludeUnbuiltArtifacts( buildSystem: BuildSystemProvider . Kind ) async throws {
6760- try await withKnownIssue {
6758+ try await withKnownIssue ( isIntermittent : true ) {
67616759 try await fixture ( name: " PartiallyUnusedDependency " ) { fixturePath in
67626760 let ( stdout, _) = try await execute (
67636761 [ " dump-artifacts-plugin " ] ,
@@ -6796,7 +6794,7 @@ struct PackageCommandTests {
67966794 func commandPluginTestingCallbacks(
67976795 data: BuildData ,
67986796 ) async throws {
6799- try await withKnownIssue {
6797+ try await withKnownIssue ( isIntermittent : true ) {
68006798 try await testWithTemporaryDirectory { tmpPath in
68016799 // Create a sample package with a library, a command plugin, and a couple of tests.
68026800 let packageDir = tmpPath. appending ( components: " MyPackage " )
@@ -7498,7 +7496,7 @@ struct PackageCommandTests {
74987496 func commandPluginDynamicDependencies(
74997497 buildData: BuildData
75007498 ) async throws {
7501- try await withKnownIssue {
7499+ try await withKnownIssue ( isIntermittent : true ) {
75027500 try await testWithTemporaryDirectory { tmpPath in
75037501 // Create a sample package with a command plugin that has a dynamic dependency.
75047502 let packageDir = tmpPath. appending ( components: " MyPackage " )
0 commit comments