-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Troubleshooting Timed Out Builds #2617
Comments
I can confirm this seems to be hanging during "Resolve Package Graph" (which is pretty much always where
In the case of the 5.9 builds this is very likely due to us still using Xcode-15.0.0-Beta.2 to build those. It works fine for example when I build with Xcode-15.0.0-Release.Candidate. That doesn't explain the timeouts for watchOS on 5.7 and 5.8 though, looking into that. |
Ok, it also hangs when I build watchOS with Xcode-14.3.1 (which is what I have locally, our builders actually use 14.3.0 for Swift 5.8 but that shouldn't make a difference). It's actually tripping over building
and then eventually hanging with
It's unclear to me why the build error leads to a hang but we've seen this a few times with Here are the full logs of the build, as run through our builder tool: swift-snapshot-testing-build.log.zip We effectively run
which fails the similarly (but not identically) but without the hang:
It's unclear to me why the run through the builder tool would continue on and hang 🤔 (It's not that we hang on the doc build, that isn't attempted if the build has already failed.) |
Sorry, this took a while but I've found a fix for the hangs and I also know why the watchOS builds were failing - it's two separate issues. The watchOS build failure is because we pick the wrong scheme:
succeeds whereas
fails. The hang in case of failure seems to be caused by an issue when collecting stdout/stderr output. We've seen this happening across a number of packages - always A newer version of our process runner (a forked version of ShellOut) avoids this problem and properly collects the output. I'll open a PR against snapshot-testing to set the proper scheme for the watchOS builds. |
Fixed in https://gitlab.com/finestructure/swiftpackageindex-builder/-/merge_requests/224 Pending test runs and deployment. |
All tests passed & deployed. |
Discussed in #2615
Originally posted by stephencelis September 13, 2023
Is there a way to figure out why builds are timing out? Maybe a way to get a partial log?
We have a project with visionOS and watchOS builds timing out:
https://swiftpackageindex.com/pointfreeco/swift-snapshot-testing/builds
Would love to track the issue down, as we are able to build for both platforms locally.
The text was updated successfully, but these errors were encountered: