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

Added semi-integration test #5123

Merged
merged 14 commits into from
Mar 30, 2023
Merged

Added semi-integration test #5123

merged 14 commits into from
Mar 30, 2023

Conversation

iulianpascalau
Copy link
Contributor

@iulianpascalau iulianpascalau commented Mar 23, 2023

Reasoning behind the pull request

  • added semi-integration test
  • added concurrency protection in the trie sub-component

Proposed changes

  • added semi-integration test
  • added concurrency protection in the trie sub-component

Testing procedure

  • standard system test
  • import-db scenario

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@codecov-commenter
Copy link

codecov-commenter commented Mar 23, 2023

Codecov Report

Patch coverage: 88.88% and no project coverage change.

Comparison is base (fd438a1) 75.72% compared to head (7852f3e) 75.72%.

❗ Current head 7852f3e differs from pull request most recent head e4a75da. Consider uploading reports for the commit e4a75da to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5123   +/-   ##
=======================================
  Coverage   75.72%   75.72%           
=======================================
  Files         649      649           
  Lines       85408    85423   +15     
=======================================
+ Hits        64672    64687   +15     
  Misses      15641    15641           
  Partials     5095     5095           
Impacted Files Coverage Δ
state/dataTriesHolder.go 91.89% <25.00%> (-8.11%) ⬇️
state/accountsDB.go 79.39% <100.00%> (+0.49%) ⬆️
...ate/storagePruningManager/storagePruningManager.go 70.43% <100.00%> (ø)
trie/node.go 86.46% <100.00%> (+0.41%) ⬆️
trie/patriciaMerkleTrie.go 73.90% <100.00%> (+0.14%) ⬆️

... and 2 files with indirect coverage changes

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 in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

raduchis
raduchis previously approved these changes Mar 23, 2023
@iulianpascalau iulianpascalau marked this pull request as ready for review March 23, 2023 16:05
raduchis
raduchis previously approved these changes Mar 23, 2023
sasurobert
sasurobert previously approved these changes Mar 23, 2023
trie/node.go Outdated
@@ -119,7 +120,7 @@ func computeAndSetNodeHash(n node) ([]byte, error) {
func getNodeFromDBAndDecode(n []byte, db common.DBWriteCacher, marshalizer marshal.Marshalizer, hasher hashing.Hasher) (node, error) {
encChild, err := db.Get(n)
if err != nil {
log.Trace(common.GetNodeFromDBErrorString, "error", err, "key", n)
log.Warn(common.GetNodeFromDBErrorString, "error", err, "key", n, "stack trace", string(debug.Stack()))
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@iulianpascalau iulianpascalau dismissed stale reviews from sasurobert and raduchis via ee6bb31 March 24, 2023 09:10
raduchis
raduchis previously approved these changes Mar 24, 2023
Copy link
Contributor

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

System test passed.

@iulianpascalau iulianpascalau merged commit 3f77428 into master Mar 30, 2023
@iulianpascalau iulianpascalau deleted the add-semi-integration-test branch March 30, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants