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: SDKClient timeouts are not getting logged with requestIds. #3061

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

ebadiere
Copy link
Collaborator

@ebadiere ebadiere commented Oct 3, 2024

Bumped up SDK_REQUEST_TIMEOUT for CI.

Description:
Timeouts on requests happen in both CI and mainnet. The SDKClient timeout message is hard to track because the request ID is not included in the actual timeout message. This change now adds the SDKClientError message to the logged warning that includes the requestId.

Related issue(s):

Fixes #3045

Notes for reviewer:

Checklist

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

…umped up SDK_REQUEST_TIMEOUT for CI.

Signed-off-by: ebadiere <ebadiere@gmail.com>
@ebadiere ebadiere added the bug Something isn't working label Oct 3, 2024
@ebadiere ebadiere added this to the 0.58.0 milestone Oct 3, 2024
Copy link

github-actions bot commented Oct 3, 2024

Tests

       3 files     299 suites   19s ⏱️
1 354 tests 1 353 ✔️ 1 💤 0
1 363 runs  1 362 ✔️ 1 💤 0

Results for commit e93338c.

♻️ This comment has been updated with latest results.

quiet-node
quiet-node previously approved these changes Oct 3, 2024
@quiet-node
Copy link
Member

Also please update the PR title. It got cut off

Copy link

github-actions bot commented Oct 3, 2024

Acceptance Tests

  18 files  242 suites   29m 44s ⏱️
603 tests 596 ✔️ 4 💤 3
731 runs  724 ✔️ 4 💤 3

Results for commit e93338c.

♻️ This comment has been updated with latest results.

@ebadiere ebadiere requested review from a team as code owners October 3, 2024 22:25
@ebadiere ebadiere changed the title fix: Enhanced logged warning to include SDKClient error message and b… fix: SDKClient timeouts are not getting logged with requestIds. Oct 3, 2024
.github/scripts/check-pr.js Outdated Show resolved Hide resolved
@ebadiere ebadiere force-pushed the 3045-SDKClient-timeouts-logging branch from fd38a1a to d293121 Compare October 4, 2024 14:36
Signed-off-by: ebadiere <ebadiere@gmail.com>
Copy link

sonarcloud bot commented Oct 7, 2024

Copy link

github-actions bot commented Oct 7, 2024

🚨 Memory Leak Detected 🚨

A potential memory leak has been detected in the test titled validates enforcement of request id. This may impact the application's performance and stability.

Details

📊 Memory Leak Detection Report 📊

GC Type: MarkSweepCompact
Cost: 31,315.6 ms

Heap Statistics (before vs after executing the test):

  • Total Heap Size: increased with 1.72 MB
  • Total Heap Size Executable: no changes
  • Total Physical Size: decreased with 344.06 KB
  • Total Available Size: increased with 2.66 MB
  • Total Global Handles Size: no changes
  • Used Global Handles Size: decreased with 64.00 bytes
  • Used Heap Size: decreased with 3.32 MB
  • Heap Size Limit: no changes
  • Malloced Memory: no changes
  • External Memory: no changes
  • Peak Malloced Memory: no changes

Heap Space Statistics (before vs after executing the test):

  • Old Space:

    • Space Size: increased with 2.10 MB
    • Space Used Size: increased with 2.04 MB
    • Space Available Size: decreased with 159.15 KB
    • Physical Space Size: increased with 2.10 MB
  • Large Object Space:

    • Space Size: increased with 835.58 KB
    • Space Used Size: increased with 813.50 KB
    • Space Available Size: no changes
    • Physical Space Size: increased with 835.58 KB

Recommendations

Please investigate the memory allocations in this test, focusing on objects that are not being properly deallocated.

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.

LGTM

Copy link
Contributor

@acuarica acuarica left a comment

Choose a reason for hiding this comment

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

lg

@ebadiere ebadiere merged commit 229ee75 into main Oct 8, 2024
43 checks passed
@ebadiere ebadiere deleted the 3045-SDKClient-timeouts-logging branch October 8, 2024 15:34
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.84%. Comparing base (f1794d8) to head (e93338c).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3061   +/-   ##
=======================================
  Coverage   84.83%   84.84%           
=======================================
  Files          59       59           
  Lines        3937     3939    +2     
  Branches      786      788    +2     
=======================================
+ Hits         3340     3342    +2     
- Misses        357      359    +2     
+ Partials      240      238    -2     
Flag Coverage Δ
relay 84.95% <ø> (+<0.01%) ⬆️
server 83.43% <ø> (ø)
ws-server 97.87% <ø> (ø)

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/sdkClient.ts 58.40% <ø> (ø)

... and 6 files with indirect coverage changes

ebadiere added a commit that referenced this pull request Oct 8, 2024
* fix: Enhanced logged warning to include SDKClient error message and bumped up SDK_REQUEST_TIMEOUT for CI.

Signed-off-by: ebadiere <ebadiere@gmail.com>

* fix: Removed the increate in sdkClient timeout.

Signed-off-by: ebadiere <ebadiere@gmail.com>

---------

Signed-off-by: ebadiere <ebadiere@gmail.com>
ebadiere added a commit that referenced this pull request Oct 9, 2024
…82.0 (#3076)

* fix: upgrade @graphprotocol/graph-cli from 0.81.0 to 0.82.0

Snyk has created this PR to upgrade @graphprotocol/graph-cli from 0.81.0 to 0.82.0.

See this package in npm:
@graphprotocol/graph-cli

See this project in Snyk:
https://app.snyk.io/org/json-rpc-relay/project/24dd80bc-cab7-4d83-83d7-a604d57322e3?utm_source=github&utm_medium=referral&page=upgrade-pr

Signed-off-by: ebadiere <ebadiere@gmail.com>

* fix: Skip issue matching check for thirdparty build dependency librar… (#2990)

* fix: Skip issue matching check for thirdparty build dependency libraries.
We do not control them.

Signed-off-by: ebadiere <ebadiere@gmail.com>

* fix: Now validates PRs listed in description by matching contributors in the repository and not matching PRs with issues from third party projects.

Signed-off-by: ebadiere <ebadiere@gmail.com>

---------

Signed-off-by: ebadiere <ebadiere@gmail.com>

* fix: SDKClient timeouts are not getting logged with requestIds. (#3061)

* fix: Enhanced logged warning to include SDKClient error message and bumped up SDK_REQUEST_TIMEOUT for CI.

Signed-off-by: ebadiere <ebadiere@gmail.com>

* fix: Removed the increate in sdkClient timeout.

Signed-off-by: ebadiere <ebadiere@gmail.com>

---------

Signed-off-by: ebadiere <ebadiere@gmail.com>

---------

Signed-off-by: ebadiere <ebadiere@gmail.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Eric Badiere <ebadiere@gmail.com>
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.

SDKClient timeouts are not getting logged with requestIds.
3 participants