-
Notifications
You must be signed in to change notification settings - Fork 846
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
Stop using Cabal's test (yay!) #167
Comments
👍 |
I should have gone to bed already, but this was annoying me enough that I just implemented it. I don't think it's close to perfect yet, but should hopefully be an improvement already. For starters, when you're just running a single test suite, it will print the output to the console. Unfortunately, I still seem to be seeing the freezing behavior... very weird. Will investigate tomorrow. |
I'm able to reproduce the freezing behavior by just calling |
Nope, problem persists with GHC 7.8 and newer process. |
I've resolved this problem, but I'm walking away unsatisfied. tl;dr: If I add I still don't know why this test suite triggered the problem when others didn't, but I've done all I can on this tonight. @bitemyapp Since we've already been working together on improving the testing, would you mind taking the latest |
@snoyberg I'll give it a shot tonight (US Central), thank you! |
Seems like it got pretty far.
|
Interesting. doctest is finding your .cabal-sandbox and allowing that to override the package sandbox information that stack is setting. This results in it trying to use a GHC 7.10 package database, which GHC 7.8 doesn't understand. Presumably you'd get the same kind of error message if you had GHC 7.8 on your PATH and ran the test executable manually. Can you try renaming .cabal-sandbox to something else and trying again? For the record, in my testing, I got the following output (I don't have a local server running):
|
@snoyberg pulled latest stack, worked great until doctests (nice test output too)
I had to scroll up (the error output here is poor, suggest fixing error locality/reporting), but I found:
I ran cabal clean, nuked sandbox and sandbox config. Don't know what's causing this. bad news 🐻 🐻 🐻 😢 |
Are you sure you nuked the sandbox config? There isn't one in the current directory or a parent? I already sent a PR (which is merged) to doctest that addresses this problem in how it works, but it's only available in doctest 0.10. |
@snoyberg ^^ no sandbox, yeah? I don't think I missed anything there. It'd been cabal clean'd too. I have a knack for hitting bad states with tools. Kind of a curse really because repro is hard. |
Only other thing I can think of: is there a |
Works fine now. YEESH. I know this seems a bit one off, but if we detect that doctests failed, could we toss a warning out about this or are the doctests fixes going to make this go away? |
The doctest fixes completely resolve this issue. I made it so that the environment variables that stack sets override the presence of a cabal.sandbox.config. |
@snoyberg awesome, thank you! This is so exciting 💃 🐻 |
Cabal's test runner just causes huge amounts of problems:
cabal test
freezes butcabal test --show-details=streaming
works haskell/cabal#1810)So instead: let's just run tests ourselves directly. We can even have the output go to stdout if desired. Downside: we won't get automatic support for the new test types like detailed. I'm OK with that.
The text was updated successfully, but these errors were encountered: