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 whitelistpositivecase test in LeakyContractTestsSuite #9955

Merged
merged 17 commits into from Nov 28, 2023

Conversation

MrValioBg
Copy link
Contributor

Description:
Fix whitelistpositivecase test in LeakyContractTestsSuite.
Add support for besu Address in hedera-config in order to enable permittedDelegateCallers and add check in FrameUtils for qualified delegate callers.

Related issue(s):

Fixes #9407

Checklist

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

…ermittedDelegateCallers and use it to check for qualified delegate callers.

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
@MrValioBg MrValioBg self-assigned this Nov 17, 2023
@MrValioBg MrValioBg added the Limechain Work planned for the LimeChain team label Nov 17, 2023
Copy link

github-actions bot commented Nov 17, 2023

Node: Integration Test Results

279 tests  ±0   279 ✔️ +1   28m 30s ⏱️ +12s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0  - 1 

Results for commit b916917. ± Comparison against base commit edc657a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 17, 2023

Node: E2E Test Results

    1 files  ±    0      1 suites  ±0   21m 50s ⏱️ + 21m 50s
310 tests +309  310 ✔️ +310  0 💤 ±0  0  - 1 
332 runs  +331  332 ✔️ +332  0 💤 ±0  0  - 1 

Results for commit b916917. ± Comparison against base commit edc657a.

This pull request removes 1 and adds 310 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 17, 2023

Node: HAPI Test Results

1 245 tests  ±0   912 ✔️ +1   1h 32m 1s ⏱️ - 2m 19s
   166 suites ±0   333 💤  - 1 
   166 files   ±0       0 ±0 

Results for commit 41f5232. ± Comparison against base commit fe5882f.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 17, 2023

Node: Unit Test Results

    2 283 files  ±0      2 283 suites  ±0   50m 24s ⏱️ + 3m 21s
118 368 tests +3  118 334 ✔️ +3  34 💤 ±0  0 ±0 
126 686 runs  +3  126 652 ✔️ +3  34 💤 ±0  0 ±0 

Results for commit b916917. ± Comparison against base commit edc657a.

♻️ This comment has been updated with latest results.

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
# Conflicts:
#	hedera-node/hedera-config/src/main/java/module-info.java
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 November 21, 2023 09:08
Copy link

codecov bot commented Nov 21, 2023

Codecov Report

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

Comparison is base (edc657a) 65.27% compared to head (b916917) 65.28%.
Report is 1 commits behind head on develop.

Files Patch % Lines
...p/service/contract/impl/exec/utils/FrameUtils.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9955      +/-   ##
=============================================
+ Coverage      65.27%   65.28%   +0.01%     
- Complexity     30202    30211       +9     
=============================================
  Files           3329     3329              
  Lines         126937   126940       +3     
  Branches       13198    13200       +2     
=============================================
+ Hits           82853    82872      +19     
+ Misses         40868    40852      -16     
  Partials        3216     3216              

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

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.

I think it's likely easiest to make this config property return a Set<Long> and then limit our exemptions in HtsSystemContract to just long zero addresses whose 0.0.X number is in that set.

…et<Long> for permittedDelegateCallers and converting it in the check in FrameUtils.java

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Copy link

github-actions bot commented Nov 23, 2023

Node: HAPI Test (Time Consuming) Results

21 tests  ±0     4 ✔️ ±0   6m 18s ⏱️ +7s
  2 suites ±0   17 💤 ±0 
  2 files   ±0     0 ±0 

Results for commit b916917. ± Comparison against base commit edc657a.

♻️ This comment has been updated with latest results.

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Copy link

github-actions bot commented Nov 23, 2023

Node: HAPI Test (Misc) Results

418 tests  ±0   274 ✔️ +1   20m 55s ⏱️ +29s
  73 suites ±0   144 💤  - 1 
  73 files   ±0       0 ±0 

Results for commit b916917. ± Comparison against base commit edc657a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 23, 2023

Node: HAPI Test (Smart Contract) Results

410 tests  ±0   318 ✔️ +6   42m 32s ⏱️ + 2m 7s
  56 suites ±0     92 💤  - 6 
  56 files   ±0       0 ±0 

Results for commit b916917. ± Comparison against base commit edc657a.

♻️ This comment has been updated with latest results.

Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Copy link

Node: HAPI Test (Crypto) Results

211 tests  ±0   201 ✔️ ±0   19m 48s ⏱️ + 2m 41s
  22 suites ±0     10 💤 ±0 
  22 files   ±0       0 ±0 

Results for commit b916917. ± Comparison against base commit edc657a.

Copy link

Node: HAPI Test (Token) Results

190 tests  ±0   188 ✔️ ±0   19m 23s ⏱️ +53s
  13 suites ±0       2 💤 ±0 
  13 files   ±0       0 ±0 

Results for commit b916917. ± Comparison against base commit edc657a.

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, very nice work @MrValioBg !

@MrValioBg MrValioBg merged commit 2613f05 into develop Nov 28, 2023
24 of 25 checks passed
@MrValioBg MrValioBg deleted the 09407-fix-whitelistpositivecase-test branch November 28, 2023 07:59
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
Development

Successfully merging this pull request may close these issues.

Fix whitelistPositiveCase test
3 participants