Merged
Conversation
Contributor
|
Coverage from tests in coverage: 45.8% of statements across all listed packagescoverage: 52.6% of statements in consensus/istanbul coverage: 40.0% of statements in consensus/istanbul/announce coverage: 54.7% of statements in consensus/istanbul/backend coverage: 0.0% of statements in consensus/istanbul/backend/backendtest coverage: 24.3% of statements in consensus/istanbul/backend/internal/replica coverage: 52.0% of statements in consensus/istanbul/core coverage: 45.0% of statements in consensus/istanbul/db coverage: 0.0% of statements in consensus/istanbul/proxy coverage: 64.4% of statements in consensus/istanbul/uptime coverage: 51.8% of statements in consensus/istanbul/validator coverage: 79.2% of statements in consensus/istanbul/validator/randomCommentID: a3fcedc7ea |
Codecov ReportBase: 54.82% // Head: 54.79% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1961 +/- ##
==========================================
- Coverage 54.82% 54.79% -0.03%
==========================================
Files 688 695 +7
Lines 92542 93251 +709
==========================================
+ Hits 50737 51099 +362
- Misses 37993 38309 +316
- Partials 3812 3843 +31
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. |
This comment was marked as outdated.
This comment was marked as outdated.
piersy
reviewed
Sep 28, 2022
piersy
reviewed
Sep 28, 2022
piersy
reviewed
Sep 29, 2022
piersy
reviewed
Sep 29, 2022
piersy
reviewed
Sep 30, 2022
piersy
reviewed
Sep 30, 2022
d149920 to
3c59b0d
Compare
piersy
reviewed
Oct 4, 2022
piersy
reviewed
Oct 4, 2022
palango
commented
Oct 6, 2022
567e55b to
766f0f8
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The race detector found a problem when running with
go test -race -count=1 ./eth/downloader.It turns out that
celo-blockchain/eth/downloader/queue.go
Line 505 in 67b6239
resultstore.This value is later changed here (added in the latest upstream pull):
celo-blockchain/eth/downloader/queue.go
Lines 531 to 534 in 620b5fc
AllDone:celo-blockchain/eth/downloader/resultstore.go
Line 154 in 67b6239
I guess this patch is the easy solution to avoid the race, but there might be a better way to avoid this in the first place. It seems ugly that
pendingis accessed in the first place there. I'm open to suggestions.Other changes
Some typos.
Tested
This triggered the race detector when run with
go test -race -count=1 ./eth/downloader. With these changes it didn't trigger locally with a count of 20.Related issues
/
Backwards compatibility
/