Skip to content

chore: account init to update node admin key #1373

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

Merged
merged 10 commits into from
Feb 15, 2025
Merged

Conversation

JeffreyDallas
Copy link
Contributor

@JeffreyDallas JeffreyDallas commented Feb 12, 2025

Description

This pull request changes the following:

  • account init to update node admin key with NodeUpdateTransaction, then save to k8 secret
  • load adminKey from k8 secret first other wise, load default genesis key

Related Issues

Signed-off-by: Jeffrey Tang <[email protected]>
Signed-off-by: Jeffrey Tang <[email protected]>

# Conflicts:
#	src/commands/account.ts
@JeffreyDallas JeffreyDallas requested review from leninmehedy and a team as code owners February 12, 2025 15:36
@JeffreyDallas JeffreyDallas marked this pull request as draft February 12, 2025 15:36
Copy link
Contributor

github-actions bot commented Feb 12, 2025

Unit Test Results - Linux

  1 files  ±0   62 suites  ±0   1s ⏱️ ±0s
241 tests ±0  241 ✅ ±0  0 💤 ±0  0 ❌ ±0 
250 runs  ±0  250 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 472ee17. ± Comparison against base commit 370f57b.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Feb 12, 2025

Unit Test Results - Windows

  1 files  ±0   62 suites  ±0   2s ⏱️ -1s
241 tests ±0  241 ✅ ±0  0 💤 ±0  0 ❌ ±0 
250 runs  ±0  250 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 472ee17. ± Comparison against base commit 370f57b.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Feb 12, 2025

E2E Test Report

 17 files  ±0  126 suites  ±0   1h 36m 18s ⏱️ +26s
272 tests +2  272 ✅ +2  0 💤 ±0  0 ❌ ±0 
287 runs  +2  287 ✅ +2  0 💤 ±0  0 ❌ ±0 

Results for commit 472ee17. ± Comparison against base commit 370f57b.

♻️ This comment has been updated with latest results.

Copy link

codacy-production bot commented Feb 12, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.03% (target: -1.00%) 93.02%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (370f57b) 25209 21362 84.74%
Head commit (472ee17) 25284 (+75) 21432 (+70) 84.77% (+0.03%)

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 (#1373) 86 80 93.02%

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 Feb 12, 2025

Codecov Report

Attention: Patch coverage is 93.02326% with 6 lines in your changes missing coverage. Please review.

Project coverage is 83.65%. Comparing base (370f57b) to head (472ee17).
Report is 96 commits behind head on main.

Files with missing lines Patch % Lines
src/commands/account.ts 95.23% 3 Missing ⚠️
src/commands/node/tasks.ts 84.21% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1373      +/-   ##
==========================================
+ Coverage   83.62%   83.65%   +0.03%     
==========================================
  Files         132      132              
  Lines       25209    25284      +75     
  Branches     1663     1753      +90     
==========================================
+ Hits        21081    21152      +71     
+ Misses       4099     4000      -99     
- Partials       29      132     +103     
Files with missing lines Coverage Δ
src/core/templates.ts 80.14% <100.00%> (+0.28%) ⬆️
src/commands/account.ts 77.68% <95.23%> (+1.53%) ⬆️
src/commands/node/tasks.ts 93.68% <84.21%> (-0.06%) ⬇️

... and 28 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JeffreyDallas JeffreyDallas marked this pull request as ready for review February 12, 2025 17:48
Copy link
Contributor

@jeromy-cannon jeromy-cannon left a comment

Choose a reason for hiding this comment

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

Need to use NodeUpdateTransaction to update each of the node's admin keys.

@jeromy-cannon jeromy-cannon added the PR: Unresolved Comments A pull request where there are comments and they need to be resolved. label Feb 12, 2025
@jeromy-cannon jeromy-cannon added the PR: Merge Conflicts A pull request that has merge conflicts that need to be resolved. label Feb 14, 2025
Signed-off-by: Jeffrey Tang <[email protected]>
…node-adminkey

Signed-off-by: Jeffrey Tang <[email protected]>

# Conflicts:
#	src/commands/account.ts
#	src/commands/node/tasks.ts
Signed-off-by: Jeffrey Tang <[email protected]>
Signed-off-by: Jeffrey Tang <[email protected]>
@JeffreyDallas JeffreyDallas added PR: Needs Team Approval A pull request that needs review from a team member. and removed PR: Merge Conflicts A pull request that has merge conflicts that need to be resolved. labels Feb 15, 2025
Signed-off-by: Jeffrey Tang <[email protected]>
@jeromy-cannon jeromy-cannon removed PR: Needs Team Approval A pull request that needs review from a team member. PR: Unresolved Comments A pull request where there are comments and they need to be resolved. labels Feb 15, 2025
@jeromy-cannon jeromy-cannon added the PR: Ready to Merge A pull request that is ready to merge. label Feb 15, 2025
@JeffreyDallas JeffreyDallas merged commit f3f7958 into main Feb 15, 2025
43 checks passed
@JeffreyDallas JeffreyDallas deleted the 00935-D-node-adminkey branch February 15, 2025 18:30
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.35.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.35.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
PR: Ready to Merge A pull request that is ready to merge. released on @0.35.x released
Projects
None yet
3 participants