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

fix(tests): start Kind cluster on demand if not having a kube config errors #624

Conversation

instamenta
Copy link
Contributor

@instamenta instamenta commented Sep 24, 2024

Description

Start Kind cluster on demand if not having a kube config errors

Related Issues

Note

This pull request might also render issue #360 obsolete

…rrors

Signed-off-by: instamenta <instamenta@abv.bg>
Signed-off-by: instamenta <instamenta@abv.bg>
Copy link
Contributor

github-actions bot commented Sep 24, 2024

Unit Test Results - Linux

  1 files  ±0   19 suites  ±0   28s ⏱️ -1s
119 tests ±0  119 ✅ ±0  0 💤 ±0  0 ❌ ±0 
145 runs  ±0  145 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c61b7bb. ± Comparison against base commit ed4ed88.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 24, 2024

Unit Test Results - Windows

  1 files  ±0   19 suites  ±0   55s ⏱️ -1s
119 tests ±0  119 ✅ ±0  0 💤 ±0  0 ❌ ±0 
145 runs  ±0  145 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c61b7bb. ± Comparison against base commit ed4ed88.

♻️ This comment has been updated with latest results.

Copy link
Contributor

E2E Test Report

 10 files  ±0   20 suites  ±0   49m 19s ⏱️ +29s
170 tests ±0  170 ✅ ±0  0 💤 ±0  0 ❌ ±0 
173 runs  ±0  173 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 68ae9b0. ± Comparison against base commit ed4ed88.

Copy link
Contributor

github-actions bot commented Sep 24, 2024

E2E Test Report

 10 files  ±0   20 suites  ±0   49m 9s ⏱️ +19s
170 tests ±0  170 ✅ ±0  0 💤 ±0  0 ❌ ±0 
173 runs  ±0  173 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit c61b7bb. ± Comparison against base commit ed4ed88.

♻️ This comment has been updated with latest results.

Copy link

codacy-production bot commented Sep 24, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.11% (target: -1.00%) 22.22%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (ed4ed88) 4070 3295 80.96%
Head commit (c61b7bb) 4083 (+13) 3301 (+6) 80.85% (-0.11%)

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 (#624) 9 2 22.22%

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 Sep 24, 2024

Codecov Report

Attention: Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 80.73%. Comparing base (ed4ed88) to head (c61b7bb).
Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
test/test_util.js 30.00% 6 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #624      +/-   ##
==========================================
- Coverage   80.83%   80.73%   -0.11%     
==========================================
  Files          37       37              
  Lines        4885     4895      +10     
  Branches      761      689      -72     
==========================================
+ Hits         3949     3952       +3     
- Misses        936      942       +6     
- Partials        0        1       +1     
Files with missing lines Coverage Δ
test/test_util.js 87.26% <30.00%> (-3.90%) ⬇️

Impacted file tree graph

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.

update so that unit test case can run without needing an active k8s cluster.

Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
@jeromy-cannon jeromy-cannon merged commit 538e40d into main Sep 30, 2024
35 of 37 checks passed
@jeromy-cannon jeromy-cannon deleted the 00359-bug-unit-tests-suite-fails-if-ran-without-having-a-kubernetes-cluster-running-locally-kube-config-exists branch September 30, 2024 17:17
swirlds-automation added a commit that referenced this pull request Oct 4, 2024
## [0.31.0](v0.30.1...v0.31.0) (2024-10-04)

### Features

* Add '--mirror-node-version' flag to override default mirror node version ([#616](#616)) ([e4932c4](e4932c4))
* add quiet flag ([#621](#621)) ([b068c8f](b068c8f))
* convert hugo docs workflow calls to use Taskfile task ([#642](#642)) ([ae8d8bb](ae8d8bb))
* ensured user-provided values file takes precedence over solo-generated values ([#615](#615)) ([1b0ffc9](1b0ffc9))
* **logging:** Add the new custom process output class and inject it into the default list renderer options ([#622](#622)) ([efa1783](efa1783))
* separate commands for solo node delete ([#597](#597)) ([b251276](b251276))
* Separate network upgrade and freeze from node update/add/delete command ([#628](#628)) ([9b17937](9b17937))

### Bug Fixes

* Direct calling of node stop and start commands ([#636](#636)) ([7749b04](7749b04))
* **docs:** resolve issues due to npx in taskfile for the custom-network-config example ([038e6df](038e6df))
* jsdoc failed but ci job not failed ([#608](#608)) ([3f838f6](3f838f6))
* specify jvm env variables explicitly for local profile ([#405](#405)) ([3db7e08](3db7e08))
* **tests:** start Kind cluster on demand if not having a kube config errors ([#624](#624)) ([538e40d](538e40d))
* upgrade eslint config away from abandoned plugin ([#643](#643)) ([84d3dc5](84d3dc5))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.31.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: Unit tests suite fails if ran without having a Kubernetes cluster running locally (kube config exists)
3 participants