-
-
Notifications
You must be signed in to change notification settings - Fork 600
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
Xcode bot tests stalling in waitUntil block #509
Comments
@jeffh Is there anything I can do to help track this down, and maybe start working on a fix? |
I've added some updates. Specifically, I'm seeing this locally too (as well as still in my Bot builds), and I've updated Xcode, Nimble, CocoaPods, and macOS. Still seeing this. |
I'm seeing this locally right now as of today as well. |
I've figured out the underlying issue here, created a reproducible example case, and implemented a fix. I'm exhausted now, so I'll go ahead and clean it all up and make a PR tomorrow for you guys on this one. |
Fix has been pushed up for code review! |
@abbeycode Any chance someone can look at this, merge it in, and push a new patch version to Cocoapods. I'd really love to have this fix in, since it's killing my CI builds. |
@AnthonyMDev I reviewed your PR and it looks good to me, but someone else (@jeffh) will have to merge it (and I'm not sure what branch he'd want it to go into). That said, you don't need to wait for it to be merged to fix your builds - just point CocoaPods to your branch in the meantime, while you wait for it to be merged. Thanks, by the way, for taking the initiative to fix this. I haven't been motivated, since I haven't been working on my project that uses Nimble for a while. |
Thanks! I am doing that for now. I just like to remove my forked pods as quickly as possible to ensure I get other bug fixes and new features. |
Finally fixed by #721 👏 |
Any idea when this fix will be included in a new release? |
I'm sorry for the delay, v8.0.6 has been released including the fix 🚀 |
What did you do?
I've got a bunch of tests covering
NSOperation
subclasses, which are written with dependency injection so I can use simulated network operations with them that don't actually talk to any servers. To test them, I have specs that look like this:My tests run most often in an Xcode bot, and have been stalling about once out of every 2-5 runs (and I was also able to reproduce this hang locally too). I downloaded the logs for a few different occurrences of the stall, and looked at the
xctest
process samples, which consistently show a stack trace containing the line above (in different test cases, but always the closing brace of awaitUntil
block), with these Nimble lines concluding the stack trace:These are the errors Xcode shows for the integrations that time out:
What did you expect to happen?
Each test using a
waitUntil
block either completes successfully, or fails after the specified 2-second timeoutWhat actually happened instead?
The tests sometimes stall until the Bot times out (after 10 minutes)
Environment
Quick: 1.2.0
Nimble: 7.1.0
Xcode Version: 9.3 (9E145)
Swift Version: Xcode Default
macOS Version: 10.13.4 (though this was happening on 10.12 as well)
Cocoapods: 1.5.0
Project that demonstrates the issue
Let me know if you absolutely need this, but the issue isn't reproducible every time in my own project, so it would be difficult to distill it down to a sample project.
The text was updated successfully, but these errors were encountered: