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

feat(remote-config): save reusable solo flags in remoteconfig #1191

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

instamenta
Copy link
Contributor

@instamenta instamenta commented Jan 21, 2025

Description

adds new class CommonFlagsDataWrapper to handle keeping the state of the flags inside the remote config, it's added to the middleware which loads and and it will populate the flags if needed.

Related Issues

…mote config common flags data wrapper and fix failing tests

Signed-off-by: instamenta <[email protected]>
…re type imports because they are impossible to fix in the context of the remote config

Signed-off-by: instamenta <[email protected]>
@instamenta instamenta self-assigned this Jan 21, 2025
@instamenta instamenta requested review from leninmehedy and a team as code owners January 21, 2025 14:03
@instamenta instamenta linked an issue Jan 21, 2025 that may be closed by this pull request
Copy link
Contributor

github-actions bot commented Jan 21, 2025

Unit Test Results - Linux

  1 files  ±0   59 suites  ±0   6s ⏱️ +2s
233 tests ±0  233 ✅ ±0  0 💤 ±0  0 ❌ ±0 
238 runs  ±0  238 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 1e270e1. ± Comparison against base commit 89c557a.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 21, 2025

Unit Test Results - Windows

  1 files  ±0   59 suites  ±0   14s ⏱️ +2s
233 tests ±0  233 ✅ ±0  0 💤 ±0  0 ❌ ±0 
238 runs  ±0  238 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 1e270e1. ± Comparison against base commit 89c557a.

♻️ This comment has been updated with latest results.

…olo-flags-in-remoteconfig

# Conflicts:
#	src/core/config/remote/remote_config_manager.ts
Copy link
Contributor

github-actions bot commented Jan 21, 2025

E2E Test Report

 17 files  ±0  126 suites  ±0   1h 27m 52s ⏱️ +7s
258 tests ±0  258 ✅ ±0  0 💤 ±0  0 ❌ ±0 
269 runs  ±0  269 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9722eee. ± Comparison against base commit 89c557a.

♻️ This comment has been updated with latest results.

Copy link

codacy-production bot commented Jan 21, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.01% (target: -1.00%) 85.42%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (89c557a) 21412 17873 83.47%
Head commit (9722eee) 21531 (+119) 17970 (+97) 83.46% (-0.01%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1191) 144 123 85.42%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Copy link

codecov bot commented Jan 21, 2025

Codecov Report

Attention: Patch coverage is 84.02778% with 23 lines in your changes missing coverage. Please review.

Project coverage is 82.63%. Comparing base (89c557a) to head (9722eee).

Files with missing lines Patch % Lines
src/core/config/remote/remote_config_manager.ts 38.88% 11 Missing ⚠️
...rc/core/config/remote/common_flags_data_wrapper.ts 90.81% 9 Missing ⚠️
src/core/config/remote/remote_config_tasks.ts 50.00% 2 Missing ⚠️
...c/core/config/remote/remote_config_data_wrapper.ts 94.11% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1191      +/-   ##
==========================================
- Coverage   82.66%   82.63%   -0.04%     
==========================================
  Files          77       78       +1     
  Lines       21440    21531      +91     
  Branches     1914     1856      -58     
==========================================
+ Hits        17724    17792      +68     
- Misses       3593     3602       +9     
- Partials      123      137      +14     
Files with missing lines Coverage Δ
src/commands/mirror_node.ts 70.49% <ø> (-0.04%) ⬇️
src/core/config/remote/components_data_wrapper.ts 84.81% <100.00%> (-0.58%) ⬇️
src/core/config/remote/metadata.ts 100.00% <100.00%> (ø)
...c/core/config/remote/remote_config_data_wrapper.ts 92.04% <94.11%> (+0.61%) ⬆️
src/core/config/remote/remote_config_tasks.ts 78.72% <50.00%> (-1.28%) ⬇️
...rc/core/config/remote/common_flags_data_wrapper.ts 90.81% <90.81%> (ø)
src/core/config/remote/remote_config_manager.ts 66.93% <38.88%> (-1.03%) ⬇️

... and 6 files with indirect coverage changes

Impacted file tree graph

…es when passed to command, since they are overriden on configManager.update which is called at the beggining of all commands

Signed-off-by: instamenta <[email protected]>
…g the post middleware command execution

Signed-off-by: instamenta <[email protected]>
@instamenta instamenta added PR: Needs Approval A pull request that needs reviews and approvals. and removed PR: Needs Approval A pull request that needs reviews and approvals. labels Jan 22, 2025
@jeromy-cannon jeromy-cannon added the PR: Merge Conflicts A pull request that has merge conflicts that need to be resolved. label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Merge Conflicts A pull request that has merge conflicts that need to be resolved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

save reusable solo flags in RemoteConfig
2 participants