{"action":"created","issue":{"url":"https://api.github.com/repos/input-output-hk/ouroboros-network/issues/1351","repository_url":"https://api.github.com/repos/input-output-hk/ouroboros-network","labels_url":"https://api.github.com/repos/input-output-hk/ouroboros-network/issues/1351/labels{/name}","comments_url":"https://api.github.com/repos/input-output-hk/ouroboros-network/issues/1351/comments","events_url":"https://api.github.com/repos/input-output-hk/ouroboros-network/issues/1351/events","html_url":"https://github.com/input-output-hk/ouroboros-network/issues/1351","id":537762162,"node_id":"MDU6SXNzdWU1Mzc3NjIxNjI=","number":1351,"title":"Golden tests can fail due to relative paths","user":{"login":"nfrisby","id":1106131,"node_id":"MDQ6VXNlcjExMDYxMzE=","avatar_url":"https://avatars0.githubusercontent.com/u/1106131?v=4","gravatar_id":"","url":"https://api.github.com/users/nfrisby","html_url":"https://github.com/nfrisby","followers_url":"https://api.github.com/users/nfrisby/followers","following_url":"https://api.github.com/users/nfrisby/following{/other_user}","gists_url":"https://api.github.com/users/nfrisby/gists{/gist_id}","starred_url":"https://api.github.com/users/nfrisby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfrisby/subscriptions","organizations_url":"https://api.github.com/users/nfrisby/orgs","repos_url":"https://api.github.com/users/nfrisby/repos","events_url":"https://api.github.com/users/nfrisby/events{/privacy}","received_events_url":"https://api.github.com/users/nfrisby/received_events","type":"User","site_admin":false},"labels":[{"id":1262409869,"node_id":"MDU6TGFiZWwxMjYyNDA5ODY5","url":"https://api.github.com/repos/input-output-hk/ouroboros-network/labels/testing","name":"testing","color":"f9c0ca","default":false,"description":""}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-12-13T20:23:25Z","updated_at":"2019-12-16T10:31:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm assuming this failure is due to relative paths and the process's working directory. Ideally the test wouldn't be sensitive to that.\r\n\r\n```\r\n$ cd ouroboros-network\r\n$ cabal v2-run ouroboros-consensus:test:test-consensus\r\n...\r\n    Golden tests\r\n      ChainState:                                         FAIL\r\n        Exception: test-consensus/golden/cbor/byron/ChainState: openBinaryFile: does not exist (No such file or directory)\r\n      LedgerState:                                        FAIL\r\n        Exception: test-consensus/golden/cbor/byron/LedgerState: openBinaryFile: does not exist (No such file or directory)\r\n      GenTxId:                                            FAIL\r\n        Exception: test-consensus/golden/cbor/byron/GenTxId: openBinaryFile: does not exist (No such file or directory)\r\n...\r\n$ ls -1 ouroboros-consensus/test-consensus/golden/cbor/byron/\r\nChainState\r\nGenTxId\r\nLedgerState\r\n```\r\n\r\nAfter running `ln -s ouroboros-consensus/test-consensus`, the tests pass.\r\n\r\ncc: @mrBliss "},"comment":{"url":"https://api.github.com/repos/input-output-hk/ouroboros-network/issues/comments/566001504","html_url":"https://github.com/input-output-hk/ouroboros-network/issues/1351#issuecomment-566001504","issue_url":"https://api.github.com/repos/input-output-hk/ouroboros-network/issues/1351","id":566001504,"node_id":"MDEyOklzc3VlQ29tbWVudDU2NjAwMTUwNA==","user":{"login":"mrBliss","id":373460,"node_id":"MDQ6VXNlcjM3MzQ2MA==","avatar_url":"https://avatars0.githubusercontent.com/u/373460?v=4","gravatar_id":"","url":"https://api.github.com/users/mrBliss","html_url":"https://github.com/mrBliss","followers_url":"https://api.github.com/users/mrBliss/followers","following_url":"https://api.github.com/users/mrBliss/following{/other_user}","gists_url":"https://api.github.com/users/mrBliss/gists{/gist_id}","starred_url":"https://api.github.com/users/mrBliss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrBliss/subscriptions","organizations_url":"https://api.github.com/users/mrBliss/orgs","repos_url":"https://api.github.com/users/mrBliss/repos","events_url":"https://api.github.com/users/mrBliss/events{/privacy}","received_events_url":"https://api.github.com/users/mrBliss/received_events","type":"User","site_admin":false},"created_at":"2019-12-16T10:31:25Z","updated_at":"2019-12-16T10:31:25Z","author_association":"CONTRIBUTOR","body":"I see. With stack, I don't have this problem, I can successfully run the tests from any directory within the project.\r\n\r\nSurely there must be a solution for this, as we can't be the first to run into this."}}
{"actor":{"display_login":"mrBliss"}}