Skip to content

tests: p2p_invalid_block.py is flakey #6694

@PastaPastaPasta

Description

@PastaPastaPasta

Test p2p_invalid_block.py --v1transport is flakey, both in CI (https://github.com/DashCoreAutoGuix/dash/actions/runs/15073170340/attempts/1), and locally.

$ for f in {0..10}; do python3 test/functional/p2p_invalid_block.py --v1transport; done [±ci-build-images-arm ●]
2025-05-30T21:43:47.038000Z TestFramework (INFO): PRNG seed is: 2372650587980809307
2025-05-30T21:43:47.039000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_6ymqdlaw
2025-05-30T21:43:48.847000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:43:49.867000Z TestFramework (INFO): Mature the block.
2025-05-30T21:43:49.936000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:43:50.960000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:43:51.974000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:43:52.984000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:43:53.492000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:43:54.507000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:43:56.531000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:43:57.542000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_6ymqdlaw on exit
2025-05-30T21:43:57.542000Z TestFramework (INFO): Tests successful
2025-05-30T21:43:57.736000Z TestFramework (INFO): PRNG seed is: 267083084022662756
2025-05-30T21:43:57.737000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_bvu5qud_
2025-05-30T21:43:59.275000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:44:00.287000Z TestFramework (INFO): Mature the block.
2025-05-30T21:44:00.368000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:44:01.387000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:44:02.409000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:44:03.416000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:44:03.926000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:44:04.948000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:44:06.973000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:44:07.982000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_bvu5qud_ on exit
2025-05-30T21:44:07.982000Z TestFramework (INFO): Tests successful
2025-05-30T21:44:08.160000Z TestFramework (INFO): PRNG seed is: 9067383556720823505
2025-05-30T21:44:08.160000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_to_tjx8n
2025-05-30T21:44:09.700000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:44:10.708000Z TestFramework (INFO): Mature the block.
2025-05-30T21:44:10.772000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:44:11.786000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:44:12.810000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:44:14.324000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:44:14.833000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:44:15.855000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:44:16.362000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
File "/Users/pasta/workspace/dash/test/functional/test_framework/test_framework.py", line 162, in main
self.run_test()
File "/Users/pasta/workspace/dash/test/functional/p2p_invalid_block.py", line 142, in run_test
peer.send_blocks_and_test([block], node, force_send=True, success=False, reject_reason='time-too-new')
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 936, in send_blocks_and_test
self.sync_with_ping()
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 744, in sync_with_ping
self.wait_until(test_function, timeout=timeout)
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 625, in wait_until
wait_until_helper(test_function, timeout=timeout, lock=p2p_lock, timeout_factor=self.timeout_factor)
File "/Users/pasta/workspace/dash/test/functional/test_framework/util.py", line 269, in wait_until_helper
if predicate():
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 622, in test_function
assert self.is_connected
AssertionError
2025-05-30T21:44:16.870000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:44:17.875000Z TestFramework (WARNING): Not cleaning up dir /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_to_tjx8n
2025-05-30T21:44:17.875000Z TestFramework (ERROR): Test failed. Test logging available at /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_to_tjx8n/test_framework.log
2025-05-30T21:44:17.875000Z TestFramework (ERROR):
2025-05-30T21:44:17.875000Z TestFramework (ERROR): Hint: Call /Users/pasta/workspace/dash/test/functional/combine_logs.py '/var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_to_tjx8n' to consolidate all logs
2025-05-30T21:44:17.875000Z TestFramework (ERROR):
2025-05-30T21:44:17.875000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2025-05-30T21:44:17.875000Z TestFramework (ERROR): https://github.com/dashpay/dash/issues
2025-05-30T21:44:17.875000Z TestFramework (ERROR):
2025-05-30T21:44:18.225000Z TestFramework (INFO): PRNG seed is: 7508306004349736242
2025-05-30T21:44:18.225000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_0_20dg67
2025-05-30T21:44:19.764000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:44:20.775000Z TestFramework (INFO): Mature the block.
2025-05-30T21:44:20.950000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:44:21.966000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:44:22.978000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:44:23.984000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:44:24.488000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:44:25.502000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:44:26.006000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
File "/Users/pasta/workspace/dash/test/functional/test_framework/test_framework.py", line 162, in main
self.run_test()
File "/Users/pasta/workspace/dash/test/functional/p2p_invalid_block.py", line 142, in run_test
peer.send_blocks_and_test([block], node, force_send=True, success=False, reject_reason='time-too-new')
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 936, in send_blocks_and_test
self.sync_with_ping()
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 744, in sync_with_ping
self.wait_until(test_function, timeout=timeout)
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 625, in wait_until
wait_until_helper(test_function, timeout=timeout, lock=p2p_lock, timeout_factor=self.timeout_factor)
File "/Users/pasta/workspace/dash/test/functional/test_framework/util.py", line 269, in wait_until_helper
if predicate():
File "/Users/pasta/workspace/dash/test/functional/test_framework/p2p.py", line 622, in test_function
assert self.is_connected
AssertionError
2025-05-30T21:44:26.511000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:44:27.520000Z TestFramework (WARNING): Not cleaning up dir /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_0_20dg67
2025-05-30T21:44:27.520000Z TestFramework (ERROR): Test failed. Test logging available at /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_0_20dg67/test_framework.log
2025-05-30T21:44:27.520000Z TestFramework (ERROR):
2025-05-30T21:44:27.520000Z TestFramework (ERROR): Hint: Call /Users/pasta/workspace/dash/test/functional/combine_logs.py '/var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_0_20dg67' to consolidate all logs
2025-05-30T21:44:27.520000Z TestFramework (ERROR):
2025-05-30T21:44:27.521000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2025-05-30T21:44:27.521000Z TestFramework (ERROR): https://github.com/dashpay/dash/issues
2025-05-30T21:44:27.521000Z TestFramework (ERROR):
2025-05-30T21:44:27.677000Z TestFramework (INFO): PRNG seed is: 1839199866754862570
2025-05-30T21:44:27.677000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_v5z34ipx
2025-05-30T21:44:29.216000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:44:30.230000Z TestFramework (INFO): Mature the block.
2025-05-30T21:44:30.287000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:44:31.308000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:44:32.326000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:44:33.334000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:44:33.842000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:44:34.864000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:44:36.890000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:44:37.899000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_v5z34ipx on exit
2025-05-30T21:44:37.899000Z TestFramework (INFO): Tests successful
2025-05-30T21:44:38.083000Z TestFramework (INFO): PRNG seed is: 1040041173710548041
2025-05-30T21:44:38.083000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_6qxrc775
2025-05-30T21:44:39.621000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:44:40.630000Z TestFramework (INFO): Mature the block.
2025-05-30T21:44:40.692000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:44:41.713000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:44:42.734000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:44:43.744000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:44:44.251000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:44:45.280000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:44:47.302000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:44:48.311000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_6qxrc775 on exit
2025-05-30T21:44:48.311000Z TestFramework (INFO): Tests successful
2025-05-30T21:44:48.480000Z TestFramework (INFO): PRNG seed is: 2206015477572728483
2025-05-30T21:44:48.480000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_u66phga4
2025-05-30T21:44:50.014000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:44:51.029000Z TestFramework (INFO): Mature the block.
2025-05-30T21:44:51.092000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:44:52.112000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:44:53.140000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:44:54.151000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:44:54.659000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:44:55.673000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:44:57.695000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:44:58.701000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_u66phga4 on exit
2025-05-30T21:44:58.701000Z TestFramework (INFO): Tests successful
2025-05-30T21:44:58.879000Z TestFramework (INFO): PRNG seed is: 7283349902429453649
2025-05-30T21:44:58.880000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_6owupi8c
2025-05-30T21:45:00.419000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:45:01.427000Z TestFramework (INFO): Mature the block.
2025-05-30T21:45:01.491000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:45:02.514000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:45:03.530000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:45:04.535000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:45:05.042000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:45:06.061000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:45:08.097000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:45:09.117000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_6owupi8c on exit
2025-05-30T21:45:09.117000Z TestFramework (INFO): Tests successful
2025-05-30T21:45:09.290000Z TestFramework (INFO): PRNG seed is: 3186764543305130497
2025-05-30T21:45:09.290000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_b7sy6_xb
2025-05-30T21:45:10.822000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:45:11.835000Z TestFramework (INFO): Mature the block.
2025-05-30T21:45:11.915000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:45:12.932000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:45:14.457000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:45:15.469000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:45:15.984000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:45:17.008000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:45:19.085000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:45:20.096000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_b7sy6_xb on exit
2025-05-30T21:45:20.096000Z TestFramework (INFO): Tests successful
2025-05-30T21:45:20.267000Z TestFramework (INFO): PRNG seed is: 8941897546519276112
2025-05-30T21:45:20.267000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_o4p2bz7z
2025-05-30T21:45:21.817000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:45:22.833000Z TestFramework (INFO): Mature the block.
2025-05-30T21:45:22.902000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:45:23.928000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:45:24.952000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:45:26.468000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:45:26.975000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:45:27.990000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:45:30.016000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:45:31.026000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_o4p2bz7z on exit
2025-05-30T21:45:31.026000Z TestFramework (INFO): Tests successful
2025-05-30T21:45:31.208000Z TestFramework (INFO): PRNG seed is: 5063145598271037016
2025-05-30T21:45:31.209000Z TestFramework (INFO): Initializing test directory /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_hm7cl795
2025-05-30T21:45:32.748000Z TestFramework (INFO): Create a new block with an anyone-can-spend coinbase
2025-05-30T21:45:33.761000Z TestFramework (INFO): Mature the block.
2025-05-30T21:45:33.841000Z TestFramework (INFO): Test merkle root malleability.
2025-05-30T21:45:34.862000Z TestFramework (INFO): Test duplicate input block.
2025-05-30T21:45:35.886000Z TestFramework (INFO): Test very broken block.
2025-05-30T21:45:37.399000Z TestFramework (INFO): Test accepting original block after rejecting its mutated version.
2025-05-30T21:45:37.905000Z TestFramework (INFO): Test inflation by duplicating input
2025-05-30T21:45:38.920000Z TestFramework (INFO): Test accepting identical block after rejecting it due to a future timestamp.
2025-05-30T21:45:40.940000Z TestFramework (INFO): Stopping nodes
2025-05-30T21:45:41.950000Z TestFramework (INFO): Cleaning up /var/folders/v7/2_zpfwr90vq35ptbd18d6r1w0000gn/T/dash_func_test_hm7cl795 on exit
2025-05-30T21:45:41.951000Z TestFramework (INFO): Tests successful

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions