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: refactor mirrorNodeClient axios transformResponse and fix all unit tests #3435

Merged
merged 19 commits into from
Feb 4, 2025

Conversation

natanasow
Copy link
Collaborator

Description:

Follow up on #3387 regarding this discussion #3387 (comment).

Related issue(s):

Fixes #3367

Notes for reviewer:

Checklist

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

@natanasow natanasow requested review from Nana-EC and a team as code owners January 30, 2025 15:12
@natanasow natanasow self-assigned this Jan 30, 2025
@natanasow natanasow added the enhancement New feature or request label Jan 30, 2025
@natanasow natanasow added this to the 0.64.4 milestone Jan 30, 2025
@natanasow natanasow changed the base branch from main to 3367-transaction-with-contract-negative-value-breaks-routes January 30, 2025 15:13
Copy link
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

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

Let's wait for the other PR to get merged first so we can cut a hotfix then we can target this in main after that as this has lower priority.

Copy link
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

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

Let's wait for the other PR to get merged first so we can cut a hotfix then we can target this against main after that as this has lower priority.

Base automatically changed from 3367-transaction-with-contract-negative-value-breaks-routes to main January 31, 2025 14:53
# Conflicts:
#	packages/relay/src/lib/clients/mirrorNodeClient.ts
#	packages/relay/tests/lib/eth/eth_getLogs.spec.ts
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
14.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link

github-actions bot commented Jan 31, 2025

Test Results

 18 files  ±0  236 suites  ±0   32m 38s ⏱️ -26s
614 tests ±0  610 ✅ ±0  4 💤 ±0  0 ❌ ±0 
630 runs  ±0  626 ✅ ±0  4 💤 ±0  0 ❌ ±0 

Results for commit 29ae7ad. ± Comparison against base commit 872755e.

♻️ This comment has been updated with latest results.

Copy link
Member

@quiet-node quiet-node left a comment

Choose a reason for hiding this comment

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

Thanks for the great work!

@quiet-node quiet-node modified the milestones: 0.64.4, 0.66.0 Feb 3, 2025
@natanasow natanasow merged commit b8e17fe into main Feb 4, 2025
46 of 47 checks passed
@natanasow natanasow deleted the 3367-refactor-mirror-node-and-fix-unit-tests branch February 4, 2025 14:27
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.53%. Comparing base (872755e) to head (29ae7ad).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3435      +/-   ##
==========================================
+ Coverage   85.46%   85.53%   +0.07%     
==========================================
  Files          69       69              
  Lines        4753     4751       -2     
  Branches     1059     1059              
==========================================
+ Hits         4062     4064       +2     
+ Misses        396      394       -2     
+ Partials      295      293       -2     
Flag Coverage Δ
config-service 98.14% <ø> (ø)
relay 79.29% <100.00%> (-0.02%) ⬇️
server 83.30% <ø> (ø)
ws-server 36.66% <ø> (ø)

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

Files with missing lines Coverage Δ
packages/relay/src/lib/clients/mirrorNodeClient.ts 88.43% <100.00%> (-0.46%) ⬇️

... and 2 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transaction with CONTRACT_NEGATIVE_VALUE prevents entire block from being retrieved
3 participants