{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1031","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1031/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1031/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1031/events","html_url":"https://github.com/commercialhaskell/stack/issues/1031","id":107850922,"number":1031,"title":"first time running `stack test` issues with lock","user":{"login":"wolftune","id":2801853,"avatar_url":"https://avatars.githubusercontent.com/u/2801853?v=3","gravatar_id":"","url":"https://api.github.com/users/wolftune","html_url":"https://github.com/wolftune","followers_url":"https://api.github.com/users/wolftune/followers","following_url":"https://api.github.com/users/wolftune/following{/other_user}","gists_url":"https://api.github.com/users/wolftune/gists{/gist_id}","starred_url":"https://api.github.com/users/wolftune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolftune/subscriptions","organizations_url":"https://api.github.com/users/wolftune/orgs","repos_url":"https://api.github.com/users/wolftune/repos","events_url":"https://api.github.com/users/wolftune/events{/privacy}","received_events_url":"https://api.github.com/users/wolftune/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/need%20repro","name":"need repro","color":"fbca04"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":57,"closed_issues":65,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2015-10-08T12:35:19Z","due_on":"2015-11-30T08:00:00Z","closed_at":null},"comments":9,"created_at":"2015-09-23T05:14:07Z","updated_at":"2015-10-08T21:50:17Z","closed_at":null,"body":"when I run `stack test` for the first time and it installs extra dependencies for testing, it doesn't close stack properly before moving into running the tests and then the tests hang when stack sees a lock file. I have to manually kill the stack process and then run `stack test` again, and then it works.\r\n\r\nI've noticed this on several occasions but infrequently because I rarely rebuild from nothing. Others had this issue too."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/146695573","html_url":"https://github.com/commercialhaskell/stack/issues/1031#issuecomment-146695573","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1031","id":146695573,"user":{"login":"rrnewton","id":274582,"avatar_url":"https://avatars.githubusercontent.com/u/274582?v=3","gravatar_id":"","url":"https://api.github.com/users/rrnewton","html_url":"https://github.com/rrnewton","followers_url":"https://api.github.com/users/rrnewton/followers","following_url":"https://api.github.com/users/rrnewton/following{/other_user}","gists_url":"https://api.github.com/users/rrnewton/gists{/gist_id}","starred_url":"https://api.github.com/users/rrnewton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrnewton/subscriptions","organizations_url":"https://api.github.com/users/rrnewton/orgs","repos_url":"https://api.github.com/users/rrnewton/repos","events_url":"https://api.github.com/users/rrnewton/events{/privacy}","received_events_url":"https://api.github.com/users/rrnewton/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T21:50:17Z","updated_at":"2015-10-08T21:50:17Z","body":"Giving up on this as a reproducer for now -- the above Dockerfile must be incomplete, because it runs into this:\r\n\r\n```\r\nstarting test program\r\nbuilding foundation\r\ntest: libpq: failed (could not connect to server: Connection refused\r\n\tIs the server running on host \"localhost\" (::1) and accepting\r\n\tTCP/IP connections on port 5432?\r\ncould not connect to server: Connection refused\r\n\tIs the server running on host \"localhost\" (127.0.0.1) and accepting\r\n\tTCP/IP connections on port 5432?\r\n)\r\n```\r\n\r\n(And should for anyone else too, if it's in fact perfectly reproducible!)\r\n\r\nUsually it would be easier to make a small test case to reproduce... I just wanted to push on this one a bit because we have plenty of other repos that run `stack test` on a fresh checkout (in travis and jenkins jobs) and *don't* exhibit the problem described by this issue.\r\n"}}