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

IF: port tests using qc_chain and chain_pacemaker to work with the new implementation #2147

Closed
Tracked by #2110
linh2931 opened this issue Jan 26, 2024 · 3 comments · Fixed by #2234
Closed
Tracked by #2110
Assignees

Comments

@linh2931
Copy link
Member

linh2931 commented Jan 26, 2024

Depends on #2193.

#2123 removes qc_chain and chain_pacemaker related code.

There are a large number of comprehensive tests using qc_chain and chain_pacemaker. They should be reviewed; those appropriate should be ported to work with the new implementation when appropriate.

@linh2931
Copy link
Member Author

linh2931 commented Feb 6, 2024

Review results

3 files in hotstuff test directory contain tests: test_hotstuff.cpp, hotstuff_tools.cpp, and test_hotstuff_state.cpp.

  1. hotstuff_tools.cpp tests votes and is kept.
  2. test_hotstuff_state.cpp was intended to test safety file; it is unfinished. When new finalizer safety file work (IF: Update finalizer safety information and rules for how a finalizer signs #2070) is finished, new tests should be added.
  3. test_hotstuff.cpp has 9 tests:

@greg7mdp
Copy link
Contributor

greg7mdp commented Feb 15, 2024

Re-enable weak vote related tests which were disabled in order to merge #2135

@greg7mdp greg7mdp reopened this Feb 15, 2024
@github-project-automation github-project-automation bot moved this from Done to Todo in Team Backlog Feb 15, 2024
@linh2931 linh2931 moved this from Todo to In Progress in Team Backlog Feb 16, 2024
@linh2931
Copy link
Member Author

Previous hotstuff tests did not have tests for weak votes. Each of the 9 tests has either a similar test now or not applicable. Close this and reopen #2193 for weak related tests (which cannot be done by simply changing vote messages in the middle of transmission).

@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Backlog Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment