-
-
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
toEventually hangs forever when using SPM #708
Comments
Thanks for moving this to the correct place! I can verify that running the tests with release configuration works, but I use a mock library that resolves function addresses in a way that fails when tests run in release configuration. |
Yes, me mentioning that it works in release configuration was not meant as a solution but more of an information to be able to track down the issue. I'd also try to fix it myself but I don't really know where to start here and currently don't have the time to further investigate so would be happy if somebody could look into this in more detail. |
Sorry, that was not how I meant it. I rather meant that the release approach could have worked as a workaround until this is fixed (which would make it a less blocking bug), but that it doesn't work due to the mock problems. |
I am seeing this same issue using SPM and only on Xcode 11.2. Prior to updating to 11.2 there was no issues, which makes me think @tomquist may be right about this being a compiler bug. |
After more experimentation, setting |
I already have dead code stripping disabled for my framework and test target, and it hangs. |
Swift package manager uses -dead_strip as a linker flag which falsefully strips away a method that is actually not dead code (https://bugs.swift.org/browse/SR-11564). Making AwaitPromise final fixes the problem for now and shouldn’t have a negative effect. Fixes Quick#708
Swift package manager uses -dead_strip as a linker flag which falsefully strips away a method that is actually not dead code (https://bugs.swift.org/browse/SR-11564). Making AwaitPromise final fixes the problem for now and shouldn’t have a negative effect. Fixes Quick#708
@tomquist This is no longer a problem in Xcode 11.3. |
@danielsaidi Yes, can confirm but I'd still merge this PR since it
|
Yeah, it would be great to get it merged. I wonder what's going on with the radio silence? |
Swift package manager uses -dead_strip as a linker flag which falsefully strips away a method that is actually not dead code (https://bugs.swift.org/browse/SR-11564). Making AwaitPromise final fixes the problem for now and shouldn’t have a negative effect. Fixes #708
v8.0.5 has been released. |
@ikesyo Great! However, |
I'm still getting hanging forever on Xcode 11.3 with Nimble v8.0.5. Mine is happening on Can we re-open this and investigate further, or should I make a new ticket? Stacktrace:
|
@AnthonyMDev would be great if you could create a PR with a test case that produces this bug when run using |
I'll try my best. I've got a complicated test suite and it's happening semi-sporadically so not sure how to reproduce it... I'll update you. |
The issue @AnthonyMDev is facing seems like a duplicate of #509. |
What did you do?
I switched from Carthage to Swift Package Manager for integrating Quick and Nimble into a project. My tests use
toEventually()
in some places.What did you expect to happen?
toEventually()
should either finish or timeout eventually.What actually happened instead?
toEventually()
never stops, it polls forever and doesn't even timeout. I tried to debug the issue by setting a breakpoint inAwaitPromise.resolveResult()
Nimble/Sources/Nimble/Utils/Await.swift
Lines 118 to 125 in 9a4564e
however, the code seems to never be executed. I also set a breakpoint here
Nimble/Sources/Nimble/Utils/Await.swift
Line 330 in 9a4564e
When executing tests in Release configuration everything works as expected so I assume this is a compiler bug.
Environment
List the software versions you're using:
Xcode Default
.)Please also mention which package manager you used and its version. Delete the
other package managers in this list:
Swift Package Manager 5.1.0 (swiftpm-15502) (Use
swift build --version
in Terminal)Project that demonstrates the issue
https://github.com/tomquist/NimbleStallBug
The text was updated successfully, but these errors were encountered: