Skip to content

Commit 3d71027

Browse files
committed
Mark some tests skipped/withKnownIssue
1 parent 5c0cc31 commit 3d71027

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

Tests/BasicsTests/AsyncProcessTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ final class AsyncProcessTests: XCTestCase {
435435
func testAsyncStream() async throws {
436436
// rdar://133548796
437437
try XCTSkipIfPlatformCI()
438+
#if compiler(<6.3)
439+
try XCTSkipOnUbuntu22_04_jammy(because: "The XCTest binary crashes in GitHub Actions")
440+
try XCTSkipOnAmazonLinux2(because: "The XCTest binary crashes in GitHub Actions")
441+
#endif
438442
try XCTSkipOnWindows(because: "https://github.com/swiftlang/swift-package-manager/issues/8547: 'swift test' was stalled.")
439443

440444
let (stdoutStream, stdoutContinuation) = AsyncProcess.ReadableStream.makeStream()

Tests/CommandsTests/TestCommandTests.swift

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ struct TestCommandTests {
13641364
buildSystem: BuildSystemProvider.Kind,
13651365
) async throws {
13661366
let configuration = BuildConfiguration.debug
1367-
try await withKnownIssue("Fails to find the test executable", isIntermittent: true) {
1367+
try await withKnownIssue(isIntermittent: true) {
13681368
try await fixture(name: "Miscellaneous/TestDiscovery/SwiftTesting") { fixturePath in
13691369
let (stdout, stderr) = try await execute(
13701370
["--enable-swift-testing", "--disable-xctest"],
@@ -1378,7 +1378,18 @@ struct TestCommandTests {
13781378
)
13791379
}
13801380
} when: {
1381-
buildSystem == .swiftbuild && ProcessInfo.hostOperatingSystem == .windows
1381+
let knownIssueOnAL2: Bool
1382+
#if compiler(<6.3)
1383+
knownIssueOnAL2 = ProcessInfo.isHostAmazonLinux2() // stack trace occurs when run in GitHub actions
1384+
#else
1385+
knownIssueOnAL2 = false
1386+
#endif
1387+
1388+
return buildSystem == .swiftbuild
1389+
&& (
1390+
ProcessInfo.hostOperatingSystem == .windows // Fails to find the test executable
1391+
|| knownIssueOnAL2
1392+
)
13821393
}
13831394
}
13841395

Tests/FunctionalTests/PluginTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ struct PluginTests {
832832
)
833833
func testLocalAndRemoteToolDependencies(buildSystem: BuildSystemProvider.Kind) async throws {
834834
try await fixture(name: "Miscellaneous/Plugins/PluginUsingLocalAndRemoteTool") { path in
835+
try await withKnownIssue(isIntermittent: true) {
835836
let (stdout, stderr) = try await executeSwiftPackage(
836837
path.appending("MyLibrary"),
837838
configuration: .debug,
@@ -852,6 +853,13 @@ struct PluginTests {
852853
#expect(stdout.contains("A message from the remote tool."), "stdout:\n\(stderr)\n\(stdout)")
853854
#expect(stdout.contains("A message from the local tool."), "stdout:\n\(stderr)\n\(stdout)")
854855
#expect(stdout.contains("A message from the implied local tool."), "stdout:\n\(stderr)\n\(stdout)")
856+
} when: {
857+
#if compiler(<6.3)
858+
ProcessInfo.isHostAmazonLinux2() // '*** Signal 11: Backtracing from 0xffa502d2d1cc...Swift/UnsafeRawBufferPointer.swift:1369: Fatal error' occurs when building Package in GitHub actiong
859+
#else
860+
false
861+
#endif
862+
}
855863
}
856864
}
857865

0 commit comments

Comments
 (0)