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

chore(cleanup): Finish removing the AppConfig singleton and move Options processing to the config package #630

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

mcamou
Copy link
Contributor

@mcamou mcamou commented Nov 13, 2024

Description

After #623, #625 and #626, this is the final cleanup step. Our code is now singleton-free, and the circular dependencies that prevented us from moving Options processing to the config package are no more.

Notes for Reviewers

Die, singletons, die!!!!!

Signed commits

  • Yes, I signed my commits.

@mcamou mcamou requested a review from a team November 13, 2024 15:57
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 18.39080% with 71 lines in your changes missing coverage. Please review.

Project coverage is 12.76%. Comparing base (5d12c5e) to head (a705d53).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
node/options.go 0.00% 24 Missing ⚠️
pkg/config/app.go 0.00% 20 Missing ⚠️
cmd/masa-node/main.go 0.00% 12 Missing ⚠️
node/oracle_node_listener.go 0.00% 6 Missing ⚠️
node/oracle_node.go 0.00% 4 Missing ⚠️
pkg/workers/types/work_types.go 0.00% 2 Missing ⚠️
node/protocol.go 0.00% 1 Missing ⚠️
pkg/pubsub/manager.go 50.00% 1 Missing ⚠️
pkg/workers/worker_manager.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #630      +/-   ##
==========================================
+ Coverage   10.92%   12.76%   +1.83%     
==========================================
  Files          93       93              
  Lines        6708     6739      +31     
==========================================
+ Hits          733      860     +127     
+ Misses       5894     5804      -90     
+ Partials       81       75       -6     

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

@mcamou
Copy link
Contributor Author

mcamou commented Nov 13, 2024

I was having trouble with some tests after moving the Options processing to Config, so I'm going step by step. The first commit is JUST removing the singleton.

Copy link
Contributor

@mudler mudler left a comment

Choose a reason for hiding this comment

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

👍 Loving it!

@mcamou mcamou merged commit cc24d57 into main Nov 15, 2024
13 checks passed
@mcamou mcamou deleted the mc/rm-singleton-2 branch November 15, 2024 07:57
Copy link
Contributor

@restevens402 restevens402 left a comment

Choose a reason for hiding this comment

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

The changes look good. Nice to have the singletons removed

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.

3 participants