[ https://issues.apache.org/jira/browse/DISPATCH-1756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17311906#comment-17311906 ]
ASF subversion and git services commented on DISPATCH-1756: ----------------------------------------------------------- Commit ee47141187f2987f05529563e5c2aef5a889151b in qpid-dispatch's branch refs/heads/main from Jiri Daněk [ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=ee47141 ] DISPATCH-1756 Don't hardcode errnos in test, macOS uses different numerical codes (#1087) > [macOS] failure in system_tests_http > ------------------------------------ > > Key: DISPATCH-1756 > URL: https://issues.apache.org/jira/browse/DISPATCH-1756 > Project: Qpid Dispatch > Issue Type: Bug > Affects Versions: 1.13.0 > Reporter: Jiri Daněk > Assignee: Jiri Daněk > Priority: Major > Labels: macOS > Fix For: 1.16.0 > > > At this point, this is the only (!!!) failure on macOS, besides few flaky > test timeouts. > [https://travis-ci.com/github/jiridanek/qpid-dispatch/jobs/375200667#L4235] > {noformat} > test 57 > Start 57: system_tests_http > 57: Test command: > /Users/travis/build/jiridanek/qpid-dispatch/p3venv/bin/python > "/Users/travis/build/jiridanek/qpid-dispatch/build/tests/run.py" "-m" > "unittest" "-v" "system_tests_http" > 57: Test timeout computed to be: 600 > 57: test_http_get (system_tests_http.RouterTestHttp) ... > /Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py:55: > DeprecationWarning: cafile, capath and cadefault are deprecated, use a custom > context instead. > 57: http_data = urlopen(url, cafile=cls.ssl_file('ca-certificate.pem')) > 57: ok > 57: test_http_healthz (system_tests_http.RouterTestHttp) ... > /Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py:249: > DeprecationWarning: cafile, capath and cadefault are deprecated, use a custom > context instead. > 57: result = urlopen("http://localhost:%d/healthz" % port, > cafile=self.ssl_file('ca-certificate.pem')) > 57: ok > 57: test_http_listener_delete (system_tests_http.RouterTestHttp) ... ERROR > 57: test_http_metrics (system_tests_http.RouterTestHttp) ... > /Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py:210: > DeprecationWarning: cafile, capath and cadefault are deprecated, use a custom > context instead. > 57: result = urlopen("http://localhost:%d/metrics" % port, > cafile=self.ssl_file('ca-certificate.pem')) > 57: ok > 57: test_https_get (system_tests_http.RouterTestHttp) ... > /Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py:55: > DeprecationWarning: cafile, capath and cadefault are deprecated, use a custom > context instead. > 57: http_data = urlopen(url, cafile=cls.ssl_file('ca-certificate.pem')) > 57: ERROR > 57: test_listen_error (system_tests_http.RouterTestHttp) > 57: Make sure a router exits if an initial HTTP listener fails, doesn't hang > ... ok > 57: > 57: ====================================================================== > 57: ERROR: test_http_listener_delete (system_tests_http.RouterTestHttp) > 57: ---------------------------------------------------------------------- > 57: Traceback (most recent call last): > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 156, in test_http_listener_delete > 57: ret_val = retry(lambda: self.is_get_request_failing(url_1, > use_ca=False), timeout=10, delay=2) > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_test.py", line 140, > in retry > 57: ret = function() > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 156, in <lambda> > 57: ret_val = retry(lambda: self.is_get_request_failing(url_1, > use_ca=False), timeout=10, delay=2) > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 113, in is_get_request_failing > 57: raise e > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 106, in is_get_request_failing > 57: self.get(url, use_ca=use_ca) > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 57, in get > 57: http_data = urlopen(url) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 222, in urlopen > 57: return opener.open(url, data, timeout) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 525, in open > 57: response = self._open(req, data) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 543, in _open > 57: '_open', req) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 503, in _call_chain > 57: result = func(*args) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 1378, in http_open > 57: return self.do_open(http.client.HTTPConnection, req) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 1353, in do_open > 57: r = h.getresponse() > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 1354, in getresponse > 57: response.begin() > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 306, in begin > 57: version, status, reason = self._read_status() > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 267, in _read_status > 57: line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", > line 589, in readinto > 57: return self._sock.recv_into(b) > 57: ConnectionResetError: [Errno 54] Connection reset by peer > 57: > 57: ====================================================================== > 57: ERROR: test_https_get (system_tests_http.RouterTestHttp) > 57: ---------------------------------------------------------------------- > 57: Traceback (most recent call last): > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 1350, in do_open > 57: encode_chunked=req.has_header('Transfer-encoding')) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 1262, in request > 57: self._send_request(method, url, body, headers, encode_chunked) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 1308, in _send_request > 57: self.endheaders(body, encode_chunked=encode_chunked) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 1257, in endheaders > 57: self._send_output(message_body, encode_chunked=encode_chunked) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 1028, in _send_output > 57: self.send(msg) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 968, in send > 57: self.connect() > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", > line 1432, in connect > 57: server_hostname=server_hostname) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", > line 423, in wrap_socket > 57: session=session > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", > line 870, in _create > 57: self.do_handshake() > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", > line 1139, in do_handshake > 57: self._sslobj.do_handshake() > 57: ConnectionResetError: [Errno 54] Connection reset by peer > 57: > 57: During handling of the above exception, another exception occurred: > 57: > 57: Traceback (most recent call last): > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 331, in test_https_get > 57: ret_val = retry(lambda: > self.is_get_request_failing("https://localhost:%s/system_tests_http.txt" % > r.ports[3], use_get_cert=True), timeout=10, delay=2) > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_test.py", line 140, > in retry > 57: ret = function() > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 331, in <lambda> > 57: ret_val = retry(lambda: > self.is_get_request_failing("https://localhost:%s/system_tests_http.txt" % > r.ports[3], use_get_cert=True), timeout=10, delay=2) > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 113, in is_get_request_failing > 57: raise e > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 104, in is_get_request_failing > 57: self.get_cert(url) > 57: File > "/Users/travis/build/jiridanek/qpid-dispatch/tests/system_tests_http.py", > line 71, in get_cert > 57: return opener.open(url).read().decode('utf-8') > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 525, in open > 57: response = self._open(req, data) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 543, in _open > 57: '_open', req) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 503, in _call_chain > 57: result = func(*args) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 1393, in https_open > 57: context=self._context, check_hostname=self._check_hostname) > 57: File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", > line 1352, in do_open > 57: raise URLError(err) > 57: urllib.error.URLError: <urlopen error [Errno 54] Connection reset by peer> > 57: > 57: ---------------------------------------------------------------------- > 57: Ran 6 tests in 2.303s > 57: > 57: FAILED (errors=2) > 57/69 Test #57: system_tests_http .................................***Failed > 2.63 sec > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org