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: add node refresh subcommand #211

Merged
merged 15 commits into from
Apr 10, 2024
Merged

Conversation

jeromy-cannon
Copy link
Contributor

@jeromy-cannon jeromy-cannon commented Apr 8, 2024

Description

This pull request changes the following:

  • adds the solo node refresh subcommand
  • fix .github/workflows/flow-update-readme.yaml typo
  • add Jest default reporter summary threshold
  • added better error handling for checkNetworkNodeProxyUp
  • enhanced stopPortForward to test for port to be closed before continuing
  • updated config.txt to include fully qualified DNS from Kube DNS
  • added dev mode to test loggers for better reporting on failures

Related Issues

Copy link
Contributor

github-actions bot commented Apr 8, 2024

Unit Test Results

  1 files  ±0   17 suites  ±0   1m 19s ⏱️ -16s
114 tests ±0  114 ✅ ±0  0 💤 ±0  0 ❌ ±0 
139 runs  ±0  139 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b27c0f5. ± Comparison against base commit 7d2499e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Apr 8, 2024

E2E Test Results

 1 files  ± 0  10 suites  ±0   13m 9s ⏱️ + 2m 8s
84 tests +10  84 ✅ +10  0 💤 ±0  0 ❌ ±0 
86 runs  +10  86 ✅ +10  0 💤 ±0  0 ❌ ±0 

Results for commit b27c0f5. ± Comparison against base commit 7d2499e.

This pull request removes 14 and adds 24 tests. Note that renamed tests count towards both.
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should cleanup previous deployment ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should cleanup previous deployment
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should succeed with network deploy ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should succeed with network deploy
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should succeed with node setup command ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should succeed with node setup command
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should succeed with node start command ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pem] should succeed with node start command
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should cleanup previous deployment ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should cleanup previous deployment
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should succeed with network deploy ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should succeed with network deploy
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should succeed with node setup command ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should succeed with node setup command
NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should succeed with node start command ‑ NodeCommand Bootstrap network for test [release v0.47.0-alpha.0, keyFormat: pfx] should succeed with node start command
NodeCommand Node should start successfully [release pem, keyFormat: v0.47.0-alpha.0] Account creation should succeed ‑ NodeCommand Node should start successfully [release pem, keyFormat: v0.47.0-alpha.0] Account creation should succeed
NodeCommand Node should start successfully [release pem, keyFormat: v0.47.0-alpha.0] Balance query should succeed ‑ NodeCommand Node should start successfully [release pem, keyFormat: v0.47.0-alpha.0] Balance query should succeed
…
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should cleanup previous deployment ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should cleanup previous deployment
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should succeed with network deploy ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should succeed with network deploy
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should succeed with node setup command ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should succeed with node setup command
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should succeed with node start command ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pem] should succeed with node start command
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should cleanup previous deployment ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should cleanup previous deployment
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should succeed with network deploy ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should succeed with network deploy
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should succeed with node setup command ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should succeed with node setup command
NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should succeed with node start command ‑ NodeCommand Bootstrap network for test [release v0.49.0-alpha.2, keyFormat: pfx] should succeed with node start command
NodeCommand Node should refresh successfully [mode kill, release v0.49.0-alpha.2, keyFormat: pfx] Account creation should succeed ‑ NodeCommand Node should refresh successfully [mode kill, release v0.49.0-alpha.2, keyFormat: pfx] Account creation should succeed
NodeCommand Node should refresh successfully [mode kill, release v0.49.0-alpha.2, keyFormat: pfx] Balance query should succeed ‑ NodeCommand Node should refresh successfully [mode kill, release v0.49.0-alpha.2, keyFormat: pfx] Balance query should succeed
…

♻️ This comment has been updated with latest results.

Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Copy link

codacy-production bot commented Apr 9, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.83% (target: -1.00%) 75.44%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (7d2499e) 2870 2221 77.39%
Head commit (b27c0f5) 2988 (+118) 2337 (+116) 78.21% (+0.83%)

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 (#211) 171 129 75.44%

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

You may notice some variations in coverage metrics with the latest Coverage engine update. For more details, visit the documentation

Copy link

codecov bot commented Apr 9, 2024

Codecov Report

Attention: Patch coverage is 76.88442% with 46 lines in your changes are missing coverage. Please review.

Project coverage is 77.93%. Comparing base (7d2499e) to head (b27c0f5).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #211      +/-   ##
==========================================
+ Coverage   77.13%   77.93%   +0.80%     
==========================================
  Files          33       33              
  Lines        3415     3553     +138     
  Branches      636      650      +14     
==========================================
+ Hits         2634     2769     +135     
- Misses        781      784       +3     
Files Coverage Δ
src/core/platform_installer.mjs 89.63% <100.00%> (+0.12%) ⬆️
src/core/templates.mjs 81.42% <100.00%> (+1.12%) ⬆️
test/test_util.js 90.58% <100.00%> (ø)
src/core/helpers.mjs 96.34% <75.00%> (-1.10%) ⬇️
src/core/k8.mjs 85.29% <60.37%> (-1.84%) ⬇️
src/commands/node.mjs 75.83% <81.25%> (+7.80%) ⬆️

Impacted file tree graph

Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
@jeromy-cannon jeromy-cannon marked this pull request as ready for review April 9, 2024 20:15
@jeromy-cannon jeromy-cannon requested review from a team and leninmehedy as code owners April 9, 2024 20:15
…p with different configurations

Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
src/commands/node.mjs Show resolved Hide resolved
src/commands/node.mjs Show resolved Hide resolved
src/core/helpers.mjs Show resolved Hide resolved
@jeromy-cannon jeromy-cannon merged commit d1017d8 into main Apr 10, 2024
23 of 24 checks passed
@jeromy-cannon jeromy-cannon deleted the 00096-solo-node-refresh branch April 10, 2024 12:15
jeromy-cannon added a commit that referenced this pull request Apr 10, 2024
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
JeffreyDallas pushed a commit that referenced this pull request Apr 10, 2024
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
jeromy-cannon added a commit that referenced this pull request Apr 11, 2024
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
jeromy-cannon added a commit that referenced this pull request Apr 15, 2024
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Swirlds Automation <swirlds-eng-automation@swirlds.com>
Co-authored-by: Swirlds Automation <swirlds-eng-automation@swirlds.com>
swirlds-automation added a commit that referenced this pull request Apr 19, 2024
## [0.24.0](v0.23.0...v0.24.0) (2024-04-19)

### Features

* add `solo account create` account alias support ([#227](#227)) ([fe865f8](fe865f8))
* add node refresh subcommand ([#211](#211)) ([d1017d8](d1017d8))
* add node refresh subcommand ([#211](#211)) ([d38918c](d38918c))
* adding some type check ([#217](#217)) ([d055496](d055496))
* allow solo to deploy pre-configured resource profiles ([#175](#175)) ([fef8a48](fef8a48))

### Bug Fixes

* add recursive option to mkdir ([#215](#215)) ([9d9a126](9d9a126))
* address PR comments from [#211](#211) ([#224](#224)) ([6cc237c](6cc237c))
* return chart-path correctly when chart-directory is specified ([#212](#212)) ([90616cc](90616cc))
* update how documented generated ([#216](#216)) ([7d2499e](7d2499e))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement node refresh command
3 participants