Skip to content

Devnet Partner Chains Tests #48

Devnet Partner Chains Tests

Devnet Partner Chains Tests #48

Triggered via schedule December 8, 2024 04:35
Status Failure
Total duration 7m 51s
Artifacts 1

devnet.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

11 errors
Failed Test: tests/test_rpc.py::TestRpc::test_get_epoch_committee
tests/test_rpc.py::TestRpc::test_get_epoch_committee: The test failed in the call phase - tests/test_rpc.py:80: in test_get_epoch_committee assert ( E TypeError: 'NoneType' object is not subscriptable
Failed Test: tests/test_rpc.py::TestRpc::test_get_registrations
tests/test_rpc.py::TestRpc::test_get_registrations: The test failed in the call phase - tests/test_rpc.py:119: in test_get_registrations mainchain_key = next(iter(api.get_ariadne_parameters(mc_epoch)["candidateRegistrations"])) E StopIteration
Failed Test: tests/test_smoke.py::TestSmoke::test_block_producing
tests/test_smoke.py::TestSmoke::test_block_producing: The test failed in the call phase - tests/test_smoke.py:25: in test_block_producing assert api.get_latest_pc_block_number() > block_number E assert 276701 > 276701 E + where 276701 = <bound method SubstrateApi.get_latest_pc_block_number of <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>>() E + where <bound method SubstrateApi.get_latest_pc_block_number of <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>> = <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>.get_latest_pc_block_number
Failed Test: tests/test_smoke.py::TestSmoke::test_transaction
tests/test_smoke.py::TestSmoke::test_transaction: The test failed in the call phase due to an exception - /usr/local/lib/python3.10/site-packages/websocket/_socket.py:118: in recv bytes_ = _recv() /usr/local/lib/python3.10/site-packages/websocket/_socket.py:97: in _recv return sock.recv(bufsize) src/decorators.py:5: in timeout_handler raise TimeoutError(f"Function execution timed out {signum} {frame}") E TimeoutError: Function execution timed out 14 <frame at 0x7fd9cd7d8240, file '/usr/local/lib/python3.10/site-packages/websocket/_socket.py', line 97, code _recv> During handling of the above exception, another exception occurred: tests/test_smoke.py:51: in test_transaction api.submit_transaction(tx=signed, wait_for_finalization=True) src/decorators.py:13: in wrapper func(*args, **kwargs) src/substrate_api.py:216: in submit_transaction tx._receipt = self.substrate.submit_extrinsic(tx._signed, wait_for_finalization) /usr/local/lib/python3.10/site-packages/substrateinterface/base.py:1788: in submit_extrinsic response = self.rpc_request( /usr/local/lib/python3.10/site-packages/substrateinterface/base.py:329: in rpc_request self.__rpc_message_queue.append(json.loads(self.websocket.recv())) /usr/local/lib/python3.10/site-packages/websocket/_core.py:388: in recv opcode, data = self.recv_data() /usr/local/lib/python3.10/site-packages/websocket/_core.py:416: in recv_data opcode, frame = self.recv_data_frame(control_frame) /usr/local/lib/python3.10/site-packages/websocket/_core.py:437: in recv_data_frame frame = self.recv_frame() /usr/local/lib/python3.10/site-packages/websocket/_core.py:478: in recv_frame return self.frame_buffer.recv_frame() /usr/local/lib/python3.10/site-packages/websocket/_abnf.py:363: in recv_frame self.recv_header() /usr/local/lib/python3.10/site-packages/websocket/_abnf.py:319: in recv_header header = self.recv_strict(2) /usr/local/lib/python3.10/site-packages/websocket/_abnf.py:398: in recv_strict bytes_ = self.recv(min(16384, shortage)) /usr/local/lib/python3.10/site-packages/websocket/_core.py:563: in _recv return recv(self.sock, bufsize) /usr/local/lib/python3.10/site-packages/websocket/_socket.py:120: in recv raise WebSocketTimeoutException("Connection timed out") E websocket._exceptions.WebSocketTimeoutException: Connection timed out
Failed Test: tests/test_smoke.py::TestSmoke::test_get_params
tests/test_smoke.py::TestSmoke::test_get_params: The test failed in the call phase - tests/test_smoke.py:99: in test_get_params assert params["chainId"] == config.chain_id, "Chain ID mismatch" E KeyError: 'chainId'
Failed Test: tests/committee/test_committee.py::TestCommitteeDistribution::test_epoch_committee_ratio_complies_with_dparam
tests/committee/test_committee.py::TestCommitteeDistribution::test_epoch_committee_ratio_complies_with_dparam: The test failed in the call phase - tests/committee/test_committee.py:51: in test_epoch_committee_ratio_complies_with_dparam update_committee_attendance(mc_epoch) tests/committee/conftest.py:376: in _inner committee = get_pc_epoch_committee(pc_epoch) tests/committee/conftest.py:488: in _get_pc_epoch_committee raise ValueError(f"API call returned None for epoch {epoch}") E ValueError: API call returned None for epoch 4815581
Failed Test: tests/committee/test_committee.py::TestCommitteeDistribution::test_epoch_committee_size_complies_with_dparam
tests/committee/test_committee.py::TestCommitteeDistribution::test_epoch_committee_size_complies_with_dparam: The test failed in the call phase - tests/committee/test_committee.py:114: in test_epoch_committee_size_complies_with_dparam committee = get_pc_epoch_committee(pc_epoch) tests/committee/conftest.py:488: in _get_pc_epoch_committee raise ValueError(f"API call returned None for epoch {epoch}") E ValueError: API call returned None for epoch 4815645
Failed Test: tests/committee/test_committee.py::TestCommitteeDistribution::test_mc_epoch_committee_participation_total_number
tests/committee/test_committee.py::TestCommitteeDistribution::test_mc_epoch_committee_participation_total_number: The test failed in the call phase - tests/committee/test_committee.py:138: in test_mc_epoch_committee_participation_total_number assert api.get_committee_seats(mc_epoch) * pc_epochs_in_mc_epoch_count == actual_total_attendance E assert (18 * 240) == 3978 E + where 18 = <bound method SubstrateApi.get_committee_seats of <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>>(774) E + where <bound method SubstrateApi.get_committee_seats of <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>> = <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>.get_committee_seats
Failed Test: tests/committee/test_committee.py::TestCommitteeRotation::test_active_trustless_candidates_were_in_committee
tests/committee/test_committee.py::TestCommitteeRotation::test_active_trustless_candidates_were_in_committee: The test failed in the call phase due to an assertion error - tests/committee/test_committee.py:258: in test_active_trustless_candidates_were_in_committee assert get_candidate_participation(candidate) > 0, ( E AssertionError: Trustless candidate eve not found in any committees on mc epoch 774 E assert 0 > 0 E + where 0 = <function get_candidate_participation.<locals>._inner at 0x7fd9ccb48820>(Candidate(id=709, name='eve', next_status='active'), next_status_epoch=774))
Failed Test: tests/committee/test_committee.py::TestCommitteeMembers::test_there_is_at_least_one_trustless_candidate
tests/committee/test_committee.py::TestCommitteeMembers::test_there_is_at_least_one_trustless_candidate: The test failed in the call phase - tests/committee/test_committee.py:340: in test_there_is_at_least_one_trustless_candidate assert len(api.get_trustless_candidates(current_mc_epoch, valid_only=True)) > 0 E assert 0 > 0 E + where 0 = len({}) E + where {} = <bound method SubstrateApi.get_trustless_candidates of <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>>(775, valid_only=True) E + where <bound method SubstrateApi.get_trustless_candidates of <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>> = <src.substrate_api.SubstrateApi object at 0x7fd9cd7391b0>.get_trustless_candidates
run
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
debug_log Expired
28.9 KB