-
Notifications
You must be signed in to change notification settings - Fork 1.4k
swift test is hanging on GitHub Actions, started in Swift 6.0+ #8394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Given you can't reproduce this locally, I'm wondering if you're just running out of memory in the jobs. I've seen that make it appear to be hanging when, for example, running an a VM with 2GB or less. Mind you that usually manifests itself in the compiler, especially building swift-syntax. |
@rnro do you know if that's something we can change? |
We are using the standard hosted GitHub runners which have 16 GB of RAM and running the Swift test jobs within a docker container. Running
So I don't think memory pressure should be an issue. |
@rnro Yes, that should be lots. Hard pressed to understand what's happening on those machines. |
Any extra logging we can enable to help diagnose this? |
You could always add --vv to the swift build command. |
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
swift test is hanging on GitHub Actions, started in Swift 6.0+
Example: https://github.com/apple/swift-distributed-actors/actions/runs/13964630089/job/39092176843
GHA cancels the job after 6 hours.
Expected behavior
swift test
would continue to building and running tests.Actual behavior
swift test
hangs after cloning, before building.Steps to reproduce
I haven't been able to reproduce locally, but happens frequently on this CI job: https://github.com/apple/swift-distributed-actors/actions/runs/13964630089/job/39092176843
Swift Package Manager version/commit hash
6.0 and newer, doesn't reproduce on 5.9/5.10
Swift & OS version (output of
swift --version ; uname -a
)swift:6.0-jammy container
The text was updated successfully, but these errors were encountered: