-
Notifications
You must be signed in to change notification settings - Fork 39
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
Tests failing on Windows in the GH Workflow CI #650
Comments
I am able to replicate a very long delay on a Windows 10 VM. Using latest master (4fca791):
For this, I am running the ipfs daemon separate (v0.6.0). If I do not start the daemon separately and just run
Output of second runif socket_options is not None: for opt in socket_options: sock.setsockopt(*opt)
self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04C56160>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:96: address = ('localhost', 5001), timeout = <object object at 0x00986BF0>, source_address = None
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:66: address = ('localhost', 5001), timeout = <object object at 0x00986BF0>, source_address = None
E ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it ....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:57: ConnectionRefusedError During handling of the above exception, another exception occurred: hstr = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding'
ipwb\indexer.py:80: bytes = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding'
ipwb\indexer.py:383: args = (<ipfshttpclient.client.Client object at 0x03F4ACB8>, b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding')
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\utils.py:148: args = (<ipfshttpclient.client.Client object at 0x03F4ACB8>, b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding')
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\client\base.py:136: self = <ipfshttpclient.client.Client object at 0x03F4ACB8>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\client_init_.py:257: self = <ipfshttpclient.http_requests.ClientSync object at 0x048B4528>, path = '/add', args = []
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\http_common.py:564: self = <ipfshttpclient.http_requests.ClientSync object at 0x048B4528>, method = 'POST', path = 'add', params = []
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\http_requests.py:152: self = <ipfshttpclient.requests_wrapper.Session object at 0x04A6E3E8>, method = 'POST'
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:219: self = <ipfshttpclient.requests_wrapper.Session object at 0x04A6E3E8>, method = 'POST'
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py:530: self = <ipfshttpclient.requests_wrapper.Session object at 0x04A6E3E8>, request = <PreparedRequest [POST]>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py:643: self = <ipfshttpclient.requests_wrapper.HTTPAdapter object at 0x04A6E400>, request = <PreparedRequest [POST]>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py:467: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04C56160>, message_body = None
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:1235: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04C56160>, message_body = None
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:1006: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04C56160>
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:946: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04C56160>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connection.py:187: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04C56160>
E urllib3.exceptions.NewConnectionError: <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04C56160>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it ....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:103: NewConnectionError During handling of the above exception, another exception occurred: warc = '2mementos.warc', lookup = 'memento//?url=memento.us', status = 301, location = '/memento//memento.us'
tests\test_replay.py:53: tests\testUtil.py:69: in startReplay hstr = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding'
E SystemExit ipwb\indexer.py:91: SystemExit
self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04D1E9D0>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:96: address = ('localhost', 5001), timeout = <object object at 0x00986BF0>, source_address = None
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:66: address = ('localhost', 5001), timeout = <object object at 0x00986BF0>, source_address = None
E ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it ....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:57: ConnectionRefusedError During handling of the above exception, another exception occurred: hstr = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding'
ipwb\indexer.py:80: bytes = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding'
ipwb\indexer.py:383: args = (<ipfshttpclient.client.Client object at 0x03F4ACB8>, b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding')
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\utils.py:148: args = (<ipfshttpclient.client.Client object at 0x03F4ACB8>, b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding')
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\client\base.py:136: self = <ipfshttpclient.client.Client object at 0x03F4ACB8>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\client_init_.py:257: self = <ipfshttpclient.http_requests.ClientSync object at 0x048B4528>, path = '/add', args = []
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\http_common.py:564: self = <ipfshttpclient.http_requests.ClientSync object at 0x048B4528>, method = 'POST', path = 'add', params = []
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\http_requests.py:152: self = <ipfshttpclient.requests_wrapper.Session object at 0x04D1E6E8>, method = 'POST'
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:219: self = <ipfshttpclient.requests_wrapper.Session object at 0x04D1E6E8>, method = 'POST'
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py:530: self = <ipfshttpclient.requests_wrapper.Session object at 0x04D1E6E8>, request = <PreparedRequest [POST]>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py:643: self = <ipfshttpclient.requests_wrapper.HTTPAdapter object at 0x04D1E3A0>, request = <PreparedRequest [POST]>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py:467: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04D1E9D0>, message_body = None
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:1235: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04D1E9D0>, message_body = None
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:1006: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04D1E9D0>
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:946: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04D1E9D0>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connection.py:187: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04D1E9D0>
E urllib3.exceptions.NewConnectionError: <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x04D1E9D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it ....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:103: NewConnectionError During handling of the above exception, another exception occurred: warc = '2mementos_queryString.warc'
tests\test_replay.py:53: tests\testUtil.py:69: in startReplay hstr = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Mon, 30 Jan 2017 18:39:49 GMT\r\nContent-Type: text/html\r\nConnection: close\r\nVary: Accept-Encoding'
E SystemExit ipwb\indexer.py:91: SystemExit
self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x008B18F8>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:96: address = ('localhost', 5001), timeout = <object object at 0x00986BF0>, source_address = None
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:66: address = ('localhost', 5001), timeout = <object object at 0x00986BF0>, source_address = None
E ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it ....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:57: ConnectionRefusedError During handling of the above exception, another exception occurred: hstr = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Sat, 05 Mar 2016 19:22:47 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nVary: Accept-Encoding'
ipwb\indexer.py:80: bytes = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Sat, 05 Mar 2016 19:22:47 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nVary: Accept-Encoding'
ipwb\indexer.py:383: args = (<ipfshttpclient.client.Client object at 0x03F4ACB8>, b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Sat, 05 Mar 2016 19:22:47 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nVary: Accept-Encoding')
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\utils.py:148: args = (<ipfshttpclient.client.Client object at 0x03F4ACB8>, b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Sat, 05 Mar 2016 19:22:47 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nVary: Accept-Encoding')
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\client\base.py:136: self = <ipfshttpclient.client.Client object at 0x03F4ACB8>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\client_init_.py:257: self = <ipfshttpclient.http_requests.ClientSync object at 0x048B4528>, path = '/add', args = []
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\http_common.py:564: self = <ipfshttpclient.http_requests.ClientSync object at 0x048B4528>, method = 'POST', path = 'add', params = []
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\http_requests.py:152: self = <ipfshttpclient.requests_wrapper.Session object at 0x008B1718>, method = 'POST'
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:219: self = <ipfshttpclient.requests_wrapper.Session object at 0x008B1718>, method = 'POST'
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py:530: self = <ipfshttpclient.requests_wrapper.Session object at 0x008B1718>, request = <PreparedRequest [POST]>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py:643: self = <ipfshttpclient.requests_wrapper.HTTPAdapter object at 0x008B1520>, request = <PreparedRequest [POST]>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py:467: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x008B18F8>, message_body = None
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:1235: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x008B18F8>, message_body = None
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:1006: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x008B18F8>
....\AppData\Local\Programs\Python\Python38-32\lib\http\client.py:946: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x008B18F8>
....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connection.py:187: self = <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x008B18F8>
E urllib3.exceptions.NewConnectionError: <ipfshttpclient.requests_wrapper.HTTPConnection object at 0x008B18F8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it ....\AppData\Local\Programs\Python\Python38-32\lib\site-packages\ipfshttpclient\requests_wrapper.py:103: NewConnectionError During handling of the above exception, another exception occurred:
tests\test_replay.py:65: tests\testUtil.py:69: in startReplay hstr = b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Sat, 05 Mar 2016 19:22:47 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nVary: Accept-Encoding'
E SystemExit ipwb\indexer.py:91: SystemExit
tests\test_replay.py:185: ipwb\replay.py:141: in commandDaemon self = <subprocess.Popen object at 0x04DF9538>, args = 'ipfs daemon', executable = None, preexec_fn = None
E FileNotFoundError: [WinError 2] The system cannot find the file specified ....\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py:1307: FileNotFoundError It might be good to start the daemon and run the tests individually to isolate the problem. |
Dropping to the debugger on the first failure might be informative, e.g. (view raw), Output> pytest -x --pdb ================================================= test session starts ================================================= platform win32 -- Python 3.8.3, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 rootdir: C:\Users\mrk335\Desktop\ipwb-master, inifile: setup.cfg plugins: cov-2.10.0, flake8-1.0.6 collected 114 items Failing test:
Perhaps it is trying to read the whole string as a URI and indicating what it is parsing as the scheme ( I presume testing "local" means passing the function a string and seeing how it behaves, which might be indicative of the test rightly failing because of the questionable support for this in backends.py. EDIT: still odd that this passes on non-Windows OSes (e.g., macOS, unable to replicate). |
Update: It's path 1, the call to |
It might help, @ibnesayeed, but I am curious as to why it is considered a hash on macOS but not Windows. This might also point to a bug in py-ipfs-http-client. I am hoping to investigate further. |
@machawk1 did you try to investigate these issues on atomic level in the interactive Python prompt in Windows? |
@ibnesayeed What I tried is documented above. More to come. |
During the recent implementation of GH Workflow CI #648 for cross-platform matrix testing we found that tests were failing on Windows and hanging the process indefinitely. Once such failed attempts can be seen in a previous CI log (expand the skipped "Run Tests" step for details). This shows some exceptions there, which need to be investigated on a Windows machine manually.
The possibility of the failure coming from the newly created IPFS Setup Action unlikely because tests there are passing in all platforms, both for CLI and API.
The text was updated successfully, but these errors were encountered: