@@ -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 (
@@ -4416,7 +4414,7 @@ struct PackageCommandTests {
44164414 func buildToolPlugin(
44174415 data: BuildData ,
44184416 ) async throws {
4419- try await withKnownIssue {
4417+ try await withKnownIssue ( isIntermittent : true ) {
44204418 try await testBuildToolPlugin ( data: data, staticStdlib: false )
44214419 } when: {
44224420 ProcessInfo . hostOperatingSystem == . windows && data. buildSystem == . swiftbuild
@@ -4559,7 +4557,7 @@ struct PackageCommandTests {
45594557 buildSystem: data. buildSystem,
45604558 )
45614559 ) { error in
4562- withKnownIssue {
4560+ withKnownIssue ( isIntermittent : true ) {
45634561 #expect( error. stderr. contains ( " This is text from the plugin " ) )
45644562 #expect( error. stderr. contains ( " error: This is an error from the plugin " ) )
45654563 } when: {
@@ -5489,7 +5487,7 @@ struct PackageCommandTests {
54895487 ) async throws {
54905488 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
54915489 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5492- try await withKnownIssue {
5490+ try await withKnownIssue ( isIntermittent : true ) {
54935491 // By default, a plugin-requested build produces a debug binary
54945492 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
54955493 let _ = try await execute (
@@ -5524,7 +5522,7 @@ struct PackageCommandTests {
55245522 ) async throws {
55255523 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
55265524 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5527- try await withKnownIssue {
5525+ try await withKnownIssue ( isIntermittent : true ) {
55285526 // If the plugin specifies a debug binary, that is what will be built, regardless of overall configuration
55295527 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55305528 let _ = try await execute (
@@ -5563,7 +5561,7 @@ struct PackageCommandTests {
55635561 ) async throws {
55645562 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
55655563 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5566- try await withKnownIssue {
5564+ try await withKnownIssue ( isIntermittent : true ) {
55675565 // If the plugin requests a release binary, that is what will be built, regardless of overall configuration
55685566 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
55695567 let _ = try await execute (
@@ -5601,7 +5599,7 @@ struct PackageCommandTests {
56015599 ) async throws {
56025600 let debugTarget = try buildData. buildSystem. binPath ( for: . debug) + [ executableName ( " placeholder " ) ]
56035601 let releaseTarget = try buildData. buildSystem. binPath ( for: . release) + [ executableName ( " placeholder " ) ]
5604- try await withKnownIssue {
5602+ try await withKnownIssue ( isIntermittent : true ) {
56055603 // If the plugin inherits the overall build configuration, that is what will be built
56065604 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
56075605 let _ = try await execute (
@@ -5640,7 +5638,7 @@ struct PackageCommandTests {
56405638 data: BuildData ,
56415639 ) async throws {
56425640 // Plugin arguments: check-testability <targetName> <config> <shouldTestable>
5643- try await withKnownIssue {
5641+ try await withKnownIssue ( isIntermittent : true ) {
56445642 // Overall configuration: debug, plugin build request: debug -> without testability
56455643 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
56465644 let _ = await #expect( throws: Never . self) {
@@ -5668,7 +5666,7 @@ struct PackageCommandTests {
56685666 func commandPluginBuildTestabilityInternalModule_Release_False(
56695667 data: BuildData ,
56705668 ) async throws {
5671- try await withKnownIssue {
5669+ try await withKnownIssue ( isIntermittent : true ) {
56725670 // Overall configuration: debug, plugin build request: release -> without testability
56735671 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
56745672 let _ = await #expect( throws: Never . self) {
@@ -5699,7 +5697,7 @@ struct PackageCommandTests {
56995697 func commandPluginBuildTestabilityAllWithTests_Release_True(
57005698 data: BuildData ,
57015699 ) async throws {
5702- try await withKnownIssue ( isIntermittent: ( ProcessInfo . hostOperatingSystem == . linux ) ) {
5700+ try await withKnownIssue ( isIntermittent: true ) {
57035701 // Overall configuration: release, plugin build request: release including tests -> with testability
57045702 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
57055703 let _ = await #expect( throws: Never . self) {
@@ -5748,7 +5746,7 @@ struct PackageCommandTests {
57485746 // otherwise the logs may be different in subsequent tests.
57495747
57505748 // Check than nothing is echoed when echoLogs is false
5751- try await withKnownIssue ( isIntermittent: ProcessInfo . hostOperatingSystem == . windows ) {
5749+ try await withKnownIssue ( isIntermittent: true ) {
57525750 try await fixture ( name: " Miscellaneous/Plugins/CommandPluginTestStub " ) { fixturePath in
57535751 let ( stdout, stderr) = try await execute ( //got here
57545752 [ " print-diagnostics " , " build " ] ,
@@ -6494,7 +6492,7 @@ struct PackageCommandTests {
64946492 func commandPluginBuildingCallbacks(
64956493 data: BuildData ,
64966494 ) async throws {
6497- try await withKnownIssue {
6495+ try await withKnownIssue ( isIntermittent : true ) {
64986496 try await testWithTemporaryDirectory { tmpPath in
64996497 let buildSystemProvider = data. buildSystem
65006498 // Create a sample package with a library, an executable, and a command plugin.
@@ -6670,7 +6668,7 @@ struct PackageCommandTests {
66706668 }
66716669
66726670 // SwiftBuild is currently not producing a static archive for static products unless they are linked into some other binary.
6673- try await withKnownIssue {
6671+ try await withKnownIssue ( isIntermittent : true ) {
66746672 // Invoke the plugin with parameters choosing a verbose build of MyStaticLibrary for release.
66756673 do {
66766674 let ( stdout, _) = try await execute (
@@ -6749,7 +6747,7 @@ struct PackageCommandTests {
67496747 arguments: [ BuildSystemProvider . Kind. native, . swiftbuild] ,
67506748 )
67516749 func commandPluginBuildingCallbacksExcludeUnbuiltArtifacts( buildSystem: BuildSystemProvider . Kind ) async throws {
6752- try await withKnownIssue {
6750+ try await withKnownIssue ( isIntermittent : true ) {
67536751 try await fixture ( name: " PartiallyUnusedDependency " ) { fixturePath in
67546752 let ( stdout, _) = try await execute (
67556753 [ " dump-artifacts-plugin " ] ,
@@ -6788,7 +6786,7 @@ struct PackageCommandTests {
67886786 func commandPluginTestingCallbacks(
67896787 data: BuildData ,
67906788 ) async throws {
6791- try await withKnownIssue {
6789+ try await withKnownIssue ( isIntermittent : true ) {
67926790 try await testWithTemporaryDirectory { tmpPath in
67936791 // Create a sample package with a library, a command plugin, and a couple of tests.
67946792 let packageDir = tmpPath. appending ( components: " MyPackage " )
@@ -7490,7 +7488,7 @@ struct PackageCommandTests {
74907488 func commandPluginDynamicDependencies(
74917489 buildData: BuildData
74927490 ) async throws {
7493- try await withKnownIssue {
7491+ try await withKnownIssue ( isIntermittent : true ) {
74947492 try await testWithTemporaryDirectory { tmpPath in
74957493 // Create a sample package with a command plugin that has a dynamic dependency.
74967494 let packageDir = tmpPath. appending ( components: " MyPackage " )
0 commit comments