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

app: add simnet builder proposer unit test #858

Merged
merged 2 commits into from
Jul 26, 2022
Merged

Conversation

corverroos
Copy link
Contributor

@corverroos corverroos commented Jul 26, 2022

Add unit test for builder proposer and fix few integration issues.

category: test
ticket: #809

@codecov
Copy link

codecov bot commented Jul 26, 2022

Codecov Report

Merging #858 (06c1f7e) into main (27915cf) will decrease coverage by 0.09%.
The diff coverage is 70.00%.

@@            Coverage Diff             @@
##             main     #858      +/-   ##
==========================================
- Coverage   55.33%   55.24%   -0.10%     
==========================================
  Files         113      113              
  Lines       12077    12089      +12     
==========================================
- Hits         6683     6678       -5     
- Misses       4437     4447      +10     
- Partials      957      964       +7     
Impacted Files Coverage Δ
core/scheduler/scheduler.go 71.08% <60.00%> (-0.19%) ⬇️
app/app.go 55.33% <61.11%> (-2.02%) ⬇️
core/validatorapi/validatorapi.go 51.85% <100.00%> (ø)
testutil/validatormock/validatormock.go 38.18% <100.00%> (ø)
core/dutydb/memory.go 70.63% <0.00%> (-1.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 27915cf...06c1f7e. Read the comment docs.

app/app.go Outdated
@@ -631,6 +631,13 @@ func callValidatorMock(ctx context.Context, duty core.Duty, cl eth2client.Servic
} else {
log.Info(ctx, "Mock block proposal submitted to validatorapi", z.I64("slot", duty.Slot))
}
case core.DutyBuilderProposer:
err := validatormock.ProposeBlindedBlock(ctx, cl.(*eth2http.Service), signer, eth2p0.Slot(duty.Slot), addr, pubshares...)
Copy link
Contributor

Choose a reason for hiding this comment

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

can assign eth2Svc := cl.(*eth2http.Service) since the typecast happens in all cases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cool done

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jul 26, 2022
@obol-bulldozer obol-bulldozer bot merged commit 2796f78 into main Jul 26, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/testbuilder branch July 26, 2022 14:30
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