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 local build support for node add command #509

Merged
merged 6 commits into from
Aug 30, 2024

Conversation

JeffreyDallas
Copy link
Contributor

@JeffreyDallas JeffreyDallas commented Aug 23, 2024

Description

This pull request changes the following:

  • added new e2e test node-add-local.test.mjs
  • moved original function of node-add.test.mjs to a shared file test_add.mjs

Related Issues

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas requested review from a team and leninmehedy as code owners August 23, 2024 00:28
Copy link
Contributor

github-actions bot commented Aug 23, 2024

Unit Test Results - Linux

  1 files  ±0   19 suites  ±0   45s ⏱️ -1s
126 tests ±0  126 ✅ ±0  0 💤 ±0  0 ❌ ±0 
152 runs  ±0  152 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

Unit Test Results - Windows

  1 files  ±0   19 suites  ±0   1m 32s ⏱️ ±0s
126 tests ±0  126 ✅ ±0  0 💤 ±0  0 ❌ ±0 
152 runs  ±0  152 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

E2E Node PEM Stop Tests Coverage Report

12 tests  ±0   12 ✅ ±0   2m 32s ⏱️ -4s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

E2E Relay Tests Coverage Report

1 files  ±0  1 suites  ±0   2m 44s ⏱️ ±0s
5 tests ±0  5 ✅ ±0  0 💤 ±0  0 ❌ ±0 
6 runs  ±0  6 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

E2E Node PFX Kill Tests Coverage Report

12 tests  ±0   12 ✅ ±0   2m 52s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

E2E Tests Coverage Report

57 tests  ±0   57 ✅ ±0   3m 18s ⏱️ -4s
 9 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

E2E Node Local Build Tests Coverage Report

8 tests  ±0   8 ✅ ±0   2m 45s ⏱️ +2s
2 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

E2E Mirror Node Tests Coverage Report

 1 files  ±0   1 suites  ±0   3m 54s ⏱️ -3s
12 tests ±0  12 ✅ ±0  0 💤 ±0  0 ❌ ±0 
13 runs  ±0  13 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 23, 2024

E2E Node Add Tests Coverage Report

20 tests  +10   20 ✅ +10   14m 17s ⏱️ + 7m 45s
 2 suites + 1    0 💤 ± 0 
 1 files   ± 0    0 ❌ ± 0 

Results for commit 8505adc. ± Comparison against base commit b7c07d9.

This pull request removes 10 and adds 20 tests. Note that renamed tests count towards both.
Node add Account creation should succeed ‑ Node add Account creation should succeed
Node add Balance query should succeed ‑ Node add Balance query should succeed
Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should cleanup previous deployment ‑ Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should cleanup previous deployment
Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with network deploy ‑ Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with network deploy
Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node setup command ‑ Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node setup command
Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node start command ‑ Node add Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node start command
Node add cache current version of private keys ‑ Node add cache current version of private keys
Node add existing nodes private keys should not have changed ‑ Node add existing nodes private keys should not have changed
Node add should add a new node to the network successfully ‑ Node add should add a new node to the network successfully
Node add should succeed with init command ‑ Node add should succeed with init command
Node add with hedera local build Node add should success Account creation should succeed ‑ Node add with hedera local build Node add should success Account creation should succeed
Node add with hedera local build Node add should success Balance query should succeed ‑ Node add with hedera local build Node add should success Balance query should succeed
Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should cleanup previous deployment ‑ Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should cleanup previous deployment
Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with network deploy ‑ Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with network deploy
Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node setup command ‑ Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node setup command
Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node start command ‑ Node add with hedera local build Node add should success Bootstrap network for test [release v0.53.0-release-0.53.xff7c43d, keyFormat: pem] should succeed with node start command
Node add with hedera local build Node add should success cache current version of private keys ‑ Node add with hedera local build Node add should success cache current version of private keys
Node add with hedera local build Node add should success existing nodes private keys should not have changed ‑ Node add with hedera local build Node add should success existing nodes private keys should not have changed
Node add with hedera local build Node add should success should add a new node to the network successfully ‑ Node add with hedera local build Node add should success should add a new node to the network successfully
Node add with hedera local build Node add should success should succeed with init command ‑ Node add with hedera local build Node add should success should succeed with init command
…

♻️ This comment has been updated with latest results.

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
…node-add-local-build

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas marked this pull request as draft August 28, 2024 18:01
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas marked this pull request as ready for review August 30, 2024 03:27
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.25% (target: -1.00%) 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b7c07d9) 3696 3029 81.95%
Head commit (8505adc) 3747 (+51) 3080 (+51) 82.20% (+0.25%)

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 (#509) 47 47 100.00%

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 Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.88%. Comparing base (b7c07d9) to head (8505adc).
Report is 19 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #509      +/-   ##
==========================================
+ Coverage   81.71%   81.88%   +0.17%     
==========================================
  Files          35       36       +1     
  Lines        4429     4477      +48     
  Branches      753      754       +1     
==========================================
+ Hits         3619     3666      +47     
- Misses        810      811       +1     
Files with missing lines Coverage Δ
test/test_add.mjs 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Impacted file tree graph

@jeromy-cannon jeromy-cannon merged commit a7e778f into main Aug 30, 2024
41 checks passed
@jeromy-cannon jeromy-cannon deleted the 00430-D-node-add-local-build branch August 30, 2024 11:11
swirlds-automation added a commit that referenced this pull request Sep 6, 2024
## [0.29.0](v0.28.1...v0.29.0) (2024-09-06)

### Features

* add local build support for node add command ([#509](#509)) ([a7e778f](a7e778f))
* add node delete and update command ([#500](#500)) ([9f8549a](9f8549a))
* use k8s secrets to store node gossip and grpc tls keys and mount them ([#499](#499)) ([ede1842](ede1842))

### Bug Fixes

* added missing async/await where needed ([#551](#551)) ([d8e5032](d8e5032))
* improve types in JSDoc and fix typo in '/src/commands/account.mjs' ([#507](#507)) ([74c9e2c](74c9e2c))
* need to update agreement key together with signing key ([#539](#539)) ([f9b2e21](f9b2e21))
* removed the custom ip address logic and '@hashgraph/proto' ([#518](#518)) ([c81c76a](c81c76a))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.29.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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node add to support local build
3 participants