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: new command to save state files and upload state files #849

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

Conversation

JeffreyDallas
Copy link
Contributor

@JeffreyDallas JeffreyDallas commented Nov 20, 2024

Description

This pull request changes the following:

  • add new subcommand to node command to download state files
  • add new flag to node start to upload zipped state file before node start

Related Issues

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas changed the base branch from main to 00847-D-fix-node-logs November 20, 2024 02:32
Copy link
Contributor

github-actions bot commented Nov 20, 2024

Unit Test Results - Linux

  1 files  ±0   36 suites  ±0   4s ⏱️ -1s
109 tests ±0  109 ✅ ±0  0 💤 ±0  0 ❌ ±0 
118 runs  ±0  118 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 5425f5c. ± Comparison against base commit 5e1c652.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Nov 20, 2024

Unit Test Results - Windows

  1 files  ±0   36 suites  ±0   12s ⏱️ ±0s
109 tests ±0  109 ✅ ±0  0 💤 ±0  0 ❌ ±0 
118 runs  ±0  118 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 5425f5c. ± Comparison against base commit 5e1c652.

♻️ This comment has been updated with latest results.

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Base automatically changed from 00847-D-fix-node-logs to main November 20, 2024 12:59
@jeromy-cannon
Copy link
Contributor

Should this be in draft status? You have it open, not sure if I should be reviewing it. Your description is missing in the PR. You have a lot of merge conflicts, also.

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas requested a review from a team as a code owner November 21, 2024 15:24
…upload-state

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>

# Conflicts:
#	src/commands/node/configs.ts
#	src/commands/node/flags.ts
#	test/e2e/commands/node_local_hedera.test.ts
#	test/test_util.ts
Copy link
Contributor

E2E Test Report

 16 files  109 suites   1h 18m 26s ⏱️
232 tests 232 ✅ 0 💤 0 ❌
235 runs  235 ✅ 0 💤 0 ❌

Results for commit ba0d524.

1 similar comment
Copy link
Contributor

E2E Test Report

 16 files  109 suites   1h 18m 26s ⏱️
232 tests 232 ✅ 0 💤 0 ❌
235 runs  235 ✅ 0 💤 0 ❌

Results for commit ba0d524.

Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 7fa86ad1 89.71%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (7fa86ad) Report Missing Report Missing Report Missing
Head commit (ba0d524) 14453 12639 87.45%

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 (#849) 136 122 89.71%

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

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@@ -53,17 +58,37 @@ nvm use lts/hydrogen

* Run `npm install -g @hashgraph/solo`

## Setup Kubernetes cluster
## Quick Start Guide
User can use one of the following three command to quickly deploy a standalone test network.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nathan I were talking about this. This is more of a quick start for a developer who has checked out our repo and has all of the necessary pre-reqs.

The readme page goes on our npmjs page, and would be misleading, since I don't believe the task command would work out of the box without first installing Task somehow. and then would require everything to be built, etc.

Copy link
Contributor Author

@JeffreyDallas JeffreyDallas Nov 22, 2024

Choose a reason for hiding this comment

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

Add instructions to install kind, task and dependencies before using task commands

describe('Node for hedera app should have started successfully', () => {
hederaK8 = bootstrapResp.opts.k8

it('save the state and restart the node with saved state', async function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

are we able to validate that after the state is restored that the new accounts still exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added logic to check account balance after restart from state file

JeffreyDallas and others added 11 commits November 22, 2024 09:36
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas
Copy link
Contributor Author

Added logic to check account balance after restart from state file

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
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.

Be able to launch a network from saved state
2 participants