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: 3198 cherry pick npm package version #3200

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

ebadiere
Copy link
Contributor

Description:
Cherry-picked fix for the web3_clientVersion method.

The ConfigService was using an all caps version of the npm_package_version of the env var definition but in a node context the env var is lowercase: npm_package_version. Nothing was being returned from the web3_clientVersion method.

Related issue(s):

Fixes #3198

Notes for reviewer:
Simply changing the case of the env var definition in the GlobalConfig.ts class prevents updating conditional logic that already works. Adding the version number to the root package.json file allows it to be loaded by the ConfigService.ts which loads before the acceptance tests framework.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

* fix: Capture the npm_package_version

Signed-off-by: ebadiere <[email protected]>

* fix:  Adding npm_package_version at the root package.json
file to allow test framework to load the value in the
config service. Also some clean up.

Signed-off-by: ebadiere <[email protected]>

* chore: Updated package-lock.json

Signed-off-by: ebadiere <[email protected]>

---------

Signed-off-by: ebadiere <[email protected]>
package.json and rebuilt the package-lock.json.

Signed-off-by: ebadiere <[email protected]>
@ebadiere ebadiere requested review from AlfredoG87, Nana-EC and a team as code owners October 31, 2024 19:41
@ebadiere ebadiere self-assigned this Oct 31, 2024
@ebadiere ebadiere added the bug Something isn't working label Oct 31, 2024
@ebadiere ebadiere added this to the 0.59.0 milestone Oct 31, 2024
Copy link

sonarcloud bot commented Oct 31, 2024

@ebadiere ebadiere changed the title 3198 cherry pick npm package version fix: 3198 cherry pick npm package version Oct 31, 2024
package.json Show resolved Hide resolved
Copy link

github-actions bot commented Oct 31, 2024

Test Results

 22 files  ±  0  291 suites   - 18   33m 5s ⏱️ -57s
606 tests  -   7  596 ✅ +  7  4 💤 ±0  6 ❌  - 14 
813 runs  +117  800 ✅ +129  6 💤 +2  7 ❌  - 14 

For more details on these failures, see this check.

Results for commit 3f8a242. ± Comparison against base commit 97017ac.

♻️ This comment has been updated with latest results.

@ebadiere ebadiere merged commit 1af16a2 into release/0.59 Oct 31, 2024
46 of 48 checks passed
@ebadiere ebadiere deleted the 3198-cherry-pick-npm_package_version branch October 31, 2024 20:22
Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.39%. Comparing base (97017ac) to head (3f8a242).
Report is 1 commits behind head on release/0.59.

Additional details and impacted files
@@              Coverage Diff              @@
##           release/0.59    #3200   +/-   ##
=============================================
  Coverage         83.39%   83.39%           
=============================================
  Files                66       66           
  Lines              4283     4283           
  Branches            835      835           
=============================================
  Hits               3572     3572           
  Misses              471      471           
  Partials            240      240           
Flag Coverage Δ
config-service 98.14% <ø> (ø)
relay 85.60% <ø> (ø)
server 83.52% <ø> (ø)
ws-server 36.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ckages/config-service/src/services/globalConfig.ts 100.00% <ø> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants