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: add record list checkpoint, so following & preceding child records are reverted correctly #10137

Merged
merged 19 commits into from Dec 15, 2023

Conversation

MrValioBg
Copy link
Contributor

@MrValioBg MrValioBg commented Nov 28, 2023

Description:

Add support for reverting call from specific "checkpoint". Every time a new ProxyWorldUpdater is created we make a checkpoint. When revert is called we revert both preceding & following child records from this checkpoint.

This will fix more tests in LeakyContractTestSuites and in Create2OperationSuite.

Related issue(s):

Fixes #9403
Fixes #10419
Fixes #10352

Notes for reviewer:

Todo

  • Verify that javadoc is ok (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@MrValioBg MrValioBg added the Limechain Work planned for the LimeChain team label Nov 28, 2023
@MrValioBg MrValioBg self-assigned this Nov 28, 2023
Copy link

github-actions bot commented Nov 28, 2023

Node: Unit Test Results

    2 292 files  +  1      2 292 suites  +1   1h 3m 30s ⏱️ + 10m 32s
118 440 tests +11  118 406 ✔️ +11  34 💤 ±0  0 ±0 
126 861 runs  +11  126 827 ✔️ +11  34 💤 ±0  0 ±0 

Results for commit ae79778. ± Comparison against base commit 4db7794.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (4db7794) 63.04% compared to head (ae79778) 63.02%.
Report is 7 commits behind head on develop.

Files Patch % Lines
...app/workflows/handle/record/RecordListBuilder.java 83.33% 1 Missing and 2 partials ⚠️
...a/node/app/workflows/handle/HandleContextImpl.java 81.81% 2 Missing ⚠️
...service/contract/impl/state/ProxyWorldUpdater.java 33.33% 2 Missing ⚠️
...app/spi/workflows/record/RecordListCheckPoint.java 0.00% 1 Missing ⚠️
...ontract/impl/exec/scope/QueryHederaOperations.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10137      +/-   ##
=============================================
- Coverage      63.04%   63.02%   -0.03%     
- Complexity     30814    30816       +2     
=============================================
  Files           3361     3362       +1     
  Lines         135336   135399      +63     
  Branches       14088    14094       +6     
=============================================
+ Hits           85320    85329       +9     
- Misses         46658    46709      +51     
- Partials        3358     3361       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Nov 28, 2023

Node: HAPI Test (Crypto) Results

211 tests  ±0   204 ✔️ ±0   17m 48s ⏱️ +4s
  22 suites ±0       7 💤 ±0 
  22 files   ±0       0 ±0 

Results for commit ae79778. ± Comparison against base commit 4db7794.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 28, 2023

Node: HAPI Test (Token) Results

189 tests  ±0   189 ✔️ ±0   18m 34s ⏱️ +46s
  13 suites ±0       0 💤 ±0 
  13 files   ±0       0 ±0 

Results for commit ae79778. ± Comparison against base commit 4db7794.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 28, 2023

Node: HAPI Test (Misc) Results

419 tests  +1   322 ✔️ +93   26m 14s ⏱️ + 7m 53s
  73 suites +1     97 💤  -   2 
  73 files   ±0       0  - 90 

Results for commit ae79778. ± Comparison against base commit 4db7794.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 28, 2023

Node: HAPI Test (Time Consuming) Results

21 tests  ±0     9 ✔️ ±0   25m 1s ⏱️ -20s
  2 suites ±0   12 💤 ±0 
  2 files   ±0     0 ±0 

Results for commit ae79778. ± Comparison against base commit 4db7794.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 28, 2023

Node: E2E Test Results

    1 files  ±    0      1 suites  ±0   24m 44s ⏱️ + 24m 44s
311 tests +310  311 ✔️ +311  0 💤 ±0  0  - 1 
333 runs  +332  333 ✔️ +333  0 💤 ±0  0  - 1 

Results for commit ae79778. ± Comparison against base commit 4db7794.

This pull request removes 1 and adds 311 tests. Note that renamed tests count towards both.
EndToEndTests ‑ initializationError
EndToEndTests ‑ ADDRESS_BOOK_CONTROLCanUpdateADDRESS_BOOK
EndToEndTests ‑ ADDRESS_BOOK_CONTROLCanUpdateNODE_DETAILS
EndToEndTests ‑ AccountsGetPayerRecordsIfSoConfigured
EndToEndTests ‑ Acct57CanMakeSmallChanges
EndToEndTests ‑ Acct57CantMakeLargeChanges
EndToEndTests ‑ AddingSignaturesToExecutedTxFails
EndToEndTests ‑ AddingSignaturesToExecutedTxFailsWithLongTermEnabled
EndToEndTests ‑ AddingSignaturesToNonExistingTxFails
EndToEndTests ‑ AddingSignaturesToNonExistingTxFailsWithLongTermEnabled
EndToEndTests ‑ AddressAliasIdFuzzing
…

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 28, 2023

Node: Integration Test Results

279 tests  ±0   279 ✔️ +1   27m 50s ⏱️ -34s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0  - 1 

Results for commit ae79778. ± Comparison against base commit 4db7794.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 28, 2023

Node: HAPI Test (Smart Contract) Results

398 tests  ±0   361 ✔️ +1   45m 51s ⏱️ + 1m 37s
  55 suites ±0     37 💤  - 1 
  55 files   ±0       0 ±0 

Results for commit ae79778. ± Comparison against base commit 4db7794.

♻️ This comment has been updated with latest results.

@mustafauzunn mustafauzunn changed the title Fix more tests in LeakyContractTestSuites fix: more tests in LeakyContractTestSuites Dec 1, 2023
@MrValioBg MrValioBg marked this pull request as ready for review December 5, 2023 14:13
@MrValioBg MrValioBg marked this pull request as draft December 5, 2023 15:33
@MrValioBg MrValioBg marked this pull request as ready for review December 6, 2023 13:01
@MrValioBg MrValioBg marked this pull request as draft December 12, 2023 10:32
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
…ld records for given ProxyWorldUpdater

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
@MrValioBg MrValioBg force-pushed the 09403-fix-child-records-leaky-tests branch from a940939 to aaad8e1 Compare December 12, 2023 15:03
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
@MrValioBg MrValioBg marked this pull request as ready for review December 12, 2023 16:29
@MrValioBg MrValioBg linked an issue Dec 13, 2023 that may be closed by this pull request
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
# Conflicts:
#	hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/contract/opcodes/Create2OperationSuite.java
#	hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/leaky/LeakyContractTestsSuite.java
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
@MrValioBg MrValioBg changed the title fix: more tests in LeakyContractTestSuites fix: add record list checkpoint, to revert child records correctly Dec 14, 2023
@MrValioBg MrValioBg changed the title fix: add record list checkpoint, to revert child records correctly fix: add record list checkpoint, so following & preceding child records are reverted correctly Dec 14, 2023
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM, nice work @MrValioBg !

@MrValioBg MrValioBg merged commit e49cc5a into develop Dec 15, 2023
37 checks passed
@MrValioBg MrValioBg deleted the 09403-fix-child-records-leaky-tests branch December 15, 2023 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Limechain Work planned for the LimeChain team
Projects
None yet
2 participants