Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_state_history/test_splitted_log and test_state_history/test_fork_no_stride fail in Savanna #179

Closed
linh2931 opened this issue May 21, 2024 · 3 comments · Fixed by #367
Assignees

Comments

@linh2931
Copy link
Member

unittests/state_history_tests.cpp(715): error: in "test_state_history/test_splitted_log": check std::filesystem::exists( retained_dir / "trace_history-41-60.log" ) has failed
unittests/state_history_tests.cpp(716): error: in "test_state_history/test_splitted_log": check std::filesystem::exists( retained_dir / "trace_history-41-60.index" ) has failed
unittests/state_history_tests.cpp(726): error: in "test_state_history/test_splitted_log": check chain.traces_log.block_range().first == 41u has failed [61 != 41]
unittests/state_history_tests.cpp(728): error: in "test_state_history/test_splitted_log": check std::filesystem::exists( retained_dir / "chain_state_history-41-60.log" ) has failed
unittests/state_history_tests.cpp(729): error: in "test_state_history/test_splitted_log": check std::filesystem::exists( retained_dir / "chain_state_history-41-60.index" ) has failed
unittests/state_history_tests.cpp(739): error: in "test_state_history/test_splitted_log": check chain.chain_state_log.block_range().first == 41u has failed [61 != 41]
unittests/state_history_tests.cpp(745): error: in "test_state_history/test_splitted_log": check get_traces(chain.traces_log, 160).empty() has failed
unittests/state_history_tests.cpp(751): error: in "test_state_history/test_splitted_log": check get_decompressed_entry(chain.chain_state_log, 160).empty() has failed
3030001 unlinkable_block_exception: Unlinkable block
unlinkable block 0000002e483309054b55905050dbfefd83d55bf953841c8c75f53db0543c648f previous 0000002d9554fcad49dbbc5ee8d102e487bb6ce8f1c726a18446ac792b463115
    {"id":"0000002e483309054b55905050dbfefd83d55bf953841c8c75f53db0543c648f","p":"0000002d9554fcad49dbbc5ee8d102e487bb6ce8f1c726a18446ac792b463115"}
    chain-1  controller.cpp:3905 operator()

unknown location(0): fatal error: in "test_state_history/test_fork_no_stride": std::runtime_error: Caught Unexpected Exception
libraries/testing/include/eosio/testing/tester.hpp(886): last checkpoint
3030001 unlinkable_block_exception: Unlinkable block
unlinkable block 0000002e483309054b55905050dbfefd83d55bf953841c8c75f53db0543c648f previous 0000002d9554fcad49dbbc5ee8d102e487bb6ce8f1c726a18446ac792b463115
    {"id":"0000002e483309054b55905050dbfefd83d55bf953841c8c75f53db0543c648f","p":"0000002d9554fcad49dbbc5ee8d102e487bb6ce8f1c726a18446ac792b463115"}
    chain-1  controller.cpp:3905 operator()

unknown location(0): fatal error: in "test_state_history/test_fork_with_stride1": std::runtime_error: Caught Unexpected Exception
libraries/testing/include/eosio/testing/tester.hpp(886): last checkpoint
unittests/state_history_tests.cpp(821): error: in "test_state_history/test_fork_with_stride2": unexpected exception thrown by test_fork(5, 1)
@spoonincode
Copy link
Member

ship log partitioning is completely refactored on my branch; I'd suggest no one chase this problem on main

@spoonincode spoonincode self-assigned this May 21, 2024
@spoonincode spoonincode moved this from Todo to In Progress in Team Backlog May 21, 2024
@spoonincode
Copy link
Member

left my work so far in ship_unittest_v2

@spoonincode spoonincode removed their assignment May 23, 2024
@spoonincode spoonincode moved this from In Progress to Todo in Team Backlog May 23, 2024
@heifner
Copy link
Member

heifner commented May 23, 2024

This is failing because under Savanna the fork it is attempting to make is not the best fork on chain1, so chain1 does not switch to the blocks pushed from chain2.

Need to update the test to create a fork that chain1 will consider better than its own fork.

@arhag arhag added 👍 lgtm and removed triage labels May 24, 2024
@arhag arhag added this to the Savanna: Production-Ready milestone May 24, 2024
@arhag arhag assigned linh2931 and unassigned heifner May 28, 2024
@linh2931 linh2931 moved this from Todo to In Progress in Team Backlog Jun 4, 2024
@linh2931 linh2931 moved this from In Progress to Todo in Team Backlog Jun 27, 2024
@linh2931 linh2931 removed their assignment Jun 27, 2024
@arhag arhag assigned linh2931 and unassigned linh2931 Jul 10, 2024
@linh2931 linh2931 self-assigned this Jul 10, 2024
@linh2931 linh2931 moved this from Todo to In Progress in Team Backlog Jul 11, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Backlog Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
5 participants