This PR aims to reduce the frequency of functional test failures on Windows like this one:
0
12023-09-01T01:05:01.850000Z TestFramework (ERROR): Assertion failed
2Traceback (most recent call last):
3 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\test_framework.py", line 552, in start_nodes
4 node.wait_for_rpc_connection()
5 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\test_node.py", line 296, in wait_for_rpc_connection
6 self._raise_assertion_error("Unable to connect to bitcoind after {}s".format(self.rpc_timeout))
7 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\test_node.py", line 177, in _raise_assertion_error
8 raise AssertionError(self._node_msg(msg))
9AssertionError: [node 1] Unable to connect to bitcoind after 2400s
This code has had zero failures in my personal repository in more than 25 runs (and is still counting).
The second commit is a minor improvement to avoid “Cache save failed.” warnings during job re-runs. For example: