-
Notifications
You must be signed in to change notification settings - Fork 4
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
Test suite hangs with ghc 8.4 (apparently due to hspec-2.5.0) #12
Comments
I don't have much time to look at this right now, but a quick test on my machine did not reproduce this. I was using nightly-2018-03-14. |
@snoyberg that was a fortunate observation. I too am able to reproduce a passing test suite with nightly-2018-03-14. However, I am also able to reproduce the error with nightly-2018-03-17. This helps us isolate the cause, which is apparently stack unpack enclosed-exceptions-1.0.2 && cd enclosed-exceptions-1.0.2
edit stack.yaml # try the various stack.yaml files
stack test # stack.yaml
# requires stack upgrade --git
# test suite passes
resolver: nightly-2018-03-14 # stack.yaml
# requires stack upgrade --git
# test suite hangs
resolver: nightly-2018-03-14
extra-deps:
- hspec-2.5.0
- hspec-core-2.5.0
- hspec-discover-2.5.0 # stack.yaml
# test suite hangs
resolver: nightly-2018-03-17 # stack.yaml
# test suite passes
resolver: nightly-2018-03-17
extra-deps:
- hspec-2.4.8
- hspec-core-2.4.8
- hspec-discover-2.4.8 (For those who don't want to bother with |
This may be insurmountable, and the only result may be to disable the test. It appears that both the test case itself, and the hspec main thread, are blocked on |
How unfortunate. It seems like there should be some sort of workaround, and that workaround should be used by the In any case, I agree that with GHC as it is currently, there is probably nothing for |
I don't think there's anything to be done at the GHC level. See this discussion on the async package: simonmar/async#14. |
Should this test simply be removed then, at least when building with 8.4? Nixpkgs always runs tests, so this obviously breaks with the 8.4 haskell package set. Not a big deal, since we can just disable the tests on this package, but it'd be nice if we didn't have to do that for future versions. |
We see this test failure in current Nixpkgs, too. We can produce the issue reliably, the test suite always fails (building in an LTS-12.0 environment). |
@jcristovao do you have input on this, as this is your package? If you want, I'll make a call here, which would be: PR to remove the test would be acceptable. |
Hey @snoyberg, feel free to make any changes that you deem necessary - I have been doing very little haskell nowadays, and I fully trust your judgement :) |
Alright, have a look at #13. If/when CI passes, I'll merge and release to Hackage. |
The last thing printed is:
The next test is:
enclosed-exceptions/test/main.hs
Line 85 in ba1b356
which suggests to me that something is going on with the "blocked indefinitely" behavior. Possibly a GHC regression?
The text was updated successfully, but these errors were encountered: