Repository navigation
CI: run macOS tests on macos-15 (work around Local Network Privacy) - #531
Merged
Merged
Conversation
macos-14 runners are retired on 2026-11-02. On macos-15, Local Network Privacy blocks the unsigned test binaries from sending on en0 (sendto returns EHOSTUNREACH), so every test that pins a service to a LAN address fails. Processes running as root are exempt, so run the test binaries through 'sudo -E' via the cargo target runner. Also bound the initial wait in test_hostname_resolution_address_removed so it fails instead of hanging when the hostname is never resolved. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
macos-14runners are retired on 2026-11-02 (actions/runner-images#13518). Onmacos-15, 10 daemon unit tests fail andtest_hostname_resolution_address_removedhangs (seen in #530).Root cause
macOS 15 Local Network Privacy (Apple TN3179). The cargo test binary is an unsigned, linker-signed
a.outwith no LNP grant, so macOS blocks its traffic on LAN interfaces:en0fails withNo route to host (os error 65)(EHOSTUNREACH). Sends onlo0still work.Got local network blocked notification ... bundle_id: (null)/found bundle id a.out by PID.All the failing tests pin a service to the first non-loopback IPv4 address (
my_ip_interfaces(false)), so they need multicast onen0. The tests that pass resolve overlo0.Fix
macos-14tomacos-15. Rust stays at 1.71.0.CARGO_TARGET_AARCH64_APPLE_DARWIN_RUNNER="sudo -E". Cargo still builds as the runner user but runs the test binaries as root, and root is exempt from LNP. This keeps full test coverage, with no skipping.test_hostname_resolution_address_removed: replace the unboundedrecv()withrecv_timeout(5s), so the test fails instead of hanging when the hostname is never resolved.🤖 Generated with Claude Code