Skip to content

Update Version number for v1.14.0-rc0

Sign in for the full log view
GitHub Actions / Indy Plenum plenum Test Report for slice 1/8 failed Jun 10, 2024 in 0s. View latest attempt.

260 tests run, 13 skipped, 1 failed.

Annotations

Check failure on line 106 in build/lib/plenum/test/validator_info/test_validator_info.py

See this annotation in the file changed.

@github-actions github-actions / Indy Plenum plenum Test Report for slice 1/8

test_validator_info.test_validator_info_file_pool_fields_valid

assert 5 == 4
  +5
  -4
Raw output
looper = <stp_core.loop.looper.Looper object at 0x7f7e1ad797b0>
info = {'Hardware': {'HDD_all': '54197 Mbs', 'RAM_all_free': '12365 Mbs', 'RAM_used_by_node': '968 Mbs'}, 'Node_info': {'BLS_...Beta', 1), ('Delta', None), ('Epsilon', None), ('Gamma', None)], 'Reachable_nodes_count': 5, ...}, 'Protocol': {}, ...}
txnPoolNodesLooper = <stp_core.loop.looper.Looper object at 0x7f7e1ad797b0>
txnPoolNodeSet = [Alpha, Beta, Gamma, Delta, Epsilon], node = Alpha

    def test_validator_info_file_pool_fields_valid(looper, info, txnPoolNodesLooper, txnPoolNodeSet, node):
        assert info['Pool_info']['Reachable_nodes_count'] == nodeCount
        assert info['Pool_info']['Reachable_nodes'] == [("Alpha", 0), ("Beta", 1), ("Delta", None), ("Epsilon", None), ("Gamma", None)]
        assert info['Pool_info']['Unreachable_nodes_count'] == 0
        assert info['Pool_info']['Unreachable_nodes'] == []
        assert info['Pool_info']['Total_nodes_count'] == nodeCount
    
        others, disconnected = txnPoolNodeSet[:-1], txnPoolNodeSet[-1]
        disconnect_node_and_ensure_disconnected(txnPoolNodesLooper, txnPoolNodeSet, disconnected)
        latest_info = node._info_tool.info
    
>       assert latest_info['Pool_info']['Reachable_nodes_count'] == nodeCount - 1
E       assert 5 == 4
E         +5
E         -4

