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: Resolve various problems to enable tests from local-node and smart-contracts to run agains solo network #402

Merged

Conversation

Ivo-Yankov
Copy link
Contributor

@Ivo-Yankov Ivo-Yankov commented Jun 28, 2024

Description

  • Fixes an issue with the mirror-node-web3 module in which all calls to /api/v1/contract/call resulted in error: 500. Adds a new step at the end of solo mirror-node deploy that executes a script that inserts 2 rows into the public.file_data table - the data for fileData and for exchangeRates.
  • Enables sidecars to be processed by the importer. Because they were not enabled all contract state data was not imported into the Mirror node and all requests to /api/v1/contract/call returned 0x.
  • Applied all config from bootstrap.properties to application.properties to override the default configuration for post-modularization versions of Services.

Related Issues

  • Closes #

Copy link
Contributor

github-actions bot commented Jun 28, 2024

E2E Mirror Node Tests Coverage Report

11 tests  ±0   11 ✅ ±0   3m 55s ⏱️ +13s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Jun 28, 2024

E2E Relay Tests Coverage Report

1 files  ±0  1 suites  ±0   2m 39s ⏱️ ±0s
5 tests ±0  5 ✅ ±0  0 💤 ±0  0 ❌ ±0 
6 runs  ±0  6 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

@Ivo-Yankov Ivo-Yankov marked this pull request as ready for review August 6, 2024 10:05
@Ivo-Yankov Ivo-Yankov requested a review from a team as a code owner August 6, 2024 10:05
Copy link
Contributor

github-actions bot commented Aug 7, 2024

Unit Test Results - Linux

  1 files  ±0   19 suites  ±0   1m 32s ⏱️ -1s
124 tests ±0  124 ✅ ±0  0 💤 ±0  0 ❌ ±0 
150 runs  ±0  150 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 7, 2024

Unit Test Results - Windows

  1 files  ±0   19 suites  ±0   1m 35s ⏱️ +4s
124 tests ±0  124 ✅ ±0  0 💤 ±0  0 ❌ ±0 
150 runs  ±0  150 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 7, 2024

E2E Node PEM Stop Add Tests Coverage Report

 1 files  ±0   1 suites  ±0   11m 28s ⏱️ + 4m 6s
18 tests ±0  18 ✅ ±0  0 💤 ±0  0 ❌ ±0 
20 runs  ±0  20 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 7, 2024

E2E Tests Coverage Report

55 tests  ±0   55 ✅ ±0   5m 14s ⏱️ + 1m 15s
 9 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 7, 2024

E2E Node PFX Kill Add Tests Coverage Report

 1 files  ±0   1 suites  ±0   13m 4s ⏱️ + 3m 24s
18 tests ±0  18 ✅ ±0  0 💤 ±0  0 ❌ ±0 
20 runs  ±0  20 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Aug 7, 2024

E2E Node Local Build Tests Coverage Report

8 tests  ±0   8 ✅ ±0   4m 13s ⏱️ +56s
2 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit b4f6325. ± Comparison against base commit 77a3dd9.

♻️ This comment has been updated with latest results.

JeffreyDallas and others added 2 commits August 8, 2024 09:29
JeffreyDallas
JeffreyDallas previously approved these changes Aug 12, 2024
Signed-off-by: Jeffrey Tang <[email protected]>
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.12% (target: -1.00%) 96.67%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (77a3dd9) 3497 2839 81.18%
Head commit (b4f6325) 3531 (+34) 2871 (+32) 81.31% (+0.12%)

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 (#402) 30 29 96.67%

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 Aug 12, 2024

Codecov Report

Attention: Patch coverage is 97.05882% with 1 line in your changes missing coverage. Please review.

Project coverage is 81.99%. Comparing base (77a3dd9) to head (b4f6325).
Report is 19 commits behind head on main.

Files Patch % Lines
src/commands/mirror_node.mjs 95.83% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #402      +/-   ##
==========================================
+ Coverage   81.89%   81.99%   +0.09%     
==========================================
  Files          35       35              
  Lines        4182     4216      +34     
  Branches      644      648       +4     
==========================================
+ Hits         3425     3457      +32     
- Misses        757      759       +2     
Files Coverage Δ
src/core/constants.mjs 94.11% <100.00%> (+0.07%) ⬆️
src/core/helpers.mjs 95.61% <100.00%> (+0.37%) ⬆️
src/commands/mirror_node.mjs 74.26% <95.83%> (+4.62%) ⬆️

... and 1 file with indirect coverage changes

Impacted file tree graph

@JeffreyDallas JeffreyDallas merged commit c99d881 into main Aug 12, 2024
32 checks passed
@JeffreyDallas JeffreyDallas deleted the 353-testing-make-sure-solo-is-covering-all-local-node-flows branch August 12, 2024 23:39
swirlds-automation added a commit that referenced this pull request Aug 26, 2024
## [0.28.0](v0.27.0...v0.28.0) (2024-08-26)

### Features

* add freeze account ([#436](#436)) ([8fe5a41](8fe5a41))
* enhance node add to work with staking and dynamic address book ([#469](#469)) ([b452599](b452599))
* use k8s configMaps to mount files during solo network deploy  ([#345](#345)) ([af27f16](af27f16))

### Bug Fixes

* hugo jsdoc failure ([#498](#498)) ([ff07413](ff07413))
* reduce number of account used e2e init account test ([#477](#477)) ([51d7ade](51d7ade))
* Resolve various problems to enable tests from local-node and smart-contracts to run agains solo network ([#402](#402)) ([c99d881](c99d881))
* use path.join instead of forward slashes to support Windows ([#491](#491)) ([82a5053](82a5053))
@swirlds-automation
Copy link
Contributor

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

4 participants