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: LeakyContractTestsSuite HAPI tests #10287

Merged
merged 16 commits into from Dec 19, 2023

Conversation

MrValioBg
Copy link
Contributor

@MrValioBg MrValioBg commented Dec 5, 2023

Description:

  • Use ContracCallRecordBuilder instead of CryptoCreateRecordBuilder
  • Also adds support for multiple priority statuses (implementation provided by a cherry-picked commit authored by @tinker-michaelj).
  • Don't activate tests that seem to require legacy key verification - comment above them about the behavior.

These changes aim to provide correct logic and fix tests in the LeakyContractTestsSuite.

Related issue(s):

Fixes #9398
#9399
#9397

Notes for reviewer:
Please check the github comments I left in the code.

Checklist

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

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
@MrValioBg MrValioBg changed the title fix: LeakyContractTestsSuite fees related tests fix: LeakyContractTestsSuite tests related to fees Dec 5, 2023
@MrValioBg MrValioBg self-assigned this Dec 5, 2023
@MrValioBg MrValioBg added the Limechain Work planned for the LimeChain team label Dec 5, 2023
@MrValioBg MrValioBg linked an issue Dec 5, 2023 that may be closed by this pull request
Copy link

github-actions bot commented Dec 5, 2023

Node: HAPI Test (Crypto) Results

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

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 5, 2023

Node: HAPI Test (Token) Results

189 tests  ±0   189 ✔️ ±0   16m 49s ⏱️ - 1m 8s
  13 suites ±0       0 💤 ±0 
  13 files   ±0       0 ±0 

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 5, 2023

Node: Unit Test Results

    2 293 files  ±0      2 293 suites  ±0   56m 21s ⏱️ + 1m 12s
118 448 tests +3  118 414 ✔️ +3  34 💤 ±0  0 ±0 
126 865 runs  +3  126 831 ✔️ +3  34 💤 ±0  0 ±0 

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (50a7d5c) 62.98% compared to head (48c01d6) 63.04%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10287      +/-   ##
=============================================
+ Coverage      62.98%   63.04%   +0.06%     
- Complexity     30813    30835      +22     
=============================================
  Files           3363     3363              
  Lines         135415   135487      +72     
  Branches       14090    14096       +6     
=============================================
+ Hits           85287    85416     +129     
+ Misses         46768    46708      -60     
- Partials        3360     3363       +3     

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

Copy link

github-actions bot commented Dec 5, 2023

Node: HAPI Test (Time Consuming) Results

21 tests  ±0     9 ✔️ ±0   24m 41s ⏱️ -11s
  2 suites ±0   12 💤 ±0 
  2 files   ±0     0 ±0 

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 5, 2023

Node: HAPI Test (Misc) Results

420 tests  ±0   333 ✔️ +4   30m 53s ⏱️ + 1m 59s
  74 suites ±0     87 💤  - 4 
  74 files   ±0       0 ±0 

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 5, 2023

Node: Integration Test Results

278 tests  ±0   278 ✔️ ±0   26m 54s ⏱️ +9s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0 ±0 

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 5, 2023

Node: E2E Test Results

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

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

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 Dec 5, 2023

Node: HAPI Test (Smart Contract) Results

399 tests  +1   373 ✔️ +8   45m 58s ⏱️ + 1m 17s
  55 suites ±0     26 💤  - 6 
  55 files   ±0       0  - 1 

Results for commit 48c01d6. ± Comparison against base commit 50a7d5c.

♻️ This comment has been updated with latest results.

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>
@MrValioBg MrValioBg marked this pull request as ready for review December 11, 2023 14:23
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.

We should just add a comment to any HapiSpec that expects to be able to use top-level signatures like,

// Requires legacy security model, cannot be enabled as @HapiTest without refactoring to use contract keys

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
# Conflicts:
#	hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/leaky/LeakyContractTestsSuite.java
@MrValioBg MrValioBg changed the title fix: LeakyContractTestsSuite tests related to fees fix: LeakyContractTestsSuite HAPI tests Dec 18, 2023
@MrValioBg MrValioBg linked an issue Dec 18, 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>
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, ty @MrValioBg !

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!

Copy link
Collaborator

@mustafauzunn mustafauzunn left a comment

Choose a reason for hiding this comment

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

LGTM

@MrValioBg MrValioBg merged commit 7a58a17 into develop Dec 19, 2023
39 checks passed
@MrValioBg MrValioBg deleted the 08896-fix-fees-related-leaky-tests branch December 19, 2023 08:38
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
3 participants