disconnected = Epsilon
info       = {'Hardware': {'HDD_all': '54197 Mbs',
              'RAM_all_free': '12365 Mbs',
              'RAM_used_by_node': '968 Mbs'},
 'Node_info': {'BLS_key': 'p2LdkcuVLnqidf9PAM1josFLfSTSTYuGqaSBx2Dq72Z5Kt2axQicYyqkQ6ZfcwzHpmLevmcXVwD4EC32wTbusvYxb5D1MJBfu67SQqxRTcK7pRBQXYiaPrzqUo9odhAgrwNPSbHcBJM6s5cNUPvjZZDuSJvhjC7tKFV9FGqyX4Zs4u',
               'Catchup_status': {'Last_txn_3PC_keys': {0: {'Beta': (None,
                                                                     None),
                                                            'Delta': (None,
                                                                      None),
                                                            'Gamma': (None,
                                                                      None)},
                                                        1: {'Beta': (None,
                                                                     None),
                                                            'Delta': (None,
                                                                      None),
                                                            'Epsilon': (None,
                                                                        None)},
                                                        2: {'Beta': (None,
                                                                     None),
                                                            'Delta': (None,
                                                                      None),
                                                            'Gamma': (None,
                                                                      None)},
                                                        3: {'Beta': (None,
                                                                     None),
                                                            'Epsilon': (None,
                                                                        None),
                                                            'Gamma': (None,
                                                                      None)}},
                                  'Ledger_statuses': {0: 'synced',
                                                      1: 'synced',
                                                      2: 'synced',
                                                      3: 'synced'},
                                  'Number_txns_in_catchup': {0: 0,
                                                             1: 0,
                                                             2: 0,
                                                             3: 0},
                                  'Received_LedgerStatus': '',
                                  'Waiting_consistency_proof_msgs': {0: None,
                                                                     1: None,
                                                                     2: None,
                                                                     3: None}},
               'Client_ip': '127.0.0.1',
               'Client_port': 6370,
               'Client_protocol': 'tcp',
               'Committed_ledger_root_hashes': {0: "b'4YwNu6z3oRwav4HiiLfvkMi81qRpvD1rjzrUmRaNWC4V'",
                                                1: "b'5EEyNZ7nqGnAQ6NsLQxFdt5SsCmQhtAFAxDx2z9A7XTb'",
                                                2: "b'GKot5hBsd81kMupNCXHaqbhv3huEbxAFMLnpcX2hniwn'",
                                                3: "b'CZc9kXRs2dU5b2ueac3BHt4AYUwYLZ8GbqH479xQ5sSx'"},
               'Committed_state_root_hashes': {0: "b'4VnNkVA9SPfxFgxTVtpBdPTYJjcJsUFkKTEgcTmcpVDE'",
                                               1: "b'8ncNAdUVkKNnNW7qd9tByNqTvFbad1q6dk8uQVbWeF5Y'",
                                               2: "b'DfNLmH4DAHTKv63YPFJzuRdeEtVwF5RtVnvKYHd8iLEA'"},
               'Count_of_replicas': 2,
               'Freshness_status': {0: {'Has_write_consensus': True,
                                        'Last_updated_time': '2024-06-10 '
                                                             '18:53:50+00:00'},
                                    1: {'Has_write_consensus': True,
                                        'Last_updated_time': '2024-06-10 '
                                                             '18:53:55+00:00'},
                                    2: {'Has_write_consensus': True,
                                        'Last_updated_time': '2024-06-10 '
                                                             '18:53:50+00:00'}},
               'Metrics': {'Delta': 0.1,
                           'Lambda': 240,
                           'Omega': 20,
                           'average-per-second': {'read-transactions': 0.14116425141503203,
                                                  'write-transactions': 0.14116421340664634},
                           'avg backup throughput': None,
                           'client avg request latencies': {0: None, 1: None},
                           'instances started': {0: 665.438667633,
                                                 1: 665.438683683},
                           'master throughput': None,
                           'master throughput ratio': None,
                           'max master request latencies': 0,
                           'ordered request counts': {0: 1, 1: 1},
                           'ordered request durations': {0: 0.12598009499993168,
                                                         1: 0.05602614999997968},
                           'throughput': {0: None, 1: None},
                           'total requests': 1,
                           'transaction-count': {'audit': 1,
                                                 'config': 0,
                                                 'ledger': 14,
                                                 'pool': 5},
                           'uptime': 7},
               'Mode': 'participating',
               'Name': 'Alpha',
               'Node_ip': '127.0.0.1',
               'Node_port': 6369,
               'Node_protocol': 'tcp',
               'Replicas_status': {'Alpha:0': {'Last_ordered_3PC': (0, 1),
                                               'Primary': 'Alpha:0',
                                               'Stashed_txns': {'Stashed_PrePrepare': 0,
                                                                'Stashed_checkpoints': 0},
                                               'Watermarks': '0:300'},
                                   'Alpha:1': {'Last_ordered_3PC': (0, 1),
                                               'Primary': 'Beta:1',
                                               'Stashed_txns': {'Stashed_PrePrepare': 0,
                                                                'Stashed_checkpoints': 0},
                                               'Watermarks': '0:9223372036854775807'}},
               'Requests_timeouts': {'Ordering_phase_req_timeouts': 0,
                                     'Propagates_phase_req_timeouts': 0},
               'Uncommitted_ledger_root_hashes': {},
               'Uncommitted_ledger_txns': {0: {'Count': 0},
                                           1: {'Count': 0},
                                           2: {'Count': 0},
                                           3: {'Count': 0}},
               'Uncommitted_state_root_hashes': {0: "b'4VnNkVA9SPfxFgxTVtpBdPTYJjcJsUFkKTEgcTmcpVDE'",
                                                 1: "b'8ncNAdUVkKNnNW7qd9tByNqTvFbad1q6dk8uQVbWeF5Y'",
                                                 2: "b'DfNLmH4DAHTKv63YPFJzuRdeEtVwF5RtVnvKYHd8iLEA'"},
               'View_change_status': {'IC_queue': {},
                                      'Last_complete_view_no': 0,
                                      'Last_view_change_started_at': '1970-01-01 '
                                                                     '00:00:00',
                                      'VCDone_queue': {},
                                      'VC_in_progress': False,
                                      'View_No': 0},
               'did': 'JpYerf4CssDrH76z7jyQPJLnZ1vwYgvKbvcp16AB5RQ',
               'verkey': '3Syux6kKmqgZ4shG4dPDSAchKQwdHcfQbrpZcoxXz4fsoZftBrTypWP'},
 'Pool_info': {'Blacklisted_nodes': [],
               'Quorums': "{'n': 5, 'f': 1, 'weak': Quorum(2), 'strong': "
                          "Quorum(4), 'propagate': Quorum(2), 'prepare': "
                          "Quorum(3), 'commit': Quorum(4), 'reply': Quorum(2), "
                          "'view_change': Quorum(4), 'election': Quorum(4), "
                          "'view_change_ack': Quorum(3), 'view_change_done': "
                          "Quorum(4), 'same_consistency_proof': Quorum(2), "
                          "'consistency_proof': Quorum(2), 'ledger_status': "
                          "Quorum(3), 'ledger_status_last_3PC': Quorum(2), "
                          "'checkpoint': Quorum(3), 'timestamp': Quorum(2), "
                          "'bls_signatures': Quorum(4), 'observer_data': "
                          "Quorum(2), 'backup_instance_faulty': Quorum(2)}",
               'Reachable_nodes': [('Alpha', 0),
                                   ('Beta', 1),
                                   ('Delta', None),
                                   ('Epsilon', None),
                                   ('Gamma', None)],
               'Reachable_nodes_count': 5,
               'Read_only': None,
               'Suspicious_nodes': '',
               'Total_nodes_count': 5,
               'Unreachable_nodes': [],
               'Unreachable_nodes_count': 0,
               'f_value': 1},
 'Protocol': {},
 'Software': {'Indy_packages': ['ii  indy-plenum                 '
                                '1.14.0~rc0                              '
                                'amd64        Plenum Byzantine Fault Tolerant '
                                'Protocol',
                                'ii  libindy                     '
                                '1.16.0~1655-bionic                      '
                                'amd64        This is the official SDK for '
                                'Hyperledger Indy',
                                ''],
              'Installed_packages': ['indy-plenum 1.14.0rc0',
                                     'indy-plenum 1.14.0rc0',
                                     'Cython 0.29.36',
                                     'pytest-forked 1.3.0',
                                     'execnet 2.1.1',
                                     'pytest 6.2.5',
                                     'indy-plenum 1.14.0rc0',
                                     'python-rocksdb 0.7.0',
                                     'msgpack-python 0.5.6',
                                     'toml 0.10.2',
                                     'pytest-asyncio 0.14.0',
                                     'pytest-xdist 2.2.1',
                                     'sha3 0.2.1',
                                     'attrs 20.3.0',
                                     'py 1.11.0',
                                     'pyzmq 22.3.0',
                                     'cytoolz 0.12.3',
                                     'python3-indy 1.16.0.post236',
                                     'psutil 5.9.8',
                                     'wheel 0.37.1',
                                     'setuptools 59.6.0',
                                     'pip 22.0.2',
                                     'iniconfig 2.0.0',
                                     'rocksdb 0.8.0rc3',
                                     'eth-hash 0.3.3',
                                     'leveldb 0.201',
                                     'ujson 1.33',
                                     'eth-utils 1.10.0',
                                     'libnacl 1.6.1',
                                     'base58 2.1.1',
                                     'rlp 2.0.0',
                                     'wcwidth 0.2.13',
                                     'tomli 2.0.1',
                                     'pysha3 1.0.2',
                                     'packaging 24.0',
                                     'zipp 3.18.1',
                                     'Pympler 0.8',
                                     'ioflo 2.0.3',
                                     'exceptiongroup 1.2.1',
                                     'msgpack 1.0.3',
                                     'python-ursa 0.1.1',
                                     'pluggy 1.5.0',
                                     'portalocker 2.7.0',
                                     'importlib-metadata 3.10.1',
                                     'python-dateutil 2.9.0.post0',
                                     'jsonpickle 3.0.4',
                                     'eth-typing 2.3.0',
                                     'semver 2.13.0',
                                     'six 1.16.0',
                                     'prompt-toolkit 3.0.18',
                                     'sortedcontainers 2.1.0',
                                     'orderedset 2.0.3',
                                     'pytest 8.1.2',
                                     'toolz 0.12.1'],
              'OS_version': 'Linux-6.5.0-1021-azure-x86_64-with-glibc2.35'},
 'response-version': '0.0.1',
 'timestamp': 1718045637}
