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

stackage-curator-0.11.0 (LTS 4.2) fails its test suite on Nix #1165

Closed
peti opened this issue Jan 20, 2016 · 4 comments
Closed

stackage-curator-0.11.0 (LTS 4.2) fails its test suite on Nix #1165

peti opened this issue Jan 20, 2016 · 4 comments

Comments

@peti
Copy link
Contributor

peti commented Jan 20, 2016

Citing from http://hydra.cryp.to/build/1573140/log/raw:

Stackage.PackageIndex
  works FAILED [1]
Determining target package versions
  getLatestDescriptions gives reasonable results FAILED [2]

Failures:

  test/Stackage/PackageIndexSpec.hs:11: 
  1) Stackage.PackageIndex works
       uncaught exception: IOException of type NoSuchThing (/homeless-shelter/.cabal/config: openFile: does not exist (No such file or directory))

  test/Stackage/PackageIndexSpec.hs:12: 
  2) Stackage.PackageIndex getLatestDescriptions gives reasonable results
       uncaught exception: IOException of type NoSuchThing (/homeless-shelter/.cabal/config: openFile: does not exist (No such file or directory))

Randomized with seed 283124373

Finished in 14.0319 seconds
10 examples, 2 failures
Test suite spec: FAIL

Apparently, the tests make assumptions about the contents (and existence) of $HOME?

@snoyberg
Copy link
Contributor

Quite accidentally I probably just fixed this on master. I'll make a
release sooner rather than later to confirm this

On Wed, Jan 20, 2016, 3:29 PM Peter Simons notifications@github.com wrote:

Citing from http://hydracrypto/build/1573140/log/raw:

StackagePackageIndex
works FAILED [1]
Determining target package versions
getLatestDescriptions gives reasonable results FAILED [2]

Failures:

test/Stackage/PackageIndexSpechs:11:

  1. StackagePackageIndex works
    uncaught exception: IOException of type NoSuchThing (/homeless-shelter/cabal/config: openFile: does not exist (No such file or directory))

test/Stackage/PackageIndexSpechs:12:
2) StackagePackageIndex getLatestDescriptions gives reasonable results
uncaught exception: IOException of type NoSuchThing (/homeless-shelter/cabal/config: openFile: does not exist (No such file or directory))

Randomized with seed 283124373

Finished in 140319 seconds
10 examples, 2 failures
Test suite spec: FAIL

Apparently, the tests make assumptions about the contents (and existence)
of $HOME?


Reply to this email directly or view it on GitHub
#1165.

@peti
Copy link
Contributor Author

peti commented Jan 20, 2016

Very cool, thank you!

@snoyberg
Copy link
Contributor

I just pushed 0.13.0. However, I now realize that the test suite may instead depend on different files in the HOME directory at this point. Please let me know what the results of your next testing are (presumably after LTS-5 is released).

@peti
Copy link
Contributor Author

peti commented Jan 31, 2016

The new version says:

Running 1 test suites...
Test suite spec: RUNNING...

Stackage.BuildPlan
  simple package set
  bad version range on depdendency fails
  nonexistent package fails to check
  mutual cycles fail to check
  nested cycles fail to check
Stackage.CorePackages
  works
  contains known core packages
  getCoreExecutables includes known executables
Stackage.PackageIndex
  works FAILED [1]
Determining target package versions
  getLatestDescriptions gives reasonable results FAILED [2]

Failures:

  test/Stackage/PackageIndexSpec.hs:11: 
  1) Stackage.PackageIndex works
       uncaught exception: IOException of type NoSuchThing (/homeless-shelter/.stack/indices/Hackage/00-index.tar: openFile: does not exist (No such file or directory))

  test/Stackage/PackageIndexSpec.hs:12: 
  2) Stackage.PackageIndex getLatestDescriptions gives reasonable results
       uncaught exception: IOException of type NoSuchThing (/homeless-shelter/.stack/indices/Hackage/00-index.tar: openFile: does not exist (No such file or directory))

Randomized with seed 1686695243

Finished in 27.4285 seconds
10 examples, 2 failures
Test suite spec: FAIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants