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: Ensure that the pending creation customizer applies to the address being created #11213

Merged
merged 5 commits into from Jan 27, 2024

Conversation

lukelee-sl
Copy link
Member

Description:
Ensure that the pending creation customizer applies to the address being created

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

…ss being created

Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
@lukelee-sl lukelee-sl self-assigned this Jan 27, 2024
@lukelee-sl lukelee-sl requested review from a team as code owners January 27, 2024 01:21
@lukelee-sl lukelee-sl changed the title bug: Ensure that the pending creation customizer applies to the address being created fix: Ensure that the pending creation customizer applies to the address being created Jan 27, 2024
Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
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, tyvm @lukelee-sl !

Copy link

github-actions bot commented Jan 27, 2024

Node: HAPI Test (Token) Results

189 tests  ±0   189 ✔️ ±0   18m 15s ⏱️ -33s
  13 suites ±0       0 💤 ±0 
  13 files   ±0       0 ±0 

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Nana-EC
Nana-EC previously approved these changes Jan 27, 2024
Copy link

github-actions bot commented Jan 27, 2024

Node: HAPI Test (Crypto) Results

211 tests  ±0   208 ✔️ ±0   18m 48s ⏱️ + 1m 47s
  22 suites ±0       3 💤 ±0 
  22 files   ±0       0 ±0 

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 27, 2024

Node: Unit Test Results

    2 294 files  ±0      2 294 suites  ±0   51m 6s ⏱️ + 4m 21s
118 681 tests ±0  118 646 ✔️ ±0  35 💤 ±0  0 ±0 
127 098 runs  ±0  127 063 ✔️ ±0  35 💤 ±0  0 ±0 

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 27, 2024

Node: HAPI Test (Misc) Results

383 tests  ±0   323 ✔️ ±0   24m 24s ⏱️ -51s
  72 suites ±0     60 💤 ±0 
  72 files   ±0       0 ±0 

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jan 27, 2024

Codecov Report

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

Comparison is base (a723e9c) 62.79% compared to head (62c491d) 62.79%.

Files Patch % Lines
...rvice/mono/ledger/accounts/ContractCustomizer.java 62.50% 3 Missing ⚠️
...no/store/contracts/AbstractLedgerWorldUpdater.java 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             release/0.46   #11213   +/-   ##
===============================================
  Coverage           62.79%   62.79%           
- Complexity          31011    31012    +1     
===============================================
  Files                3384     3384           
  Lines              136931   136937    +6     
  Branches            14310    14311    +1     
===============================================
+ Hits                85983    85988    +5     
- Misses              47504    47505    +1     
  Partials             3444     3444           

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

Copy link

github-actions bot commented Jan 27, 2024

Node: E2E Test Results

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

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 27, 2024

Node: HAPI Test (Time Consuming) Results

20 tests  ±0   17 ✔️ ±0   45m 7s ⏱️ +38s
  2 suites ±0     3 💤 ±0 
  2 files   ±0     0 ±0 

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 27, 2024

Node: HAPI Test (Smart Contract) Results

445 tests  +1   435 ✔️ ±0   54m 52s ⏱️ +7s
  52 suites ±0       9 💤 ±0 
  52 files   ±0       1 +1 

For more details on these failures, see this check.

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 27, 2024

Node: Integration Test Results

    5 files  ±0      5 suites  ±0   1h 6m 14s ⏱️ +27s
312 tests ±0  312 ✔️ ±0  0 💤 ±0  0 ±0 
314 runs  ±0  314 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 62c491d. ± Comparison against base commit a723e9c.

♻️ This comment has been updated with latest results.

Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
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.

Awesome, LGTM @lukelee-sl !

@Nana-EC
Copy link
Contributor

Nana-EC commented Jan 27, 2024

Single test failure was the new test added here and only affected modularized code.
The failure will be fixed in develop but if covered by the mono code here. @lukelee-sl to add more details

@Nana-EC Nana-EC merged commit 220d188 into release/0.46 Jan 27, 2024
35 of 40 checks passed
@Nana-EC Nana-EC deleted the add-account-to-contract-customizer branch January 27, 2024 05:59
@lukelee-sl
Copy link
Member Author

lukelee-sl commented Jan 27, 2024

There is one failing spec in the HAPI Tests (Smart Contract) check above. It is a spec added by this pr to test the particular issue that this pr looks to address. The test passes in mono service but not in modularized service. Looking deeper, the contract creation fails in modularized service because the address it is trying to call 0x000000000000000000636F6e736F6c652e6c6f67 is not recognized as a valid address and thus the ContractCreate fails. As this pr is addressing an issue in mono service, the failing test is less alarming because the transaction fails. It is an undesirable but not harmful outcome.

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.

None yet

3 participants