@@ -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
@@ -3428,7 +3426,7 @@ struct PackageCommandTests {
34283426 """
34293427 )
34303428 }
3431- try await withKnownIssue {
3429+ try await withKnownIssue ( isIntermittent : true ) {
34323430 try await testWithTemporaryDirectory { tmpPath in
34333431 let packageDir = tmpPath. appending ( components: " library " )
34343432 try localFileSystem. writeFileContents (
@@ -4403,7 +4401,7 @@ struct PackageCommandTests {
44034401 func buildToolPlugin(
44044402 data: BuildData ,
44054403 ) async throws {
4406- try await withKnownIssue {
4404+ try await withKnownIssue ( isIntermittent : true ) {
44074405 try await testBuildToolPlugin ( data: data, staticStdlib: false )
44084406 } when: {
44094407 ProcessInfo . hostOperatingSystem == . windows && data. buildSystem == . swiftbuild
@@ -4546,7 +4544,7 @@ struct PackageCommandTests {
45464544 buildSystem: data. buildSystem,
45474545 )
45484546 ) { error in
4549- withKnownIssue {
4547+ withKnownIssue ( isIntermittent : true ) {
45504548 #expect( error. stderr. contains ( " This is text from the plugin " ) )
45514549 #expect( error. stderr. contains ( " error: This is an error from the plugin " ) )
45524550 } when: {
@@ -5476,7 +5474,7 @@ struct PackageCommandTests {
54765474 ) async throws {
54775475 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
54785476 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5479- try await withKnownIssue {
5477+ try await withKnownIssue ( isIntermittent : true ) {
54805478 // By default, a plugin-requested build produces a debug binary
54815479 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
54825480 let _ = try await execute (
@@ -5511,7 +5509,7 @@ struct PackageCommandTests {
55115509 ) async throws {
55125510 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
55135511 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5514- try await withKnownIssue {
5512+ try await withKnownIssue ( isIntermittent : true ) {
55155513 // If the plugin specifies a debug binary, that is what will be built, regardless of overall configuration
55165514 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55175515 let _ = try await execute (
@@ -5550,7 +5548,7 @@ struct PackageCommandTests {
55505548 ) async throws {
55515549 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
55525550 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5553- try await withKnownIssue {
5551+ try await withKnownIssue ( isIntermittent : true ) {
55545552 // If the plugin requests a release binary, that is what will be built, regardless of overall configuration
55555553 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55565554 let _ = try await execute (
@@ -5588,7 +5586,7 @@ struct PackageCommandTests {
55885586 ) async throws {
55895587 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
55905588 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5591- try await withKnownIssue {
5589+ try await withKnownIssue ( isIntermittent : true ) {
55925590 // If the plugin inherits the overall build configuration, that is what will be built
55935591 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55945592 let _ = try await execute (
@@ -5627,7 +5625,7 @@ struct PackageCommandTests {
56275625 data: BuildData ,
56285626 ) async throws {
56295627 // Plugin arguments: check-testability <targetName> <config> <shouldTestable>
5630- try await withKnownIssue {
5628+ try await withKnownIssue ( isIntermittent : true ) {
56315629 // Overall configuration: debug, plugin build request: debug -> without testability
56325630 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
56335631 let _ = await #expect( throws: Never . self) {
@@ -5655,7 +5653,7 @@ struct PackageCommandTests {
56555653 func commandPluginBuildTestabilityInternalModule_Release_False(
56565654 data: BuildData ,
56575655 ) async throws {
5658- try await withKnownIssue {
5656+ try await withKnownIssue ( isIntermittent : true ) {
56595657 // Overall configuration: debug, plugin build request: release -> without testability
56605658 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
56615659 let _ = await #expect( throws: Never . self) {
@@ -5686,7 +5684,7 @@ struct PackageCommandTests {
56865684 func commandPluginBuildTestabilityAllWithTests_Release_True(
56875685 data: BuildData ,
56885686 ) async throws {
5689- try await withKnownIssue ( isIntermittent: ( ProcessInfo . hostOperatingSystem == . linux ) ) {
5687+ try await withKnownIssue ( isIntermittent: true ) {
56905688 // Overall configuration: release, plugin build request: release including tests -> with testability
56915689 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
56925690 let _ = await #expect( throws: Never . self) {
@@ -5735,7 +5733,7 @@ struct PackageCommandTests {
57355733 // otherwise the logs may be different in subsequent tests.
57365734
57375735 // Check than nothing is echoed when echoLogs is false
5738- try await withKnownIssue ( isIntermittent: ProcessInfo . hostOperatingSystem == . windows ) {
5736+ try await withKnownIssue ( isIntermittent: true ) {
57395737 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
57405738 let ( stdout, stderr) = try await execute ( //got here
57415739 [ " print-diagnostics " , " build " ] ,
@@ -6481,7 +6479,7 @@ struct PackageCommandTests {
64816479 func commandPluginBuildingCallbacks(
64826480 data: BuildData ,
64836481 ) async throws {
6484- try await withKnownIssue {
6482+ try await withKnownIssue ( isIntermittent : true ) {
64856483 try await testWithTemporaryDirectory { tmpPath in
64866484 let buildSystemProvider = data. buildSystem
64876485 // Create a sample package with a library, an executable, and a command plugin.
@@ -6657,7 +6655,7 @@ struct PackageCommandTests {
66576655 }
66586656
66596657 // SwiftBuild is currently not producing a static archive for static products unless they are linked into some other binary.
6660- try await withKnownIssue {
6658+ try await withKnownIssue ( isIntermittent : true ) {
66616659 // Invoke the plugin with parameters choosing a verbose build of MyStaticLibrary for release.
66626660 do {
66636661 let ( stdout, _) = try await execute (
@@ -6736,7 +6734,7 @@ struct PackageCommandTests {
67366734 arguments: [ BuildSystemProvider . Kind. native, . swiftbuild] ,
67376735 )
67386736 func commandPluginBuildingCallbacksExcludeUnbuiltArtifacts( buildSystem: BuildSystemProvider . Kind ) async throws {
6739- try await withKnownIssue {
6737+ try await withKnownIssue ( isIntermittent : true ) {
67406738 try await fixture ( name: " PartiallyUnusedDependency " ) { fixturePath in
67416739 let ( stdout, _) = try await execute (
67426740 [ " dump-artifacts-plugin " ] ,
@@ -6775,7 +6773,7 @@ struct PackageCommandTests {
67756773 func commandPluginTestingCallbacks(
67766774 data: BuildData ,
67776775 ) async throws {
6778- try await withKnownIssue {
6776+ try await withKnownIssue ( isIntermittent : true ) {
67796777 try await testWithTemporaryDirectory { tmpPath in
67806778 // Create a sample package with a library, a command plugin, and a couple of tests.
67816779 let packageDir = tmpPath. appending ( components: " MyPackage " )
@@ -7477,7 +7475,7 @@ struct PackageCommandTests {
74777475 func commandPluginDynamicDependencies(
74787476 buildData: BuildData
74797477 ) async throws {
7480- try await withKnownIssue {
7478+ try await withKnownIssue ( isIntermittent : true ) {
74817479 try await testWithTemporaryDirectory { tmpPath in
74827480 // Create a sample package with a command plugin that has a dynamic dependency.
74837481 let packageDir = tmpPath. appending ( components: " MyPackage " )
0 commit comments