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

Bootstrap components #5584

Merged
merged 2 commits into from Sep 19, 2023
Merged

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Sep 15, 2023

Reasoning behind the pull request

  • Bootstrap components

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
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage: 59.37% and project coverage change: +0.05% 🎉

Comparison is base (3492694) 79.93% compared to head (65f479d) 79.99%.
Report is 1 commits behind head on feat/test-only-processor-node.

❗ Current head 65f479d differs from pull request most recent head 7701a26. Consider uploading reports for the commit 7701a26 to get more accurate results

Additional details and impacted files
@@                        Coverage Diff                        @@
##           feat/test-only-processor-node    #5584      +/-   ##
=================================================================
+ Coverage                          79.93%   79.99%   +0.05%     
=================================================================
  Files                                718      719       +1     
  Lines                              94505    94567      +62     
=================================================================
+ Hits                               75540    75645     +105     
+ Misses                             13574    13526      -48     
- Partials                            5391     5396       +5     
Files Changed Coverage Δ
node/chainSimulator/bootstrapComponents.go 50.00% <50.00%> (ø)
node/chainSimulator/testOnlyProcessingNode.go 74.52% <84.61%> (+1.41%) ⬆️
node/chainSimulator/coreComponents.go 59.88% <100.00%> (+9.31%) ⬆️

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"github.com/multiversx/mx-chain-go/sharding"
)

type ArgsBootstrapComponentsHolder struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@@ -136,7 +137,7 @@ func CreateCoreComponentsHolder(args ArgsCoreComponentsHolder) (factory.CoreComp
instance.alarmScheduler = &mock.AlarmSchedulerStub{}
instance.syncTimer = &testscommon.SyncTimerStub{}
// TODO discuss with Iulian about the round handler
Copy link
Contributor

Choose a reason for hiding this comment

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

is TODO still valid?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we need a custom component for the "rounderer"

@@ -136,7 +137,7 @@ func CreateCoreComponentsHolder(args ArgsCoreComponentsHolder) (factory.CoreComp
instance.alarmScheduler = &mock.AlarmSchedulerStub{}
instance.syncTimer = &testscommon.SyncTimerStub{}
// TODO discuss with Iulian about the round handler
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we need a custom component for the "rounderer"

@@ -30,8 +31,12 @@ func createMockArgsTestOnlyProcessingNode(t *testing.T) ArgsTestOnlyProcessingNo
err = LoadConfigFromFile(pathForPrefsConfig, &prefsConfig)
assert.Nil(t, err)

workingDir, err := os.Getwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

we can remove this and use t.TempDir() instead

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

@miiu96 miiu96 merged commit b770ff2 into feat/test-only-processor-node Sep 19, 2023
5 checks passed
@miiu96 miiu96 deleted the bootstrap-components branch September 19, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants