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: separate explorer from mirror node install/uninstall #1177

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

Conversation

JeffreyDallas
Copy link
Contributor

Description

This pull request changes the following:

  • Create new command for explorer deploy and destroy
  • Update k8 waitingForPod with extra namespace parameter
  • Update mirror node e2e test

Related Issues

Signed-off-by: Jeffrey Tang <[email protected]>
Signed-off-by: Jeffrey Tang <[email protected]>
@JeffreyDallas JeffreyDallas requested review from leninmehedy and a team as code owners January 17, 2025 19:57
@JeffreyDallas JeffreyDallas self-assigned this Jan 17, 2025
Copy link
Contributor

github-actions bot commented Jan 17, 2025

Unit Test Results - Linux

  1 files  ±0   59 suites  ±0   3s ⏱️ -1s
233 tests ±0  233 ✅ ±0  0 💤 ±0  0 ❌ ±0 
238 runs  ±0  238 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b0e139f. ± Comparison against base commit 473a650.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jan 17, 2025

Unit Test Results - Windows

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

Results for commit b0e139f. ± Comparison against base commit 473a650.

♻️ This comment has been updated with latest results.

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

github-actions bot commented Jan 17, 2025

E2E Test Report

 17 files  ±0  126 suites  ±0   1h 28m 28s ⏱️ + 2m 34s
258 tests ±0  258 ✅ ±0  0 💤 ±0  0 ❌ ±0 
269 runs  ±0  269 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b0e139f. ± Comparison against base commit 473a650.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
mirror node deploy should success ‑ E2E Test Suite for 'mirror-cmd-e2e' mirror-cmd-e2e MirrorNodeCommand mirror node deploy should success
mirror node and explorer deploy should success ‑ E2E Test Suite for 'mirror-cmd-e2e' mirror-cmd-e2e MirrorNodeCommand mirror node and explorer deploy should success

♻️ This comment has been updated with latest results.

Copy link

codacy-production bot commented Jan 17, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.41% (target: -1.00%) 79.96%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (473a650) 21396 17864 83.49%
Head commit (b0e139f) 21730 (+334) 18232 (+368) 83.90% (+0.41%)

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 (#1177) 514 411 79.96%

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 17, 2025

Codecov Report

Attention: Patch coverage is 77.82101% with 114 lines in your changes missing coverage. Please review.

Project coverage is 83.02%. Comparing base (473a650) to head (b0e139f).

Files with missing lines Patch % Lines
src/commands/explorer.ts 76.89% 99 Missing and 11 partials ⚠️
src/core/k8.ts 87.87% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1177      +/-   ##
==========================================
+ Coverage   82.69%   83.02%   +0.33%     
==========================================
  Files          77       78       +1     
  Lines       21424    21730     +306     
  Branches     1515     1833     +318     
==========================================
+ Hits        17717    18042     +325     
+ Misses       3641     3573      -68     
- Partials       66      115      +49     
Files with missing lines Coverage Δ
src/commands/flags.ts 75.65% <ø> (+0.19%) ⬆️
src/commands/mirror_node.ts 75.65% <100.00%> (+5.12%) ⬆️
src/core/constants.ts 97.35% <100.00%> (+0.01%) ⬆️
src/core/k8.ts 85.76% <87.87%> (+0.59%) ⬆️
src/commands/explorer.ts 76.89% <76.89%> (ø)

... and 36 files with indirect coverage changes

Impacted file tree graph

@jeromy-cannon jeromy-cannon added the PR: Needs Approval A pull request that needs reviews and approvals. label Jan 17, 2025
Comment on lines -150 to -161
// Install ingress controller only if it's not already present
if (!(await this.k8.isIngressControllerInstalled())) {
valuesArg += ' --set ingress.enabled=true';
valuesArg += ' --set haproxyIngressController.enabled=true';
valuesArg += ` --set ingressClassName=${namespace}-hedera-explorer-ingress-class`;
valuesArg += ` --set-json 'ingress.hosts[0]={"host":"${hederaExplorerTlsHostName}","paths":[{"path":"/","pathType":"Prefix"}]}'`;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, @JeffreyDallas, in #929 we will need this logic when the new --enable-ingress is set to true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These line are moved to explorer command, why still need it in mirror command?

I assume this is how it work after implementing enable ingress flag/feature:
1 . deploy mirror
2. deploy explorer with enable ingress set to true
solo cluster will be updated with new valueArges showing in above 4 lines , ingress controller will be installed
then explorer chart will be installed

jeromy-cannon
jeromy-cannon previously approved these changes Jan 17, 2025
@jeromy-cannon jeromy-cannon added PR: Merge Conflicts A pull request that has merge conflicts that need to be resolved. PR: Ready to Merge A pull request that is ready to merge. and removed PR: Needs Approval A pull request that needs reviews and approvals. labels Jan 17, 2025
…explorer

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

# Conflicts:
#	src/commands/mirror_node.ts
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. PR: Ready to Merge A pull request that is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

split mirror node explorer install separate from mirror node install so they can go in separate clusters
2 participants