latest_info = {'Hardware': {'HDD_all': '54193 Mbs',
              'RAM_all_free': '12365 Mbs',
              'RAM_used_by_node': '968 Mbs'},
 'Node_info': {'BLS_key': 'p2LdkcuVLnqidf9PAM1josFLfSTSTYuGqaSBx2Dq72Z5Kt2axQicYyqkQ6ZfcwzHpmLevmcXVwD4EC32wTbusvYxb5D1MJBfu67SQqxRTcK7pRBQXYiaPrzqUo9odhAgrwNPSbHcBJM6s5cNUPvjZZDuSJvhjC7tKFV9FGqyX4Zs4u',
               'Catchup_status': {'Last_txn_3PC_keys': {0: {'Beta': (None,
                                                                     None),
                                                            'Delta': (None,
                                                                      None),
                                                            'Gamma': (None,
                                                                      None)},
                                                        1: {'Beta': (None,
                                                                     None),
                                                            'Delta': (None,
                                                                      None),
                                                            'Epsilon': (None,
                                                                        None)},
                                                        2: {'Beta': (None,
                                                                     None),
                                                            'Delta': (None,
                                                                      None),
                                                            'Gamma': (None,
                                                                      None)},
                                                        3: {'Beta': (None,
                                                                     None),
                                                            'Epsilon': (None,
                                                                        None),
                                                            'Gamma': (None,
                                                                      None)}},
                                  'Ledger_statuses': {0: 'synced',
                                                      1: 'synced',
                                                      2: 'synced',
                                                      3: 'synced'},
                                  'Number_txns_in_catchup': {0: 0,
                                                             1: 0,
                                                             2: 0,
                                                             3: 0},
                                  'Received_LedgerStatus': '',
                                  'Waiting_consistency_proof_msgs': {0: None,
                                                                     1: None,
                                                                     2: None,
                                                                     3: None}},
               'Client_ip': '127.0.0.1',
               'Client_port': 6370,
               'Client_protocol': 'tcp',
               'Committed_ledger_root_hashes': {0: "b'4YwNu6z3oRwav4HiiLfvkMi81qRpvD1rjzrUmRaNWC4V'",
                                                1: "b'5EEyNZ7nqGnAQ6NsLQxFdt5SsCmQhtAFAxDx2z9A7XTb'",
                                                2: "b'GKot5hBsd81kMupNCXHaqbhv3huEbxAFMLnpcX2hniwn'",
                                                3: "b'CZc9kXRs2dU5b2ueac3BHt4AYUwYLZ8GbqH479xQ5sSx'"},
               'Committed_state_root_hashes': {0: "b'4VnNkVA9SPfxFgxTVtpBdPTYJjcJsUFkKTEgcTmcpVDE'",
                                               1: "b'8ncNAdUVkKNnNW7qd9tByNqTvFbad1q6dk8uQVbWeF5Y'",
                                               2: "b'DfNLmH4DAHTKv63YPFJzuRdeEtVwF5RtVnvKYHd8iLEA'"},
               'Count_of_replicas': 2,
               'Freshness_status': {0: {'Has_write_consensus': True,
                                        'Last_updated_time': '2024-06-10 '
                                                             '18:53:50+00:00'},
                                    1: {'Has_write_consensus': True,
                                        'Last_updated_time': '2024-06-10 '
                                                             '18:53:55+00:00'},
                                    2: {'Has_write_consensus': True,
                                        'Last_updated_time': '2024-06-10 '
                                                             '18:53:50+00:00'}},
               'Metrics': {'Delta': 0.1,
                           'Lambda': 240,
                           'Omega': 20,
                           'average-per-second': {'read-transactions': 0.14103773518288082,
                                                  'write-transactions': 0.1410376972425934},
                           'avg backup throughput': None,
                           'client avg request latencies': {0: None, 1: None},
                           'instances started': {0: 665.438667633,
                                                 1: 665.438683683},
                           'master throughput': None,
                           'master throughput ratio': None,
                           'max master request latencies': 0,
                           'ordered request counts': {0: 1, 1: 1},
                           'ordered request durations': {0: 0.12598009499993168,
                                                         1: 0.05602614999997968},
                           'throughput': {0: None, 1: None},
                           'total requests': 1,
                           'transaction-count': {'audit': 1,
                                                 'config': 0,
                                                 'ledger': 14,
                                                 'pool': 5},
                           'uptime': 7},
               'Mode': 'participating',
               'Name': 'Alpha',
               'Node_ip': '127.0.0.1',
               'Node_port': 6369,
               'Node_protocol': 'tcp',
               'Replicas_status': {'Alpha:0': {'Last_ordered_3PC': (0, 1),
                                               'Primary': 'Alpha:0',
                                               'Stashed_txns': {'Stashed_PrePrepare': 0,
                                                                'Stashed_checkpoints': 0},
                                               'Watermarks': '0:300'},
                                   'Alpha:1': {'Last_ordered_3PC': (0, 1),
                                               'Primary': 'Beta:1',
                                               'Stashed_txns': {'Stashed_PrePrepare': 0,
                                                                'Stashed_checkpoints': 0},
                                               'Watermarks': '0:9223372036854775807'}},
               'Requests_timeouts': {'Ordering_phase_req_timeouts': 0,
                                     'Propagates_phase_req_timeouts': 0},
               'Uncommitted_ledger_root_hashes': {},
               'Uncommitted_ledger_txns': {0: {'Count': 0},
                                           1: {'Count': 0},
                                           2: {'Count': 0},
                                           3: {'Count': 0}},
               'Uncommitted_state_root_hashes': {0: "b'4VnNkVA9SPfxFgxTVtpBdPTYJjcJsUFkKTEgcTmcpVDE'",
                                                 1: "b'8ncNAdUVkKNnNW7qd9tByNqTvFbad1q6dk8uQVbWeF5Y'",
                                                 2: "b'DfNLmH4DAHTKv63YPFJzuRdeEtVwF5RtVnvKYHd8iLEA'"},
               'View_change_status': {'IC_queue': {},
                                      'Last_complete_view_no': 0,
                                      'Last_view_change_started_at': '1970-01-01 '
                                                                     '00:00:00',
                                      'VCDone_queue': {},
                                      'VC_in_progress': False,
                                      'View_No': 0},
               'did': 'JpYerf4CssDrH76z7jyQPJLnZ1vwYgvKbvcp16AB5RQ',
               'verkey': '3Syux6kKmqgZ4shG4dPDSAchKQwdHcfQbrpZcoxXz4fsoZftBrTypWP'},
 'Pool_info': {'Blacklisted_nodes': [],
               'Quorums': "{'n': 5, 'f': 1, 'weak': Quorum(2), 'strong': "
                          "Quorum(4), 'propagate': Quorum(2), 'prepare': "
                          "Quorum(3), 'commit': Quorum(4), 'reply': Quorum(2), "
                          "'view_change': Quorum(4), 'election': Quorum(4), "
                          "'view_change_ack': Quorum(3), 'view_change_done': "
                          "Quorum(4), 'same_consistency_proof': Quorum(2), "
                          "'consistency_proof': Quorum(2), 'ledger_status': "
                          "Quorum(3), 'ledger_status_last_3PC': Quorum(2), "
                          "'checkpoint': Quorum(3), 'timestamp': Quorum(2), "
                          "'bls_signatures': Quorum(4), 'observer_data': "
                          "Quorum(2), 'backup_instance_faulty': Quorum(2)}",
               'Reachable_nodes': [('Alpha', 0),
                                   ('Beta', 1),
                                   ('Delta', None),
                                   ('Epsilon', None),
                                   ('Gamma', None)],
               'Reachable_nodes_count': 5,
               'Read_only': None,
               'Suspicious_nodes': '',
               'Total_nodes_count': 5,
               'Unreachable_nodes': [],
               'Unreachable_nodes_count': 0,
               'f_value': 1},
 'Protocol': {},
 'Software': {'Indy_packages': ['ii  indy-plenum                 '
                                '1.14.0~rc0                              '
                                'amd64        Plenum Byzantine Fault Tolerant '
                                'Protocol',
                                'ii  libindy                     '
                                '1.16.0~1655-bionic                      '
                                'amd64        This is the official SDK for '
                                'Hyperledger Indy',
                                ''],
              'Installed_packages': ['indy-plenum 1.14.0rc0',
                                     'indy-plenum 1.14.0rc0',
                                     'Cython 0.29.36',
                                     'pytest-forked 1.3.0',
                                     'execnet 2.1.1',
                                     'pytest 6.2.5',
                                     'indy-plenum 1.14.0rc0',
                                     'python-rocksdb 0.7.0',
                                     'msgpack-python 0.5.6',
                                     'toml 0.10.2',
                                     'pytest-asyncio 0.14.0',
                                     'pytest-xdist 2.2.1',
                                     'sha3 0.2.1',
                                     'attrs 20.3.0',
                                     'py 1.11.0',
                                     'pyzmq 22.3.0',
                                     'cytoolz 0.12.3',
                                     'python3-indy 1.16.0.post236',
                                     'psutil 5.9.8',
                                     'wheel 0.37.1',
                                     'setuptools 59.6.0',
                                     'pip 22.0.2',
                                     'iniconfig 2.0.0',
                                     'rocksdb 0.8.0rc3',
                                     'eth-hash 0.3.3',
                                     'leveldb 0.201',
                                     'ujson 1.33',
                                     'eth-utils 1.10.0',
                                     'libnacl 1.6.1',
                                     'base58 2.1.1',
                                     'rlp 2.0.0',
                                     'wcwidth 0.2.13',
                                     'tomli 2.0.1',
                                     'pysha3 1.0.2',
                                     'packaging 24.0',
                                     'zipp 3.18.1',
                                     'Pympler 0.8',
                                     'ioflo 2.0.3',
                                     'exceptiongroup 1.2.1',
                                     'msgpack 1.0.3',
                                     'python-ursa 0.1.1',
                                     'pluggy 1.5.0',
                                     'portalocker 2.7.0',
                                     'importlib-metadata 3.10.1',
                                     'python-dateutil 2.9.0.post0',
                                     'jsonpickle 3.0.4',
                                     'eth-typing 2.3.0',
                                     'semver 2.13.0',
                                     'six 1.16.0',
                                     'prompt-toolkit 3.0.18',
                                     'sortedcontainers 2.1.0',
                                     'orderedset 2.0.3',
                                     'pytest 8.1.2',
                                     'toolz 0.12.1'],
              'OS_version': 'Linux-6.5.0-1021-azure-x86_64-with-glibc2.35'},
 'response-version': '0.0.1',
 'timestamp': 1718045637}
looper     = <stp_core.loop.looper.Looper object at 0x7f7e1ad797b0>
node       = Alpha
others     = [Alpha, Beta, Gamma, Delta]
txnPoolNodeSet = [Alpha, Beta, Gamma, Delta, Epsilon]
txnPoolNodesLooper = <stp_core.loop.looper.Looper object at 0x7f7e1ad797b0>

plenum/test/validator_info/test_validator_info.py:106: AssertionError