Skip to content

[6.4] GHA: Enable Testing on macOS and Linux#10007

Draft
bkhouri wants to merge 2 commits into
swiftlang:release/6.4.xfrom
bkhouri:t/gh9427_rdar165491718/enable_testing
Draft

[6.4] GHA: Enable Testing on macOS and Linux#10007
bkhouri wants to merge 2 commits into
swiftlang:release/6.4.xfrom
bkhouri:t/gh9427_rdar165491718/enable_testing

Conversation

@bkhouri
Copy link
Copy Markdown
Contributor

@bkhouri bkhouri commented Apr 29, 2026

Update GitHub actions to also execute the automated tests on macOS and Linux platforms.

Fixes: #9427
Issue: rdar://165491718

Depends on #10017

  • no newly added withKnownIssue is added
  • Ensure no new tests are skipped

@bkhouri bkhouri force-pushed the t/gh9427_rdar165491718/enable_testing branch 2 times, most recently from 32c0512 to faab44c Compare April 29, 2026 16:28
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 29, 2026

@swift-ci test

@bkhouri bkhouri self-assigned this Apr 30, 2026
@bkhouri bkhouri added the continuous integration/deployment Changes to the Continuous Integration/Deployment system/pipelines label Apr 30, 2026
@bkhouri bkhouri force-pushed the t/gh9427_rdar165491718/enable_testing branch 12 times, most recently from add1f66 to 290050b Compare May 4, 2026 21:46
func testAsyncStreamHighLevelAPI() async throws {
// rdar://133548796
try XCTSkipIfPlatformCI()
try XCTSkipOnAmazonLinux2(because: "Test process crashes")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chore (blocking): Need to fix the root cause behind the process crash.


let newSdkPathStr = "/tmp/../\(sdkPathStr)"
// Perform a full build again because SDK changed.
await withKnownIssue(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chore (blocking): Need to fix the root cause behind the GitHub Actions failure.

stderr.contains("was not compiled for testing") || stderr.contains("ignore swiftmodule built without '-enable-testing'"),
"got stdout: \(stdout), stderr: \(stderr)",
)
withKnownIssue(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chore (blocking): Need to determine why this is failing in GitHub Actions. could this be a difference between the open source toolchain vs the Xcode toolchain?

@bkhouri bkhouri force-pushed the t/gh9427_rdar165491718/enable_testing branch 4 times, most recently from 616a236 to 1296226 Compare May 12, 2026 03:44
// rdar://133548796
try XCTSkipIfPlatformCI()
#if compiler(<6.3)
try XCTSkipOnUbuntu22_04_jammy(because: "The XCTest binary crashes in GitHub Actions")
Copy link
Copy Markdown
Contributor Author

@bkhouri bkhouri May 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chore (blocking): we also need to skip this on AL2 as it sometime causes the process to crash in GitHub Actions. encountered with the aarch64 architecture

  • We need to remove the custom XCTSkip calls.

@bkhouri bkhouri force-pushed the t/gh9427_rdar165491718/enable_testing branch from 1296226 to b71443a Compare May 12, 2026 12:38
Update GitHub actions to also execute the automated tests on macOS and
Linux platforms.

Relates to: swiftlang#9427
Issue: rdar://165491718
@bkhouri bkhouri force-pushed the t/gh9427_rdar165491718/enable_testing branch from b71443a to 600c1c0 Compare May 12, 2026 20:12
@bkhouri bkhouri changed the title GHA: Enable Testing on macOS and Linux [6.4] GHA: Enable Testing on macOS and Linux May 12, 2026
@bkhouri bkhouri changed the base branch from main to release/6.4.x May 12, 2026 20:13
@bkhouri bkhouri force-pushed the t/gh9427_rdar165491718/enable_testing branch from 600c1c0 to 3d71027 Compare May 12, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

continuous integration/deployment Changes to the Continuous Integration/Deployment system/pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Enable testing in GitHub Actions

1 participant