HomePhabricator

[qa] Increase wallet-dump RPC timeout

Description

[qa] Increase wallet-dump RPC timeout

Increase wallet-dump RPC timeout from 30 seconds to 1 minute. This avoids a
timeout error that seemed to happen regularly (around 50% of builds) on a
particular jenkins server during the first getnewaddress RPC call made by the
test.

The failing stack trace looked like:

Unexpected exception caught during testing: timeout('timed out',)

File ".../bitcoin/qa/rpc-tests/test_framework/test_framework.py", line 146, in main
  self.run_test()
File ".../bitcoin/qa/rpc-tests/wallet-dump.py", line 73, in run_test
  addr = self.nodes[0].getnewaddress()
File ".../bitcoin/qa/rpc-tests/test_framework/coverage.py", line 49, in __call__
  return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
File ".../bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 145, in __call__
  response = self._request('POST', self.__url.path, postdata.encode('utf-8'))
File ".../bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 121, in _request
  return self._get_response()
File ".../bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 160, in _get_response
  http_response = self.__conn.getresponse()
File "/usr/lib/python3.4/http/client.py", line 1171, in getresponse
  response.begin()
File "/usr/lib/python3.4/http/client.py", line 351, in begin
  version, status, reason = self._read_status()
File "/usr/lib/python3.4/http/client.py", line 313, in _read_status
  line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.4/socket.py", line 374, in readinto
  return self._sock.recv_into(b)

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Nov 2 2016, 13:46
deadalnixPushed on May 14 2017, 22:04
Parents
rABC273bde37d867: Merge #9043: [qt] Return useful error message on ATMP failure
Branches
Unknown
Tags
Unknown

Event Timeline

Russell Yanofsky <russ@yanofsky.org> committed rABC8463aaa63c5a: [qa] Increase wallet-dump RPC timeout (authored by Russell Yanofsky <russ@yanofsky.org>).Nov 7 2016, 17:04