Prepare Bor package for testing#416
Conversation
Codecov Report
@@ Coverage Diff @@
## v0.3.0-dev #416 +/- ##
==============================================
+ Coverage 55.74% 56.48% +0.73%
==============================================
Files 601 589 -12
Lines 69602 68434 -1168
==============================================
- Hits 38803 38656 -147
+ Misses 27447 26465 -982
+ Partials 3352 3313 -39
Continue to review full report at Codecov.
|
f179c86 to
c8f9cd6
Compare
|
@JekaMas can we split this PR somehow? |
@temaniarpit27 Unfortunately, I can't find the way to split it. |
|
One thing |
Why you would like to do it? My arguments to keep things as they are:
|
cffls
left a comment
There was a problem hiding this comment.
Looks good to me overall. My only concern is that with lots of refactoring in this PR, it is not obviously easy to detect problems and bugs by simply reading the code. What testings do you think we could perform to give us more confidence in merging this change?
| @@ -0,0 +1,11 @@ | |||
| package set | |||
|
|
|||
| func New[T comparable](slice []T) map[T]struct{} { | |||
There was a problem hiding this comment.
Looks good to me overall. My only concern is that with lots of refactoring in this PR, it is not obviously easy to detect problems and bugs by simply reading the code. What testings do you think we could perform to give us more confidence in merging this change?
I believe the only change in bor package is interaction between bor and Heimdall. So we need to test: getting new spans, state sync.
There was a problem hiding this comment.
Where is this function used?
Yes, it is being used in TestRandomAddresses
There was a problem hiding this comment.
I believe the only change in bor package is interaction between bor and Heimdall. So we need to test: getting new spans, state sync.
We can create a local devnet to test this out.
There was a problem hiding this comment.
It'd be great to test heimdall+bor on devnet. Check that blocks, checkpoints, state sync, spans are there and keep going.
There was a problem hiding this comment.
Could you take testing on you? Just basic one. If no errors I believe we can move further with the task and merge it. @cffls
There was a problem hiding this comment.
@cffls does it looks good to you in the current state?
There was a problem hiding this comment.
Yes, the local devnet looks good after using the latest commits.
There was a problem hiding this comment.
I believe we can merge it now.
|
Most of it looks fine to me |
As a developer I'd like to test Bor consensus. However, it is tightly coupled with a few dependancies, so it is hard to test.
This PR extracts dependancies introducing interfaces