Skip to content
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 #9

Closed
snoyberg opened this issue May 10, 2015 · 13 comments
Closed

Test suite failure #9

snoyberg opened this issue May 10, 2015 · 13 comments
Milestone

Comments

@snoyberg
Copy link
Contributor

$ cabal test
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Configuring ghc-events-0.4.4.0...
Preprocessing test suite 'test-versions' for ghc-events-0.4.4.0...
[1 of 4] Compiling GHC.RTS.EventTypes ( GHC/RTS/EventTypes.hs, dist/build/test-versions/test-versions-tmp/GHC/RTS/EventTypes.o )
[2 of 4] Compiling GHC.RTS.EventParserUtils ( GHC/RTS/EventParserUtils.hs, dist/build/test-versions/test-versions-tmp/GHC/RTS/EventParserUtils.o )
[3 of 4] Compiling GHC.RTS.Events   ( GHC/RTS/Events.hs, dist/build/test-versions/test-versions-tmp/GHC/RTS/Events.o )
[4 of 4] Compiling Main             ( test/TestVersions.hs, dist/build/test-versions/test-versions-tmp/Main.o )
Linking dist/build/test-versions/test-versions ...
Running 1 test suites...
Test suite test-versions: RUNNING...
test-versions: test/queens-ghc-6.12.1.eventlog: openBinaryFile: does not exist (No such file or directory)
Test suite test-versions: FAIL
Test suite logged to: dist/test/ghc-events-0.4.4.0-test-versions.log
0 of 1 test suites (0 of 1 test cases) passed.
snoyberg added a commit to commercialhaskell/stackage that referenced this issue May 10, 2015
Mikolaj added a commit that referenced this issue May 10, 2015
BTW, after this change, tests take much more space than the source code.
@jberthold
Copy link
Contributor

Which platform are you running on, @snoyberg ?
This might be because the test program hard-wires '/' as the path separator, see https://github.com/haskell/ghc-events/blob/master/test/TestVersions.hs#L21 . I cannot reproduce it on Linux.

@snoyberg
Copy link
Contributor Author

This was on Linux. Usually these kinds of things are caused by a test file not being included in the sdist tarball.

@kvelicka
Copy link
Contributor

That is indeed the case - http://hackage.haskell.org/package/ghc-events-0.4.4.0/src/

Neither of the queens event logs are present there. It doesn't look like the *.reference files are either?

@Mikolaj
Copy link
Member

Mikolaj commented Jul 23, 2015

Isn't it fixed in the commit mentioned above (post-0.4.4.0)?

@kvelicka
Copy link
Contributor

@Mikolaj It seems that the version uploaded to Hackage is missing some of the test files, as @snoyberg has suggested. I've just tested this - cleaned my cabal package cache and ran cabal get ghc-events. Here's the file list for test/:

➜  ghc-events-0.4.4.0  l test 
total 212K
drwxr-xr-x. 2 sm11kv Domain Users 4.0K Jul 24 11:20 .
drwxr-xr-x. 4 sm11kv Domain Users 4.0K Jul 24 11:20 ..
-rw-r--r--. 1 sm11kv Domain Users 6.6K Jul 24 11:20 782stop.eventlog
-rw-r--r--. 1 sm11kv Domain Users 6.7K Jul 24 11:20 783stop.eventlog
-rw-r--r--. 1 sm11kv Domain Users 102K Jul 24 11:20 mandelbrot-mmc-2011-06-14.eventlog
-rw-r--r--. 1 sm11kv Domain Users  66K Jul 24 11:20 mdlLogMPI1.eventlog
-rw-r--r--. 1 sm11kv Domain Users 6.4K Jul 24 11:20 pre77stop.eventlog
-rw-r--r--. 1 sm11kv Domain Users 1.3K Jul 24 11:20 stop.hs
-rw-r--r--. 1 sm11kv Domain Users 2.3K Jul 24 11:20 TestVersions.hs

Note that in addition to both queens event logs missing, none of the *.reference files are present either.

Could it be that the version with f7ca66a never made it to the servers? The commit is authored on the 10th of May, but last upload to Hackage was at "Mon May 4 13:28:10 UTC 2015 by MikolajKonarski".

@Mikolaj
Copy link
Member

Mikolaj commented Jul 24, 2015

@kvelicka: indeed your diagnosis is right, the commit mentioned above was never published, as it was committed after the last version (0.4.4.0) was published.

@kvelicka
Copy link
Contributor

Considering that this is fixed in master, closing.

@bergmark
Copy link

The test-suite for this package has been disabled in stackage because of this issue. If a fix is published to hackage can you please ping me?

Thanks!

ping @borsboom (stackage maintainer for ghc-events)

@Mikolaj Mikolaj reopened this Aug 28, 2016
@jberthold
Copy link
Contributor

AFAICT this was fixed in f7ca66a4 but which is not yet on hackage.

@kvelicka
Copy link
Contributor

@jberthold is right. Is there a way to bump the Hackage version to that one?

@Mikolaj
Copy link
Member

Mikolaj commented Aug 29, 2016

@kvelicka: AFAIK, the only way is to release a new version of the package. We are approaching that moment, aren't we?

@kvelicka
Copy link
Contributor

kvelicka commented Aug 30, 2016

A little more work needs to be done to make it release ready, mostly testing and cleaning everything up. That I think would suffice for a release to start 0.5.*.

However, issues like broken log merging would have to wait until later. That would advance the release and I'm only aware of problems carried over from the previous versions, not introduced by new code.

@maoe maoe added this to the 0.5.0.0 milestone Mar 1, 2017
@maoe
Copy link
Member

maoe commented May 31, 2017

This was fixed in v0.5.0.0 and v0.6.0 has been released on Hackage.

@maoe maoe closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants