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

State comparison - SSV runner/consensus #253

Merged

Conversation

olegshmuelov
Copy link
Contributor

@olegshmuelov olegshmuelov commented May 22, 2023

Description

Introduce state comparison for sanity SSV runner/consensus tests
closes #250

reference to sanity tests #162

@olegshmuelov olegshmuelov self-assigned this May 22, 2023
@liorrutenberg liorrutenberg deleted the branch ssvlabs:main May 24, 2023 09:56
@GalRogozinski GalRogozinski reopened this May 28, 2023
@GalRogozinski GalRogozinski changed the base branch from capella-support to main May 28, 2023 09:05
@olegshmuelov olegshmuelov force-pushed the sc-ssv-runner-consensus-sanity-tests branch from 5138c0f to 75343f7 Compare May 29, 2023 08:54
@olegshmuelov
Copy link
Contributor Author

@GalRogozinski we should add generated json tests to this PR

@olegshmuelov olegshmuelov marked this pull request as ready for review May 29, 2023 09:32
Copy link
Contributor

@GalRogozinski GalRogozinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!
I just had some unimportant question

@GalRogozinski
Copy link
Contributor

@GalRogozinski we should add generated json tests to this PR

json looks fine

},
{
Name: "sync committee",
Runner: testingutils.SyncCommitteeRunner(ks),
Duty: &testingutils.TestingSyncCommitteeDuty,
Messages: append(
testingutils.SSVDecidingMsgsV(testingutils.TestSyncCommitteeConsensusData, ks, types.BNRoleSyncCommittee),
// post consensus
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

OutputMessages: []*types.SignedPartialSignatureMessage{
testingutils.PreConsensusSelectionProofMsg(ks.Shares[1], ks.Shares[1], 1, 1),
testingutils.PostConsensusAggregatorMsg(ks.Shares[1], 1),
},
BeaconBroadcastedRoots: []string{
testingutils.GetSSZRootNoError(testingutils.TestingSignedAggregateAndProof(ks)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it prev did not broadcast it?

},
{
Name: "attester",
Runner: testingutils.AttesterRunner(ks),
Duty: &testingutils.TestingAttesterDuty,
Messages: append(
testingutils.SSVDecidingMsgsV(testingutils.TestAttesterConsensusData, ks, types.BNRoleAttester),
// post consensus
testingutils.SSVMsgAttester(nil, testingutils.PostConsensusAttestationMsg(ks.Shares[1], 1, qbft.FirstHeight)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why needeD?

@liorrutenberg liorrutenberg merged commit befa08d into ssvlabs:main Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PostFinish tests are broken
5 participants