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

reference elrond-go-storage #4349

Merged
merged 24 commits into from
Aug 25, 2022

Conversation

bogdan-rosianu
Copy link
Contributor

Description of the reasoning behind the pull request (what feature was missing / how the problem was manifesting itself / what was the motive behind the refactoring)

  • the storers and cachers have been moved to a new repo elrond-go-storage

Proposed Changes

  • reference the new repo + remove the moved code from elrond-go

Testing procedure

  • everything should work as before

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2022

Codecov Report

Merging #4349 (155df95) into development (4c6761d) will decrease coverage by 2.18%.
The diff coverage is 84.17%.

❗ Current head 155df95 differs from pull request most recent head 018294d. Consider uploading reports for the commit 018294d to get more accurate results

@@               Coverage Diff               @@
##           development    #4349      +/-   ##
===============================================
- Coverage        75.25%   73.07%   -2.19%     
===============================================
  Files              614      634      +20     
  Lines            82115    83442    +1327     
===============================================
- Hits             61794    60973     -821     
- Misses           15643    17727    +2084     
- Partials          4678     4742      +64     
Impacted Files Coverage Δ
common/forking/gasSchedule.go 75.82% <0.00%> (-10.43%) ⬇️
common/tokensParser.go 100.00% <ø> (ø)
consensus/broadcast/delayedBroadcast.go 84.81% <ø> (ø)
dataRetriever/txpool/argShardedTxPool.go 83.33% <ø> (ø)
dblookupext/errors.go 0.00% <ø> (ø)
debug/antiflood/debugger.go 87.23% <ø> (ø)
debug/resolver/interceptorResolver.go 79.11% <ø> (ø)
epochStart/bootstrap/fromLocalStorage.go 50.58% <0.00%> (-0.30%) ⬇️
facade/nodeFacade.go 79.44% <ø> (+0.63%) ⬆️
factory/apiResolverFactory.go 0.00% <ø> (-75.36%) ⬇️
... and 317 more

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

@sstanculeanu sstanculeanu self-requested a review August 8, 2022 15:40
# Conflicts:
#	update/factory/dataTrieFactory.go
# Conflicts:
#	.github/workflows/build_and_test.yml
#	.github/workflows/code-coverage.yml
#	.github/workflows/create_release.yml
#	.github/workflows/golangci-lint.yml
# Conflicts:
#	epochStart/bootstrap/syncValidatorStatus.go
#	errors/errors.go
#	factory/mock/coreComponentsMock.go
#	genesis/process/genesisBlockCreator.go
#	go.mod
#	heartbeat/process/monitor.go
#	integrationTests/testP2PNode.go
#	integrationTests/testProcessorNodeWithCoordinator.go
#	integrationTests/testProcessorNodeWithMultisigner.go
#	node/mock/factory/coreComponentsStub.go
#	process/block/preprocess/transactions.go
#	process/smartContract/hooks/blockChainHook.go
@bogdan-rosianu bogdan-rosianu marked this pull request as ready for review August 11, 2022 11:04
@@ -15,6 +15,9 @@ import (
dataBlock "github.com/ElrondNetwork/elrond-go-core/data/block"
"github.com/ElrondNetwork/elrond-go-core/data/indexer"
logger "github.com/ElrondNetwork/elrond-go-logger"
storageErrorsFactory "github.com/ElrondNetwork/elrond-go-storage/factory"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
storageErrorsFactory "github.com/ElrondNetwork/elrond-go-storage/factory"
storageFactory "github.com/ElrondNetwork/elrond-go-storage/factory"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

storageFactory is already used. renamed to storageRepoFactory

"github.com/ElrondNetwork/elrond-go/storage"
"github.com/ElrondNetwork/elrond-go/storage/timecache"
"github.com/ElrondNetwork/elrond-go-storage/timecache"
storage "github.com/ElrondNetwork/elrond-go-storage/types"
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe

Suggested change
storage "github.com/ElrondNetwork/elrond-go-storage/types"
storageTypes "github.com/ElrondNetwork/elrond-go-storage/types"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

sstanculeanu
sstanculeanu previously approved these changes Aug 11, 2022
go.mod Outdated
github.com/ElrondNetwork/covalent-indexer-go v1.0.6
github.com/ElrondNetwork/elastic-indexer-go v1.2.38
github.com/ElrondNetwork/elrond-go-core v1.1.18
github.com/ElrondNetwork/elrond-go-crypto v1.0.1
github.com/ElrondNetwork/elrond-go-logger v1.0.7
github.com/ElrondNetwork/elrond-go-storage v0.0.0-20220811102708-2dc21ec20863
Copy link
Contributor

@AdoAdoAdo AdoAdoAdo Aug 11, 2022

Choose a reason for hiding this comment

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

don't forget to replace with a tag before merge
maybe add as well arwen tags

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added a tag for elrond-go-storage. For arwen, I think they should come in a new PR

AdoAdoAdo
AdoAdoAdo previously approved these changes Aug 11, 2022
@bogdan-rosianu bogdan-rosianu dismissed stale reviews from AdoAdoAdo and sstanculeanu via 018294d August 12, 2022 12:44
sstanculeanu
sstanculeanu previously approved these changes Aug 12, 2022
@bogdan-rosianu bogdan-rosianu changed the base branch from development to feat/elrond-go-storage August 23, 2022 10:32
@bogdan-rosianu bogdan-rosianu dismissed sstanculeanu’s stale review August 23, 2022 10:32

The base branch was changed.

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.

@bogdan-rosianu bogdan-rosianu merged commit 3dd2132 into feat/elrond-go-storage Aug 25, 2022
@bogdan-rosianu bogdan-rosianu deleted the refer-elrond-go-storage branch August 25, 2022 10:07
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.

5 participants