Skip to content

swiftpm: fix Swift Testing on Darwin - #573273

Merged
reckenrode merged 1 commit into
NixOS:masterfrom
kinnrai:fix/swiftpm-darwin-testing-helper
Oct 13, 2026
Merged

reckenrode merged 1 commit into
NixOS:masterfrom
kinnrai:fix/swiftpm-darwin-testing-helper

Conversation

@kinnrai

@kinnrai kinnrai commented Oct 12, 2026

Copy link
Copy Markdown
Member

Build and install the missing Darwin testing helper through CMake, allowing SwiftPM to run Swift Testing tests.

This complements nixpkgs' CMake build; upstream only supports that route for bootstrapping on macOS. See swiftlang/swift-package-manager#10600.

Add a regression test for helper discovery and failure propagation. Both SwiftPM passthru tests pass on aarch64-darwin.

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Oct 12, 2026
@kinnrai
kinnrai force-pushed the fix/swiftpm-darwin-testing-helper branch from f5136b0 to 904628d Compare October 12, 2026 17:36
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Oct 12, 2026
@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (c28ca54)

Command: nixpkgs-review pr 573273 -p swiftpm --tests
Commit: 904628dc14a7c68fa70bd3afb11741d50623c500 (subsequent changes)
Merge: e75a21e0e421bb1dcdce2ea30201302615ecbccd

Triggered by @kinnrai (72676584)
Logs: https://github.com/kinnrai/nixpkgs-review-gha/actions/runs/38286123650/attempts/1


aarch64-darwin (sandbox = relaxed)

✅ 2 tests built:
  • swiftpm.tests.backdeploy-references-stdlib
  • swiftpm.tests.swift-testing
✅ 1 package built:
  • swiftpm

@kinnrai kinnrai mentioned this pull request Oct 12, 2026
6 of 13 tasks

@reckenrode reckenrode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks. I’d been carrying a change to build this helper in my 6.4.0 branch, but this is better (especially with the added test).

@reckenrode

Copy link
Copy Markdown
Contributor

Note: I tried building swift.tests.swift-testing, but it fails:

  • The default deployment target is too old. It needs to be at least 10.15; and
  • swiftpmCheckHook needs updating to disable XCTest on Darwin.

I have these fixed on my branch 6.4.0 branch. I am going to start splitting it up and cherry-picking changes into separate PRs soon. I would like to merge this and follow up on the above with those changes.

@reckenrode
reckenrode added this pull request to the merge queue Oct 13, 2026
Merged via the queue into NixOS:master with commit f528e96 Oct 13, 2026
29 checks passed
@reckenrode

Copy link
Copy Markdown
Contributor

#573436

@kinnrai
kinnrai deleted the fix/swiftpm-darwin-testing-helper branch December 1, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants