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: fixes unit test heap memory issue #2305

Merged

Conversation

konstantinabl
Copy link
Collaborator

@konstantinabl konstantinabl commented Apr 9, 2024

Description:

This PR addresses a memory issue occurring during unit tests execution.
In order to do this the openrpc.json file had to have a recursion, which led to exhaustion of memory, removed.

Additionally, the following changes has been made:

  • Tests that failed due to the memory issue disrupting the test workflow have been fixed. This includes removing irrelevant tests, such as the Gas tests in eth_call.spec.
  • Introduces Reds in memory server, which fixes all the tests, that were using RedisCache and were throwing ECONNREFUSED
  • The tsconfig file has been updated to include the sourceMap property, enabling debugging directly within TypeScript files.

Related issue(s):

Fixes #2300

Checklist

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

@konstantinabl konstantinabl linked an issue Apr 9, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Apr 9, 2024

Acceptance Tests

  14 files  193 suites   15m 47s ⏱️
578 tests 573 ✔️ 4 💤 1
612 runs  606 ✔️ 4 💤 2

Results for commit 5c2744c.

♻️ This comment has been updated with latest results.

@konstantinabl konstantinabl force-pushed the 2300-unit-tests-are-failing-with-fatal-error-memory-leak branch from 499c951 to 2b9e18a Compare April 9, 2024 15:46
@konstantinabl konstantinabl changed the title fix: revert wrong commit fix: fixes unit test heap memory issue Apr 9, 2024
@konstantinabl konstantinabl force-pushed the 2300-unit-tests-are-failing-with-fatal-error-memory-leak branch 14 times, most recently from dbf79bb to f354474 Compare April 17, 2024 19:58
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
…useful

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
…nt is ready when using set/get/multiset etc.

Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
konstantinabl and others added 6 commits April 22, 2024 13:59
Co-authored-by: Victor Yanev <161485803+victor-yanev@users.noreply.github.com>
Signed-off-by: konstantinabl <konstantina.blajukova@gmail.com>
Co-authored-by: Victor Yanev <161485803+victor-yanev@users.noreply.github.com>
Signed-off-by: konstantinabl <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Co-authored-by: Victor Yanev <161485803+victor-yanev@users.noreply.github.com>
Signed-off-by: konstantinabl <konstantina.blajukova@gmail.com>
Co-authored-by: Victor Yanev <161485803+victor-yanev@users.noreply.github.com>
Signed-off-by: konstantinabl <konstantina.blajukova@gmail.com>
victor-yanev
victor-yanev previously approved these changes Apr 22, 2024
Signed-off-by: Konstantina Blazhukova <konstantina.blajukova@gmail.com>
Copy link

sonarcloud bot commented Apr 22, 2024

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarCloud

Copy link
Contributor

@victor-yanev victor-yanev 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
Collaborator

@ebadiere ebadiere 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 f66da4e into main Apr 23, 2024
27 of 28 checks passed
@ebadiere ebadiere deleted the 2300-unit-tests-are-failing-with-fatal-error-memory-leak branch April 23, 2024 13:25
quiet-node added a commit that referenced this pull request Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit Tests are failing with Fatal Error: Memory Leak
4 participants