{"action":"created","issue":{"url":"https://api.github.com/repos/golemfactory/golem/issues/1257","repository_url":"https://api.github.com/repos/golemfactory/golem","labels_url":"https://api.github.com/repos/golemfactory/golem/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/golemfactory/golem/issues/1257/comments","events_url":"https://api.github.com/repos/golemfactory/golem/issues/1257/events","html_url":"https://github.com/golemfactory/golem/issues/1257","id":249382584,"number":1257,"title":"Golem tests are non-deterministic","user":{"login":"marmistrz","id":2914938,"avatar_url":"https://avatars1.githubusercontent.com/u/2914938?v=4","gravatar_id":"","url":"https://api.github.com/users/marmistrz","html_url":"https://github.com/marmistrz","followers_url":"https://api.github.com/users/marmistrz/followers","following_url":"https://api.github.com/users/marmistrz/following{/other_user}","gists_url":"https://api.github.com/users/marmistrz/gists{/gist_id}","starred_url":"https://api.github.com/users/marmistrz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmistrz/subscriptions","organizations_url":"https://api.github.com/users/marmistrz/orgs","repos_url":"https://api.github.com/users/marmistrz/repos","events_url":"https://api.github.com/users/marmistrz/events{/privacy}","received_events_url":"https://api.github.com/users/marmistrz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-10T15:18:38Z","updated_at":"2017-09-14T14:00:06Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When working with PR https://github.com/golemfactory/golem/pull/1254, commit 383cbc7, I ran the tests three times, with three different results.\r\n\r\n1. First CircleCI build failed: \r\n2. Rebuild succeeded: https://circleci.com/gh/golemfactory/golem/4934\r\n3. When I ran the tests locally, a hyperdrive test failed:\r\n```\r\n__________________________________________________________________________________________ TestHyperdriveResources.test ___________________________________________________________________________________________\r\n\r\nself = <test_hyperdrive_resourcemanager.TestHyperdriveResources testMethod=test>\r\n\r\n    def test(self):\r\n    \r\n        send_buf_1 = []\r\n        send_buf_2 = []\r\n    \r\n        self.task_session_1.send = lambda x: send_buf_1.append(x)\r\n        self.task_session_2.send = lambda x: send_buf_2.append(x)\r\n    \r\n        msg_get_resource = MessageGetResource(task_id=self.task_id)\r\n        msg = MessageGetResource.deserialize_message(\r\n            msg_get_resource.serialize())\r\n        assert msg\r\n    \r\n        self.task_session_1._react_to_get_resource(msg)\r\n    \r\n        msg_resource_list = send_buf_1.pop()\r\n        msg = MessageResourceList.deserialize_message(\r\n            msg_resource_list.serialize())\r\n        assert msg\r\n    \r\n        self.task_session_2._react_to_resource_list(msg)\r\n        self.resource_server_2._download_resources(async=False)\r\n    \r\n        for r in self.resources_relative:\r\n            location_1 = os.path.join(self.resource_dir_1, r)\r\n            location_2 = os.path.join(self.resource_dir_2, r)\r\n    \r\n            assert os.path.exists(location_1)\r\n>           assert os.path.exists(location_2)\r\nE           AssertionError\r\n\r\ngolem/resource/base/resourcetest.py:152: AssertionError\r\n---------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------\r\nWARNING  [golem.appconfig                    ] Can't open file /home/marcin/.local/share/golem/SimpleEnv/GOODSETTINGS: [Errno 2] No such file or directory: '/home/marcin/.local/share/golem/SimpleEnv/GOODSETTINGS' \r\nWARNING  [golem.appconfig                    ] Can't open file /home/marcin/.local/share/golem/SimpleEnv/GOODSETTINGS: [Errno 2] No such file or directory: '/home/marcin/.local/share/golem/SimpleEnv/GOODSETTINGS' \r\nERROR    [golem.resource.base.resourcesmanager] Resource manager: error downloading /tmp/golem-tests-luwxa1bh/test9kfy2gy0/node_2/8045a348-ff12-4b96-b11c-20d548da16f0/resources/. (a39e3b63d13f30fb834dc61b5a9ffb9e765a72e2d28532b6b89903d34db20d9a): HTTPConnectionPool(host='localhost', port=3292): Max retries exceeded with url: /api (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fbb6f0ab898>: Failed to establish a new connection: [Errno 111] Connection refused',)) \r\nWARNING  [golem.rpc                          ] RPC: Cannot publish 'evt.component.state', session is not yet established \r\nWARNING  [golem.rpc                          ] RPC: Cannot publish 'evt.component.state', session is not yet established \r\n```"},"comment":{"url":"https://api.github.com/repos/golemfactory/golem/issues/comments/329490936","html_url":"https://github.com/golemfactory/golem/issues/1257#issuecomment-329490936","issue_url":"https://api.github.com/repos/golemfactory/golem/issues/1257","id":329490936,"user":{"login":"marmistrz","id":2914938,"avatar_url":"https://avatars1.githubusercontent.com/u/2914938?v=4","gravatar_id":"","url":"https://api.github.com/users/marmistrz","html_url":"https://github.com/marmistrz","followers_url":"https://api.github.com/users/marmistrz/followers","following_url":"https://api.github.com/users/marmistrz/following{/other_user}","gists_url":"https://api.github.com/users/marmistrz/gists{/gist_id}","starred_url":"https://api.github.com/users/marmistrz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmistrz/subscriptions","organizations_url":"https://api.github.com/users/marmistrz/orgs","repos_url":"https://api.github.com/users/marmistrz/repos","events_url":"https://api.github.com/users/marmistrz/events{/privacy}","received_events_url":"https://api.github.com/users/marmistrz/received_events","type":"User","site_admin":false},"created_at":"2017-09-14T14:00:06Z","updated_at":"2017-09-14T14:00:06Z","author_association":"CONTRIBUTOR","body":"As for me yes, @inexxt?"}}
{"actor":{"display_login":"marmistrz"}}