Skip to content

fix: updates to accommodate haproxy changes in FST charts #321

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 23 commits into from
May 30, 2024

Conversation

jeromy-cannon
Copy link
Contributor

@jeromy-cannon jeromy-cannon commented May 22, 2024

Description

This pull request changes the following:

  • use Running phase for proxy check during solo network deploy
  • remove haproxy recycle pod logic, instead use waitForPodReady which uses the PodCondition[Ready] = true that the haproxy is now setting based on the startupProbe
  • removed checkNetworkNodeProxyUp
  • use in test cases HEDERA_PLATFORM_VERSION = 'v0.49.0-alpha.2' since this is the first version to support FQDN correctly
  • enhanced prepareAddressBookBase64 to convert FQDN to IP addresses to support Mirror Node
  • enhanced nodeClient creation to set more robust timeouts and backoffs
  • refactored getNodeServiceMap() to use a new class NetworkNodeServices to strongly type variables and give it more attributes that can be provide more reuse
  • updated prepareConfigTxt() to use accountId from services instead of dynamically constructing it which could be wrong in some scenarios
  • added the ability to set a local environment variable SOLO_FST_CHARTS_DIR to point to the developers FST chart directory for running tests locally against a chart that hasn't been released yet

Related Issues

Copy link
Contributor

github-actions bot commented May 22, 2024

Unit Test Results - Linux

  1 files   19 suites   1m 43s ⏱️
122 tests 122 ✅ 0 💤 0 ❌
147 runs  147 ✅ 0 💤 0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented May 22, 2024

E2E Mirror Node Tests Coverage Report

8 tests   8 ✅  5m 30s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented May 22, 2024

Unit Test Results - Windows

  1 files   19 suites   1m 54s ⏱️
122 tests 122 ✅ 0 💤 0 ❌
147 runs  147 ✅ 0 💤 0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented May 22, 2024

E2E Node PEM Stop Add Tests Coverage Report

 1 files   1 suites   8m 33s ⏱️
17 tests 17 ✅ 0 💤 0 ❌
19 runs  19 ✅ 0 💤 0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented May 22, 2024

E2E Tests Coverage Report

54 tests   54 ✅  4m 50s ⏱️
 9 suites   0 💤
 1 files     0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented May 22, 2024

E2E Relay Tests Coverage Report

1 files  1 suites   3m 13s ⏱️
5 tests 5 ✅ 0 💤 0 ❌
6 runs  6 ✅ 0 💤 0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented May 22, 2024

E2E Node PFX Kill Add Tests Coverage Report

 1 files   1 suites   10m 38s ⏱️
17 tests 17 ✅ 0 💤 0 ❌
19 runs  19 ✅ 0 💤 0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented May 22, 2024

E2E Node Local Build Tests Coverage Report

8 tests   8 ✅  5m 12s ⏱️
2 suites  0 💤
1 files    0 ❌

Results for commit b29878c.

♻️ This comment has been updated with latest results.

@jeromy-cannon jeromy-cannon self-assigned this May 23, 2024
@jeromy-cannon jeromy-cannon force-pushed the 00312-haproxy-changes branch from 5dd90f3 to 413741d Compare May 23, 2024 10:34
@jeromy-cannon jeromy-cannon force-pushed the 00312-haproxy-changes branch 2 times, most recently from 1e70c58 to 3142544 Compare May 28, 2024 11:37
Copy link

codacy-production bot commented May 29, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 7b4e5b71 96.30%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (7b4e5b7) Report Missing Report Missing Report Missing
Head commit (b29878c) 3375 2752 81.54%

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 (#321) 162 156 96.30%

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 will stop sending the deprecated coverage status from 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.

Copy link

codecov bot commented May 29, 2024

Codecov Report

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

Project coverage is 82.23%. Comparing base (0efe626) to head (b29878c).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #321      +/-   ##
==========================================
+ Coverage   81.65%   82.23%   +0.58%     
==========================================
  Files          34       35       +1     
  Lines        3973     4020      +47     
  Branches      628      638      +10     
==========================================
+ Hits         3244     3306      +62     
+ Misses        729      714      -15     
Files Coverage Δ
src/commands/flags.mjs 94.73% <ø> (ø)
src/commands/mirror_node.mjs 68.80% <100.00%> (ø)
src/commands/network.mjs 51.92% <100.00%> (ø)
src/core/config_manager.mjs 91.56% <100.00%> (ø)
src/core/constants.mjs 94.73% <100.00%> (+0.23%) ⬆️
src/core/k8.mjs 87.36% <ø> (-0.45%) ⬇️
src/core/platform_installer.mjs 89.63% <100.00%> (+0.06%) ⬆️
src/core/templates.mjs 83.11% <100.00%> (+1.68%) ⬆️
test/e2e/e2e_node_util.js 88.60% <100.00%> (+0.44%) ⬆️
version.mjs 100.00% <100.00%> (ø)
... and 4 more

Impacted file tree graph

Signed-off-by: Jeromy Cannon <[email protected]>
Signed-off-by: Jeromy Cannon <[email protected]>
Signed-off-by: Jeromy Cannon <[email protected]>
@jeromy-cannon jeromy-cannon force-pushed the 00312-haproxy-changes branch from 625708b to 205ecd6 Compare May 29, 2024 18:52
Signed-off-by: Jeromy Cannon <[email protected]>
Signed-off-by: Jeromy Cannon <[email protected]>
…ress to support mirror node

Signed-off-by: Jeromy Cannon <[email protected]>
…raph/sdk release with the log file constructor changes

Signed-off-by: Jeromy Cannon <[email protected]>
@jeromy-cannon jeromy-cannon marked this pull request as ready for review May 29, 2024 21:31
@jeromy-cannon jeromy-cannon requested review from a team and leninmehedy as code owners May 29, 2024 21:31
Signed-off-by: Jeromy Cannon <[email protected]>
Signed-off-by: Jeromy Cannon <[email protected]>
Copy link
Contributor

@leninmehedy leninmehedy left a comment

Choose a reason for hiding this comment

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

Thanks

@jeromy-cannon jeromy-cannon merged commit 8997849 into main May 30, 2024
31 checks passed
@jeromy-cannon jeromy-cannon deleted the 00312-haproxy-changes branch May 30, 2024 06:59
swirlds-automation added a commit that referenced this pull request May 31, 2024
## [0.26.0](v0.25.0...v0.26.0) (2024-05-31)

### Features

* mount application.env as a configMap ([#310](#310)) ([3158436](3158436))

### Bug Fixes

* fix freeze timestamp for node add command ([#327](#327)) ([0aedeb1](0aedeb1))
* refactor waitForPod and waitForPodConditions to stabilize code timeouts during e2e tests ([#317](#317)) ([ca7b21b](ca7b21b))
* the wrong pod name  ([#322](#322)) ([5c50579](5c50579))
* updates to accommodate haproxy changes in FST charts ([#321](#321)) ([8997849](8997849))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.26.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.

Bug: E2E Node Test fails in pipeline with failed to recycle pod for podName haproxy-...
4 participants