-
Notifications
You must be signed in to change notification settings - Fork 24
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
ssz: fix ssv sanity tests #162
Merged
Merged
Changes from 142 commits
Commits
Show all changes
152 commits
Select commit
Hold shift + click to select a range
51e16f1
Make tests compilable
nkryuchkov 8ac46bf
Simplify futuremsg.Cleanup
nkryuchkov 30ce7b4
Fix operator ID in `proposal.FutureRound`
nkryuchkov 539b412
Merge branch 'ssz' into ssz-fix-tests
nkryuchkov dc8b6c9
Fix issues in roundchange.HappyFlow
nkryuchkov a519335
Fix issue `ks.Shares[2], types.OperatorID(2), 3` -> `ks.Shares[3], ty…
nkryuchkov 58406aa
Fix WrongProposer
nkryuchkov b26a85b
Fix roundchange.AfterProposal
nkryuchkov 379e9c0
Fix roundchange.RoundChangePartialQuorum
nkryuchkov ab651fb
Fix CommitDataInvalid
nkryuchkov 51d7fd9
Fix prepare.UnknownSigner
nkryuchkov 98635f9
Fix DuplicateMsgQuorumPreparedRCFirst
nkryuchkov 32fe746
Fix proposal.FutureRound
nkryuchkov 75b8433
Fix proposal.FutureRoundPrevNotPrepared
nkryuchkov 93e0e66
Add a comment
nkryuchkov a0d7ba1
Fix tests.HappyFlow
nkryuchkov 656a7dc
Fix tests.SevenOperators
nkryuchkov a367afc
Fix tests.TenOperators
nkryuchkov 466472a
Fix tests.ThirteenOperators
nkryuchkov bbf04c7
Fix prepare.HappyFlow
nkryuchkov db50cef
Fix commit.HappyFlow
nkryuchkov d487c0b
Fix issues in generators of testing messages
nkryuchkov d875739
sanity tests
alonmuroch 87f5c53
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov faae4df
WIP spec testsd
alonmuroch a6e1181
WIP base sanity tests
alonmuroch 4241ef2
Use DecidingMsgsForHeight
nkryuchkov 6a8e960
Set FullData for prepare multi signer message
nkryuchkov 99dfd64
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 25f1531
Fix InputValue and DecidedVal in qbft controller spectests
nkryuchkov 3d7e6bb
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 4c6a7d1
Fix proposal.CurrentRoundPrevPrepared()
nkryuchkov 903e599
Fix proposal.PastRoundProposalPrevPrepared()
nkryuchkov 524caa5
Revert "Fix InputValue and DecidedVal in qbft controller spectests"
nkryuchkov b5c8bf5
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov cb1ba96
Fix DecidedVal in controller/decided tests
nkryuchkov daef76c
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 62c99f2
Fix decided.HasQuorum()
nkryuchkov d236565
Fix decided.LateDecidedBiggerQuorum(), decided.LateDecidedSmallerQuor…
nkryuchkov aa5b078
Fix DecidedVal in NoInstanceRunning and LateCommit
nkryuchkov 4f61dad
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 26f40d7
Fix proposal message in CurrentInstancePastRound
nkryuchkov b47d730
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 0f60a5d
Fix decided.CurrentInstancePastRound
nkryuchkov 10c0afc
Fix decided.CurrentInstanceFutureRound
nkryuchkov 0abaf85
Fix proposal message and decided value in latemsg.LateCommitPastRound
nkryuchkov e770b84
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov ea828c1
Fix startinstance.EmptyValue, startinstance.NilValue, startinstance.V…
nkryuchkov b85bd2d
Fix processmsg.NoInstanceRunning()
nkryuchkov 6c4231f
Fix latemsg.LateCommit()
nkryuchkov ab61ad3
Fix latemsg.LateCommitPastRound()
nkryuchkov e73ef7f
Fix signers in proposal.FutureRoundPrevNotPrepared
nkryuchkov 3c351bd
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 660818c
Fix:
nkryuchkov 49f0cca
Set FullData when creating testing round change message
nkryuchkov cf20f08
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov ef5ceb4
Fix proposal: CurrentRoundPrevPrepared, FutureRound, FutureRoundPrevN…
nkryuchkov 90a45b0
Update roots for controller tests
nkryuchkov 78949a0
Remove PreparedPreviouslyJustificationDebug
nkryuchkov 5b2382a
Change start value for qbft base instance to TestingQBFTFullData
nkryuchkov 85dddcf
Adjust round change message in roundchange.HappyFlow
nkryuchkov bec5f10
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov c6eb9f8
Fix roundchange.HappyFlow
nkryuchkov 93e87c4
Fix output message in roundchange.F1Speedup
nkryuchkov ee3229f
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 53465f7
Fix round change messages in roundchange.F1SpeedupPrevPrepared and ro…
nkryuchkov 72e14b6
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov d18ee68
Fix roots in remaining sanity round change tests
nkryuchkov 17e36d0
Fix issues in sanity futuremsg tests
nkryuchkov bc02fc9
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov ead28f5
Fix remaining sanity futuremsg tests
nkryuchkov bf588da
Add proposal.InvalidFullData test
nkryuchkov 33fc8b8
Fix root in proposal.CurrentRoundPrevNotPrepared
nkryuchkov 7220425
Fix checks if H(data) != root
nkryuchkov ca6aff4
Fix signers in startinstance.PostFutureDecided
nkryuchkov f86b1be
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 0178aff
remove full data on marshaling justifications + tests
alonmuroch f43c28e
fix test import cycle
aaron-blox e993c3c
fix linting
aaron-blox d9d7780
partial sig slot validation + tests
alonmuroch b194609
ssv full happy flow spec passes
alonmuroch 55db1b2
Merge pull request #160 from bloxapp/ssz-test-import-cycle
aaron-blox a6a8d6d
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov e5bb32f
Merge pull request #159 from bloxapp/ssz-fix-data-hash-checks
aaron-blox 3200844
Remove irrelevant tests
nkryuchkov 9a7760d
Remove irrelevant tests [2]
nkryuchkov a6e1ea1
Fix futuremsg.InvalidMsg
nkryuchkov c86a151
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov ae8b56f
Fix processmsg.InvalidIdentifier
nkryuchkov 58b19bb
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov b6f6d7a
Remove irrelevant tests [3]
nkryuchkov d38985d
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 59cf4bd
Remove irrelevant tests [4]
nkryuchkov 858da38
Fix round change message validation for MsgSpecTest type
nkryuchkov 83e2bb6
Remove messages.RoundChangeDataInvalidPreparedValue
nkryuchkov c183716
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 508d85f
Fix issues with DecidedVal and lack of RC justifications in latemsg t…
nkryuchkov 7ab64cd
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 376b5e5
Fix some startinstance and processmsg tests
nkryuchkov 075c07e
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 643019f
Add a TODO to check InvalidRoundChangeJustificationPrepared test
nkryuchkov 9043cdc
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov 876b8ab
validRoundChange->validRoundChangeForData
alonmuroch fff2f37
Merge branch 'ssz-fix-tests' into ssz-fix-failing-tests
nkryuchkov e50978a
Fix roots of some tests; fix missing justification in some proposal t…
nkryuchkov 007829e
Merge branch 'ssz' into ssz-fix-failing-tests
nkryuchkov 2def9f9
Fix issues after merging
nkryuchkov fb32e2b
Uncomment sanity tests
nkryuchkov 6a3078c
Remove duplicated sanity tests
nkryuchkov 9dd72c1
Fix a comment in proposal.InvalidFullData
nkryuchkov 277442d
Create helper functions receiving identifiers for all futuremsg tests
nkryuchkov d7cb3f5
Remove duplicated tests
nkryuchkov 6a79508
Fix root for NotPreparedPreviouslyJustification
nkryuchkov 2a2aa09
Fix timeout tests
nkryuchkov ba11c1a
Fix justification validation for MsgSpecTest
nkryuchkov cb9f455
Simplify identifier usage in testingutils
nkryuchkov 0f6f283
Delete messages.RoundChangeDataInvalidPreparedRound()
nkryuchkov 2fb7e1e
Remove messages.SignedMsgSigTooLong and messages.SignedMsgSigTooShort
nkryuchkov 9de2afe
Rename testing variables
nkryuchkov 43de360
Fix generating proposal message with different root and proposal.Dupl…
nkryuchkov 8776904
Mark tests that have issues other that different instance roots with …
nkryuchkov 6c51211
Remove outdated TODO from startinstance.PostFutureDecided
nkryuchkov 73af49a
Update TODO comments
nkryuchkov 028fcc6
Comment out accidentally uncommented tests
nkryuchkov eb16272
Fix proposal.PreparedPreviouslyNoPrepareJustificationQuorum
nkryuchkov 2f0faea
Fix proposal.InvalidPrepareJustificationValue
nkryuchkov 881b409
Fix proposal.InvalidPrepareJustificationRound
nkryuchkov a6db649
Delete commit.InvalidCommitData and prepare.InvalidPrepareData
nkryuchkov 3accaaa
Mark decided.CurrentInstancePastRound and decided.CurrentInstanceFutu…
nkryuchkov 16d8e42
Fix decided.CurrentInstance
nkryuchkov 1be4987
Delete roundchange.JustificationInvalidPrepareData
nkryuchkov 31862a5
Delete roundchange.JustificationWrongValue
nkryuchkov 4319f50
Fix decided.CurrentInstance root
nkryuchkov 4eacf49
Remove roundchange.InvalidRoundChangeData
nkryuchkov 4743782
Merge branch 'ssz' into ssz-fix-remaining-tests-issues
nkryuchkov 5d0fc41
Fix issues in remaining round change tests
nkryuchkov 66ee7eb
Fix decided.InvalidValCheckData
nkryuchkov 5bf5bdf
Mark decided.InvalidValCheckData as fixed
nkryuchkov 64f84a7
Mark recently fixed round change tests as fixed
nkryuchkov 62edf10
Delete proposal.JustificationsValueNotJustified
nkryuchkov 7e48b57
Fix ssv sanity tests
nkryuchkov 6235332
Remove debug print
nkryuchkov 1d3717b
Fix DecidingMsgsForHeight
nkryuchkov c6ec2c5
Fix returned error if no running duty on consensus message processing
nkryuchkov 5a5604d
Fix consensus.PostFinish test
nkryuchkov 737af90
Delete messages.RoundChangeDataInvalidJustifications
nkryuchkov 7cded3e
Attempt to fix consensus.PostFinish
nkryuchkov d37ea3a
Revert roundchange.JustificationWrongValue removal
nkryuchkov 375ae07
Revert roundchange.JustificationWrongValue removal in all_tests.go
nkryuchkov 20dd7bd
Fix roundchange.JustificationWrongValue
nkryuchkov 97fe800
Comment out roundchange.JustificationWrongValue
nkryuchkov 27b5140
Fix consensus.NoRunningDuty
nkryuchkov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what did you try to do here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's for
messages.RoundChangeDataInvalidJustifications
(https://github.com/bloxapp/ssv-spec/blob/ssz-fix-remaining-tests-issues/qbft/spectest/tests/messages/rc_invalid_justifications.go#L11).We used to have this check in https://github.com/bloxapp/ssv-spec/blob/main/qbft/messages.go#L140 but now we don't have it when validating a message (https://github.com/bloxapp/ssv-spec/blob/ssz-fix-remaining-tests-issues/qbft/messages.go#L122).
I think I need to remove this check because it's in a test runner and doesn't actually test what we need to test.
Should we add a justification length check of prepared messages in https://github.com/bloxapp/ssv-spec/blob/ssz-fix-remaining-tests-issues/qbft/messages.go#L122 or should we just remove this check and remove the
messages.RoundChangeDataInvalidJustifications
test?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mm not sure what it's for... I think we can remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed