Page MenuHomePhabricator

WIP,TESTS: Beginning of proof pool tests.
AbandonedPublic

Authored by tyler-smith on Nov 17 2021, 16:54.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Starts adding tests to check the behavior of polling for Avalanche proofs

Test Plan

test/functional/abc_p2p_avalanche_proof_voting.py

Diff Detail

Event Timeline

Failed tests logs:

====== Bitcoin ABC functional tests: abc_p2p_avalanche_proof_voting.py ======

------- Stdout: -------
2021-11-17T17:07:24.675000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_  _20211117_170240/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:07:34.997000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
'''
2021-11-17T17:07:34.998000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/work/test/functional/test_framework/test_framework.py", line 128, in main
    self.run_test()
  File "/work/test/functional/abc_p2p_avalanche_proof_voting.py", line 135, in run_test
    self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
  File "/work/test/functional/test_framework/test_framework.py", line 633, in wait_until
    timeout_factor=self.options.timeout_factor)
  File "/work/test/functional/test_framework/util.py", line 287, in wait_until_helper
    "Predicate {} not true after {} seconds".format(predicate_source, timeout))
AssertionError: Predicate ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
''' not true after 5.0 seconds
2021-11-17T17:07:35.049000Z TestFramework (INFO): Stopping nodes
2021-11-17T17:07:35.207000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_  _20211117_170240/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:07:35.207000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_  _20211117_170240/abc_p2p_avalanche_proof_voting_176/test_framework.log
2021-11-17T17:07:35.207000Z TestFramework (ERROR): 
2021-11-17T17:07:35.207000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_  _20211117_170240/abc_p2p_avalanche_proof_voting_176' to consolidate all logs
2021-11-17T17:07:35.207000Z TestFramework (ERROR): 
2021-11-17T17:07:35.207000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2021-11-17T17:07:35.207000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues
2021-11-17T17:07:35.207000Z TestFramework (ERROR):

Each failure log is accessible here:
Bitcoin ABC functional tests: abc_p2p_avalanche_proof_voting.py

Failed tests logs:

====== Bitcoin ABC functional tests: abc_p2p_avalanche_proof_voting.py ======

------- Stdout: -------
2021-11-17T17:11:01.217000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_170734/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:11:10.363000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
'''
2021-11-17T17:11:10.363000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/work/test/functional/test_framework/test_framework.py", line 128, in main
    self.run_test()
  File "/work/test/functional/abc_p2p_avalanche_proof_voting.py", line 135, in run_test
    self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
  File "/work/test/functional/test_framework/test_framework.py", line 633, in wait_until
    timeout_factor=self.options.timeout_factor)
  File "/work/test/functional/test_framework/util.py", line 287, in wait_until_helper
    "Predicate {} not true after {} seconds".format(predicate_source, timeout))
AssertionError: Predicate ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
''' not true after 5.0 seconds
2021-11-17T17:11:10.414000Z TestFramework (INFO): Stopping nodes
2021-11-17T17:11:10.772000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_170734/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:11:10.772000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_170734/abc_p2p_avalanche_proof_voting_176/test_framework.log
2021-11-17T17:11:10.772000Z TestFramework (ERROR): 
2021-11-17T17:11:10.772000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_170734/abc_p2p_avalanche_proof_voting_176' to consolidate all logs
2021-11-17T17:11:10.772000Z TestFramework (ERROR): 
2021-11-17T17:11:10.772000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2021-11-17T17:11:10.772000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues
2021-11-17T17:11:10.772000Z TestFramework (ERROR):
====== Bitcoin ABC functional tests with the next upgrade activated: abc_p2p_avalanche_proof_voting.py ======

------- Stdout: -------
2021-11-17T17:14:27.349000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_171110/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:14:35.781000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
'''
2021-11-17T17:14:35.781000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/work/test/functional/test_framework/test_framework.py", line 128, in main
    self.run_test()
  File "/work/test/functional/abc_p2p_avalanche_proof_voting.py", line 135, in run_test
    self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
  File "/work/test/functional/test_framework/test_framework.py", line 633, in wait_until
    timeout_factor=self.options.timeout_factor)
  File "/work/test/functional/test_framework/util.py", line 287, in wait_until_helper
    "Predicate {} not true after {} seconds".format(predicate_source, timeout))
AssertionError: Predicate ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
''' not true after 5.0 seconds
2021-11-17T17:14:35.833000Z TestFramework (INFO): Stopping nodes
2021-11-17T17:14:35.990000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_171110/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:14:35.990000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_171110/abc_p2p_avalanche_proof_voting_176/test_framework.log
2021-11-17T17:14:35.990000Z TestFramework (ERROR): 
2021-11-17T17:14:35.990000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_  _20211117_171110/abc_p2p_avalanche_proof_voting_176' to consolidate all logs
2021-11-17T17:14:35.990000Z TestFramework (ERROR): 
2021-11-17T17:14:35.990000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2021-11-17T17:14:35.990000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues
2021-11-17T17:14:35.990000Z TestFramework (ERROR):

Each failure log is accessible here:
Bitcoin ABC functional tests: abc_p2p_avalanche_proof_voting.py
Bitcoin ABC functional tests with the next upgrade activated: abc_p2p_avalanche_proof_voting.py

Failed tests logs:

====== Bitcoin ABC functional tests: abc_p2p_avalanche_proof_voting.py ======

------- Stdout: -------
2021-11-17T17:19:43.859000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20211117_171800/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:19:52.216000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
'''
2021-11-17T17:19:52.216000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/work/test/functional/test_framework/test_framework.py", line 128, in main
    self.run_test()
  File "/work/test/functional/abc_p2p_avalanche_proof_voting.py", line 135, in run_test
    self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
  File "/work/test/functional/test_framework/test_framework.py", line 633, in wait_until
    timeout_factor=self.options.timeout_factor)
  File "/work/test/functional/test_framework/util.py", line 287, in wait_until_helper
    "Predicate {} not true after {} seconds".format(predicate_source, timeout))
AssertionError: Predicate ''''
        self.wait_until(lambda: can_find_proof_in_poll(proof_a), timeout=5)
''' not true after 5.0 seconds
2021-11-17T17:19:52.267000Z TestFramework (INFO): Stopping nodes
2021-11-17T17:19:52.624000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20211117_171800/abc_p2p_avalanche_proof_voting_176
2021-11-17T17:19:52.625000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20211117_171800/abc_p2p_avalanche_proof_voting_176/test_framework.log
2021-11-17T17:19:52.625000Z TestFramework (ERROR): 
2021-11-17T17:19:52.625000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_  _20211117_171800/abc_p2p_avalanche_proof_voting_176' to consolidate all logs
2021-11-17T17:19:52.625000Z TestFramework (ERROR): 
2021-11-17T17:19:52.625000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2021-11-17T17:19:52.625000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues
2021-11-17T17:19:52.625000Z TestFramework (ERROR):

Each failure log is accessible here:
Bitcoin ABC functional tests: abc_p2p_avalanche_proof_voting.py

This revision was superseded by D10387.