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

Status Core Components and State Components #5573

Merged

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Sep 11, 2023

Reasoning behind the pull request

  • StatusCoreComponents
  • StateComponents
  • StatusComponents

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?

@miiu96 miiu96 changed the title more components Status Core Components and State Components Sep 11, 2023
@miiu96 miiu96 marked this pull request as ready for review September 11, 2023 09:24
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage: 55.79% and project coverage change: -0.03% ⚠️

Comparison is base (edacf03) 79.98% compared to head (a3cad20) 79.96%.
Report is 1 commits behind head on feat/test-only-processor-node.

❗ Current head a3cad20 differs from pull request most recent head 8fc962e. Consider uploading reports for the commit 8fc962e to get more accurate results

Additional details and impacted files
@@                        Coverage Diff                        @@
##           feat/test-only-processor-node    #5573      +/-   ##
=================================================================
- Coverage                          79.98%   79.96%   -0.03%     
=================================================================
  Files                                713      716       +3     
  Lines                              93997    94122     +125     
=================================================================
+ Hits                               75188    75267      +79     
- Misses                             13437    13470      +33     
- Partials                            5372     5385      +13     
Files Changed Coverage Δ
node/processingOnlyNode/stateComponents.go 46.93% <46.93%> (ø)
node/processingOnlyNode/statusComponents.go 47.36% <47.36%> (ø)
node/processingOnlyNode/statusCoreComponents.go 50.00% <50.00%> (ø)
node/processingOnlyNode/testOnlyProcessingNode.go 74.07% <57.69%> (-8.07%) ⬇️
node/processingOnlyNode/coreComponents.go 49.43% <100.00%> (+6.81%) ⬆️
node/processingOnlyNode/storageService.go 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

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

return nil, err
}

// TODO should call this
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO still relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

managedPeerMonitor common.ManagedPeersMonitor
}

func CreateStatusComponentsHolder(shardID uint32) (factory.StatusComponentsHolder, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

missing comments on all exported items in this file

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


// ArgsStateComponents will hold the components needed for state components
type ArgsStateComponents struct {
Cfg config.Config
Copy link
Contributor

Choose a reason for hiding this comment

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

might rename to Config

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

Core: args.CoreComponents,
StatusCore: args.StatusCore,
StorageService: args.StoreService,
ProcessingMode: 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

might replace 0 with a constant

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

@iulianpascalau iulianpascalau merged commit f3597b2 into feat/test-only-processor-node Sep 12, 2023
5 checks passed
@iulianpascalau iulianpascalau deleted the state-core-and-state-components branch September 12, 2023 09:19
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