Page MenuHomePhabricator

[Chronik] Add failover.rs to bitcoinsuite-chronik-client/srcø
DraftPublic

Authored by hazzarust on Jun 9 2025, 11:09.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Summary

draft

Test Plan

Please set BUILD_DIR env to export BUILD_DIR="/path/to/build_dir
UNIX: ./contrib/teamcity/build-configurations.py build-bitcoinsuite-chronik-client

Event Timeline

Owners added a reviewer: Restricted Owners Package.Jun 9 2025, 11:09

Tail of the build log:

2025-06-09T11:17:38.687000Z TestFramework (INFO): Step 3: Mine a block with these txs
2025-06-09T11:17:38.691000Z TestFramework (INFO): Step 4: Finalize the block containing these txs with Avalanche
2025-06-09T11:17:40.742000Z TestFramework (INFO): Step 5: Park the block containing those txs
2025-06-09T11:17:40.747000Z TestFramework (INFO): Step 8: Unpark the block containing those txs
2025-06-09T11:17:40.750000Z TestFramework (INFO): Step 9: Manually invalidate the block containing those txs
2025-06-09T11:17:40.853000Z TestFramework (INFO): Step 10: Reconsider the block containing those txs
2025-06-09T11:17:40.864000Z TestFramework (INFO): Step 11: Broadcast a tx with mixed outputs
2025-06-09T11:17:40.872000Z TestFramework (INFO): Step 12: Mine another block
2025-06-09T11:17:40.876000Z TestFramework (INFO): Step 13: Avalanche rejects the block
2025-06-09T11:17:41.159000Z TestFramework (INFO): Step 14: Avalanche invalidates the block
2025-06-09T11:17:43.240000Z TestFramework (INFO): Step 15: Mine another block
2025-06-09T11:17:43.245000Z TestFramework (ERROR): Unexpected exception caught during testing
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 152, in main
    self._run_test_internal()
  File "/work/test/functional/setup_scripts/setup_framework.py", line 51, in _run_test_internal
    cmds = receive_ipc_messages(timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work/test/functional/setup_scripts/ipc.py", line 67, in receive_ipc_messages
    if messages[-1].endswith(b"\n"):
       ~~~~~~~~^^^^
IndexError: list index out of range
2025-06-09T11:17:43.296000Z TestFramework (INFO): Stopping nodes
2025-06-09T11:17:43.397000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-bitcoinsuite-chronik-client/test/tmp/test_runner_₿₵_🏃_20250609_111727_31039/setup_scripts/chronik-client_websocket_0
2025-06-09T11:17:43.397000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-bitcoinsuite-chronik-client/test/tmp/test_runner_₿₵_🏃_20250609_111727_31039/setup_scripts/chronik-client_websocket_0/test_framework.log
2025-06-09T11:17:43.397000Z TestFramework (ERROR): 
2025-06-09T11:17:43.397000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-bitcoinsuite-chronik-client/test/tmp/test_runner_₿₵_🏃_20250609_111727_31039/setup_scripts/chronik-client_websocket_0' to consolidate all logs
2025-06-09T11:17:43.398000Z TestFramework (ERROR): 
2025-06-09T11:17:43.398000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2025-06-09T11:17:43.398000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues
2025-06-09T11:17:43.398000Z TestFramework (ERROR): 
Running Unit Tests for Test Framework Modules
setup_scripts/chronik-client_websocket.py started
setup_scripts/chronik-client_websocket.py failed, Duration: 16 s

stdout:

stderr:


TEST                                      | STATUS    | DURATION

setup_scripts/chronik-client_websocket.py | ✖ Failed  | 16 s

ALL                                       | ✖ Failed  | 16 s (accumulated) 
Runtime: 16 s



thread 'websocket' panicked at /work/modules/bitcoinsuite-chronik-client/src/test_runner.rs:82:9:
Test chronik-client_websocket failed!


failures:
    websocket

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.31s

error: test failed, to rerun pass `-p bitcoinsuite-chronik-client --test websocket`
Build build-bitcoinsuite-chronik-client failed with exit code 101

Tail of the build log:

2025-06-09T11:18:43.229000Z TestFramework (INFO): Step 3: Mine a block with these txs
2025-06-09T11:18:43.233000Z TestFramework (INFO): Step 4: Finalize the block containing these txs with Avalanche
2025-06-09T11:18:45.568000Z TestFramework (INFO): Step 5: Park the block containing those txs
2025-06-09T11:18:45.583000Z TestFramework (INFO): Step 8: Unpark the block containing those txs
2025-06-09T11:18:45.592000Z TestFramework (INFO): Step 9: Manually invalidate the block containing those txs
2025-06-09T11:18:45.595000Z TestFramework (INFO): Step 10: Reconsider the block containing those txs
2025-06-09T11:18:45.599000Z TestFramework (INFO): Step 11: Broadcast a tx with mixed outputs
2025-06-09T11:18:45.607000Z TestFramework (INFO): Step 12: Mine another block
2025-06-09T11:18:45.611000Z TestFramework (INFO): Step 13: Avalanche rejects the block
2025-06-09T11:18:45.908000Z TestFramework (INFO): Step 14: Avalanche invalidates the block
2025-06-09T11:18:48.051000Z TestFramework (INFO): Step 15: Mine another block
2025-06-09T11:18:48.055000Z TestFramework (ERROR): Unexpected exception caught during testing
Traceback (most recent call last):
  File "/work/test/functional/setup_scripts/../test_framework/test_framework.py", line 152, in main
    self._run_test_internal()
  File "/work/test/functional/setup_scripts/setup_framework.py", line 51, in _run_test_internal
    cmds = receive_ipc_messages(timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/work/test/functional/setup_scripts/ipc.py", line 67, in receive_ipc_messages
    if messages[-1].endswith(b"\n"):
       ~~~~~~~~^^^^
IndexError: list index out of range
2025-06-09T11:18:48.107000Z TestFramework (INFO): Stopping nodes
2025-06-09T11:18:48.208000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-bitcoinsuite-chronik-client/test/tmp/test_runner_₿₵_🏃_20250609_111832_29749/setup_scripts/chronik-client_websocket_0
2025-06-09T11:18:48.209000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-bitcoinsuite-chronik-client/test/tmp/test_runner_₿₵_🏃_20250609_111832_29749/setup_scripts/chronik-client_websocket_0/test_framework.log
2025-06-09T11:18:48.209000Z TestFramework (ERROR): 
2025-06-09T11:18:48.209000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-bitcoinsuite-chronik-client/test/tmp/test_runner_₿₵_🏃_20250609_111832_29749/setup_scripts/chronik-client_websocket_0' to consolidate all logs
2025-06-09T11:18:48.209000Z TestFramework (ERROR): 
2025-06-09T11:18:48.210000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
2025-06-09T11:18:48.210000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues
2025-06-09T11:18:48.210000Z TestFramework (ERROR): 
Running Unit Tests for Test Framework Modules
setup_scripts/chronik-client_websocket.py started
setup_scripts/chronik-client_websocket.py failed, Duration: 16 s

stdout:

stderr:


TEST                                      | STATUS    | DURATION

setup_scripts/chronik-client_websocket.py | ✖ Failed  | 16 s

ALL                                       | ✖ Failed  | 16 s (accumulated) 
Runtime: 16 s



thread 'websocket' panicked at /work/modules/bitcoinsuite-chronik-client/src/test_runner.rs:82:9:
Test chronik-client_websocket failed!


failures:
    websocket

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.04s

error: test failed, to rerun pass `-p bitcoinsuite-chronik-client --test websocket`
Build build-bitcoinsuite-chronik-client failed with exit code 101