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

testutil/validatormock: integrate DutySyncMessage #1293

Merged
merged 5 commits into from
Oct 17, 2022
Merged

Conversation

dB2510
Copy link
Contributor

@dB2510 dB2510 commented Oct 15, 2022

Integrates DutySyncMessage by adding support to validatormock and adds a simnet_test.

category: feature
ticket: #1261

@codecov
Copy link

codecov bot commented Oct 15, 2022

Codecov Report

Base: 53.85% // Head: 53.67% // Decreases project coverage by -0.17% ⚠️

Coverage data is based on head (00776ba) compared to base (9f1003d).
Patch coverage: 20.25% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1293      +/-   ##
==========================================
- Coverage   53.85%   53.67%   -0.18%     
==========================================
  Files         139      140       +1     
  Lines       16477    16803     +326     
==========================================
+ Hits         8873     9019     +146     
- Misses       6341     6510     +169     
- Partials     1263     1274      +11     
Impacted Files Coverage Δ
app/eth2wrap/eth2wrap_gen.go 4.86% <0.00%> (+0.15%) ⬆️
core/validatorapi/router.go 62.48% <0.00%> (-0.81%) ⬇️
testutil/beaconmock/beaconmock.go 51.37% <0.00%> (ø)
testutil/beaconmock/server.go 53.17% <0.00%> (-1.30%) ⬇️
testutil/validatormock/synccomm.go 0.00% <0.00%> (ø)
testutil/beaconmock/options.go 32.52% <7.40%> (-0.27%) ⬇️
app/vmock.go 72.19% <84.78%> (-1.67%) ⬇️
app/app.go 60.59% <100.00%> (-0.39%) ⬇️
testutil/validatormock/attest.go 59.83% <100.00%> (ø)
app/disk.go 33.33% <0.00%> (-23.81%) ⬇️
... and 28 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -51,7 +52,7 @@ type HTTPMock interface {
eth2client.SlotDurationProvider
eth2client.SlotsPerEpochProvider
eth2client.SpecProvider
eth2client.SyncCommitteeDutiesProvider
eth2client.SyncCommitteeSubscriptionsSubmitter
Copy link
Contributor

Choose a reason for hiding this comment

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

no other submitters here... probably not required

@@ -367,6 +367,37 @@ func WithNoAttesterDuties() Option {
}
}

func WithSyncCommitteeDuties() Option {
Copy link
Contributor

Choose a reason for hiding this comment

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

add a comment what this does. Suggest just turning this duty on always if called?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for simnet?
like adding it in app.go at the time of instantiating beaconmock

@dB2510 dB2510 linked an issue Oct 16, 2022 that may be closed by this pull request
@dB2510 dB2510 added the merge when ready Indicates bulldozer bot may merge when all checks pass label Oct 17, 2022
@obol-bulldozer obol-bulldozer bot merged commit 43f0a73 into main Oct 17, 2022
@obol-bulldozer obol-bulldozer bot deleted the dhruv/syncvmock branch October 17, 2022 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants