-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Consensus] Fix testing framework concurrency and improve logging #404
Conversation
@gokutheengineer Just a heads up that we might have some merge conflicts. No action items or need for a review yet. This is where I'm working through the "block is nil" issue and have been overhauling some of the logs to make things clearer to understand and debug as well. Currently thinking of ways to add better unit tests for it. |
@deblasis I only added @gokutheengineer as a reviewer because I don't think this requires a review from multiple people but just thought you'd appreciate seeing the change here https://github.com/pokt-network/pocket/pull/404/files#diff-351d333685b4f6a9bb38d617a69a200daa5261f20ea31a62a7f1b4123dba9520. In particular, look at the changes in ➕ 1️⃣ to the iteration on each other's work |
This is to ensure in the beginning all nodes set leader id to 0, to prevent some possible bugs. Co-authored-by: goku <[email protected]>
@gokutheengineer PTAL when you have a chance |
LGTM! |
@gokutheengineer I'm going to hold of for us to merge in #425 (already approved). Plan is to rebase this on top of master, retest, and then submit this. |
668444e
to
067336f
Compare
Description
The original motivation for this PR was to fix the
block is nil
on LocalNet.While testing (using unit tests), debugging and investigating (using LocalNet), several issues were uncovered in the consensus testing framework introduced by #198. The goal of this PR changed to fix those issues and improve the quality of the consensus codebase.
Issue
Tends to "quality of life" improvements, which are somewhat related to #361.
Type of change
Please mark the relevant option(s):
List of changes
Consensus - Core
Consensus - Tests
consensus_tests
package toe2e_tests
fail_on_extra_msgs
from theMakefile
to theconsensus
moduleConsensus - Pacemaker
ValidateMessage
toShouldHandleMessage
and return a booleanreason
toInterruptRoudn
P2P
Configs
Testing
make test_consensus
make develop_test
README
Required Checklist
If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)