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

Data components and process components #5625

Merged
merged 8 commits into from Oct 5, 2023

Conversation

miiu96
Copy link
Contributor

@miiu96 miiu96 commented Oct 4, 2023

Reasoning behind the pull request

  • Process Components
  • Data 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 Oct 4, 2023

Codecov Report

Attention: 321 lines in your changes are missing coverage. Please review.

Comparison is base (3871638) 80.02% compared to head (b251610) 79.42%.
Report is 1 commits behind head on feat/test-only-processor-node.

❗ Current head b251610 differs from pull request most recent head 7b84d9f. Consider uploading reports for the commit 7b84d9f to get more accurate results

Additional details and impacted files
@@                        Coverage Diff                        @@
##           feat/test-only-processor-node    #5625      +/-   ##
=================================================================
- Coverage                          80.02%   79.42%   -0.61%     
=================================================================
  Files                                721      723       +2     
  Lines                              94703    95020     +317     
=================================================================
- Hits                               75786    75469     -317     
- Misses                             13519    14199     +680     
+ Partials                            5398     5352      -46     
Files Coverage Δ
node/chainSimulator/syncedMessenger.go 80.25% <33.33%> (-1.92%) ⬇️
node/chainSimulator/dataComponents.go 0.00% <0.00%> (ø)
node/chainSimulator/testOnlyProcessingNode.go 7.60% <0.00%> (-66.93%) ⬇️
node/chainSimulator/processComponents.go 0.00% <0.00%> (ø)

... and 10 files with indirect coverage changes

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

@miiu96 miiu96 marked this pull request as ready for review October 4, 2023 11:12
@miiu96 miiu96 self-assigned this Oct 4, 2023
iulianpascalau
iulianpascalau previously approved these changes Oct 5, 2023
if err != nil {
return nil, err
}
// TODO check if this is needed
Copy link
Contributor

Choose a reason for hiding this comment

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

can be a mock/disabled instance, no cache needed

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 removed.

}

// TODO check if this is needed
whiteListerVerifiedTxs, err := createWhiteListerVerifiedTxs(&args.Config)
Copy link
Contributor

Choose a reason for hiding this comment

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

can be a mock/disabled instance, no cache needed

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

return instance, nil
}

func createWhiteListerVerifiedTxs(generalConfig *config.Config) (process.WhiteListHandler, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can be removed

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

pathForMainConfig = "../../cmd/node/config/config.toml"
pathForEconomicsConfig = "../../cmd/node/config/economics.toml"
pathForGasSchedules = "../../cmd/node/config/gasSchedules"
nodesSetupConfig = "../../cmd/node/config/nodesSetup.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

as stated, we need to generate this along with the genesis.json file in a new PR. Also, we need to copy these files into a temporary directory because of this.

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 will change in the next PR

@@ -0,0 +1,18 @@
[
{
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we can provide an empty file for this. No need to deploy SCs at genesis time as this takes a lot of time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will change in the next PR because also have to change the genesis.json file

Copy link
Contributor

Choose a reason for hiding this comment

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

great

@miiu96 miiu96 merged commit b587f54 into feat/test-only-processor-node Oct 5, 2023
5 checks passed
@miiu96 miiu96 deleted the data-components-and-process branch October 5, 2023 11:14
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