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

one test fails in Nix flake #1250

Open
peterbecich opened this issue Aug 26, 2023 · 0 comments
Open

one test fails in Nix flake #1250

peterbecich opened this issue Aug 26, 2023 · 0 comments

Comments

@peterbecich
Copy link
Member

Tests configured here; tests for hackage-server currently disabled:

hackage-server/flake.nix

Lines 22 to 26 in 613f5eb

settings = {
hackage-server.check = false;
heist.check = false;
threads.check = false;
};

If

   hackage-server.check = true; 

nix build will run all the tests for hackage-server.

The result is:

$ nix build                                                                   
warning: Git tree '/home/peterbecich/haskell/libraries/hackage-server' is dirty
error: builder for '/nix/store/wn52nq1y63s73rm648bks4g6d8ayl2k9-hackage-server-0.5.1.drv' failed with exit code 1;
       last 10 log lines:
       > = Getting testpackage maintainer info
       > = Finished with server
       > Got thread killed, so killing
       > = Server terminated
       > Test suite HighLevelTest: PASS
       > Test suite logged to: dist/test/hackage-server-0.5.1-HighLevelTest.log
       > Test suite PaginationTest: RUNNING...
       > Test suite PaginationTest: PASS
       > Test suite logged to: dist/test/hackage-server-0.5.1-PaginationTest.log
       > 6 of 7 test suites (6 of 7 test cases) passed.
       For full logs, run 'nix log /nix/store/wn52nq1y63s73rm648bks4g6d8ayl2k9-hackage-server-0.5.1.drv'.

Excerpt from the full logs:

= Server thread started
= Server not up yet; will try again shortly
= (result was Left user error (openTCPConnection: failed to connect to 127.0.0.1:8392: Network.Socket.connect: <socket: 13>: does not exist (Connection refused)))
using "/build/hackage-server-0.5.1/dist/build/hackage-server/hackage-server"
hackage-server: Guessing public URI as http://localhost:8392
(you can override with the --base-uri= flag)
hackage-server: Ready! Point your browser at http://localhost:8392
= Making a request to see if server is up
= Server is up
= Server running
= Getting package list
= Getting package index
= Getting package index with etag
= Getting testpackage info
= Validating "/package/testpackage.html": failed: 1 error(s)
1.      Couldn't connect to validation service
= Getting testpackage-1.0.0.0 info
= Validating "/package/testpackage-1.0.0.0": failed: 1 error(s)
1.      Couldn't connect to validation service
= Getting testpackage-1.0.0.0 info (JSON)
= Validating "/package/testpackage-1.0.0.0.json": failed: 1 error(s)
1.      Couldn't connect to validation service
= Getting testpackage version info (JSON)
= Validating "/package/testpackage.json": failed: 1 error(s)
1.      Couldn't connect to validation service
= Getting testpackage Cabal file
= Getting testpackage tar file
= Getting testpackage source
= Getting testpackage source with etag
= Getting testpackage maintainer info
= Finished with server
Got thread killed, so killing
= Server terminated
Test suite HighLevelTest: PASS
Test suite logged to: dist/test/hackage-server-0.5.1-HighLevelTest.log
Test suite PaginationTest: RUNNING...
Test suite PaginationTest: PASS
Test suite logged to: dist/test/hackage-server-0.5.1-PaginationTest.log
6 of 7 test suites (6 of 7 test cases) passed.
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

1 participant