-
Notifications
You must be signed in to change notification settings - Fork 32
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 Failure with GHC 8.2.2 #66
Comments
I mostly got these results building with Nix, so it's possible that there is some misconfiguration on the Nixpkgs side. However, I also got the same failure building a clone of the repo directly with |
It passes CI, and I just tried $ cabal unpack ghc-exactprint
$ cd ghc-exactprint-0.5.6.1/
$ cabal install --dependencies-only --enable-tests --with-compiler=ghc-8.2.2
$ cabal configure --enable-tests --with-compiler=ghc-8.2.2
$ cabal test and got ...
Linking dist/build/test/test ...
Running 1 test suites...
Test suite test: RUNNING...
Test suite test: PASS
Test suite logged to: dist/test/ghc-exactprint-0.5.6.1-test.log
1 of 1 test suites (1 of 1 test cases) passed.
|
Interesting. This means there's something about the Nix setup causing the tests to fail, but I don't know what that could be. I'll poke around a bit more to see if I can find the issue. Do you have any hunches? |
Is there some way to get more detailed output about what caused the test case to fail? |
Looks like it might be a macOS issue of some sort. One of my colleagues followed the same build steps as I did on Linux and did not encounter the test failure. |
To see the failure, should be simple, but we re-use some result files. So edit https://github.com/alanz/ghc-exactprint/blob/ghc-8.6/tests/Test.hs#L135 to comment out the last test category, i.e. return $ TestList [
internalTests,
roundTripTests
,
transformTests
, failingTests
, noAnnotationTests
-- ,
-- prettyRoundTripTests
] Then when the tests fail, you can compare https://github.com/alanz/ghc-exactprint/blob/ghc-8.6/tests/examples/ghc710/Control.hs to a file in the same directory called Control.hs.out The first part of the The rest of the file is the AST, and annotations found. |
Just took a look at Here's the broken part:
Here's what it's supposed to look like:
I had some rough theories before looking at this, but none of them are consistent with this behavior. |
That's odd. Normally anything with a |
Does it pass if you delete that line from the file? The CPP must die for haskell. |
Commenting out or deleting the Off-hand, this looks a bit like two streams (ie STDOUT and STDERR) getting interleaved in the |
Can you make the .out file that you get (together with the original if you have changed it) available via a gist or some such? |
Yes, I'm just rerunning the tests to do exactly that :). |
BTW, there is a function That way you can run a single test at a time. |
Okay, here's a Gist with both outputs: https://gist.github.com/TikhonJelvis/fb2b4ec9dbc4e73eee060883c33f9fda The only change I made to |
Oh yeah, here's the output for the one other failing test case ( https://gist.github.com/TikhonJelvis/4f7049926cf8e984692f41540917cde6 |
@alanz I'm seeing the same test failures as @TikhonJelvis is, building with Nix, using either GHC 8.2 and 8.4. |
I just re-read this thread, and it struck me that there is something about the Mac CPP that might be causing an issue. But I forget what it is. I guess we need to set up some mac CI, however that is done. |
Does ghc-exactprint depend on the system CPP? |
It depends on whatever GHC uses, so in that sense yes. |
Makes sense, thanks. Is there some way to get GHC to use a different CPP implementation? I believe there's one written in Haskell. At the very least this would let me rerun the tests locally to see if it makes a difference. |
@alanz Are you using Travis for CI now? |
For ghc-exactprint, yes. Will gladly accept a PR to add macos to the matrix |
I'm getting a test suite failure building
ghc-exactprint
with GHC 8.2.2:I've got this failure with the
master
branch and several versions from hackage:The text was updated successfully, but these errors were encountered: