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 E2E tests in TokenExpiryInfoSuite #9686

Merged
merged 50 commits into from Nov 8, 2023

Conversation

petreze
Copy link
Contributor

@petreze petreze commented Nov 6, 2023

Description:
This PR fixes TokenUpdatePrecompileSuite e2e test. Changes were needed in TokenExpiryCall overriding the execute method in order to handle the test case

Related issue(s):

Fixes #9567

Notes for reviewer:

Checklist

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

MiroslavGatsanoga and others added 30 commits October 26, 2023 16:40
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
method no-op

Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
#9569)

Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Signed-off-by: Timo Brandstätter <timo@swirldslabs.com>
Co-authored-by: Timo Brandstätter <timo@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Austin Littley <austin@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Co-authored-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
… failures. (#9560)

Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
…9600)

Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Lazar Petrovic <lpetrovic05@gmail.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Lev Povolotsky <lev@swirldslabs.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
# Conflicts:
#	hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/exec/scope/HandleSystemContractOperations.java
#	hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/exec/scope/QuerySystemContractOperations.java
#	hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/exec/systemcontracts/hts/AbstractNonRevertibleTokenViewCall.java
#	hedera-node/hedera-smart-contract-service-impl/src/test/java/com/hedera/node/app/service/contract/impl/test/exec/scope/QuerySystemContractOperationsTest.java
…te-expiry-e2e

# Conflicts:
#	hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/exec/systemcontracts/hts/AbstractNonRevertibleTokenViewCall.java
#	hedera-node/hedera-smart-contract-service-impl/src/main/java/com/hedera/node/app/service/contract/impl/exec/systemcontracts/hts/tokenkey/TokenKeyCall.java
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
@petreze petreze self-assigned this Nov 6, 2023
@petreze petreze added the Limechain Work planned for the LimeChain team label Nov 6, 2023
Copy link

github-actions bot commented Nov 6, 2023

Node: Unit Test Results

    2 276 files  ±0      2 276 suites  ±0   1h 30m 37s ⏱️ - 1m 7s
118 363 tests ±0  118 329 ✔️ ±0  34 💤 ±0  0 ±0 
126 624 runs  ±0  126 590 ✔️ ±0  34 💤 ±0  0 ±0 

Results for commit de2caa0. ± Comparison against base commit 527b92a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 6, 2023

Node: E2E Test Results

    1 files      1 suites   21m 0s ⏱️
310 tests 310 ✔️ 0 💤 0
332 runs  332 ✔️ 0 💤 0

Results for commit de2caa0.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 6, 2023

Node: Integration Test Results

280 tests  ±0   280 ✔️ ±0   28m 18s ⏱️ -21s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0 ±0 

Results for commit de2caa0. ± Comparison against base commit 527b92a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 6, 2023

Node: HAPI Test Results

1 242 tests   849 ✔️  1h 25m 26s ⏱️
   165 suites  393 💤
   165 files        0

Results for commit de2caa0.

♻️ This comment has been updated with latest results.

@petreze petreze marked this pull request as ready for review November 8, 2023 14:51
@petreze petreze requested review from a team and tinker-michaelj as code owners November 8, 2023 14:51
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

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

Comparison is base (0806629) 65.44% compared to head (de2caa0) 65.43%.
Report is 7 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9686      +/-   ##
=============================================
- Coverage      65.44%   65.43%   -0.01%     
- Complexity     29983    29986       +3     
=============================================
  Files           3296     3296              
  Lines         125494   125575      +81     
  Branches       13017    13027      +10     
=============================================
+ Hits           82130    82176      +46     
- Misses         40238    40265      +27     
- Partials        3126     3134       +8     
Files Coverage Δ
...edera/node/app/spi/validation/ExpiryValidator.java 0.00% <ø> (ø)
...sus/impl/handlers/ConsensusCreateTopicHandler.java 90.56% <100.00%> (+0.18%) ⬆️
...sus/impl/handlers/ConsensusUpdateTopicHandler.java 77.27% <100.00%> (ø)
.../service/file/impl/handlers/FileCreateHandler.java 90.00% <100.00%> (+0.20%) ⬆️
...n/impl/handlers/NetworkUncheckedSubmitHandler.java 85.71% <ø> (ø)
...mpl/exec/scope/HandleSystemContractOperations.java 100.00% <100.00%> (ø)
...impl/exec/scope/QuerySystemContractOperations.java 100.00% <ø> (ø)
.../impl/exec/systemcontracts/PrngSystemContract.java 97.87% <100.00%> (ø)
...tracts/hts/AbstractNonRevertibleTokenViewCall.java 100.00% <ø> (ø)
...contracts/hts/AbstractRevertibleTokenViewCall.java 100.00% <100.00%> (ø)
... and 13 more

... and 6 files with indirect coverage changes

☔ 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.

LGTM for now, ty @petreze!

We should start thinking about how to extract all these externalizeResult() calls into a single location in HtsSystemContract. 🤔

@petreze petreze merged commit 6f0c423 into develop Nov 8, 2023
16 of 17 checks passed
@petreze petreze deleted the 09567-fix-token-update-expiry-e2e branch November 8, 2023 18:40
Ivo-Yankov pushed a commit that referenced this pull request Nov 9, 2023
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Signed-off-by: Timo Brandstätter <timo@swirldslabs.com>
Signed-off-by: Austin Littley <austin@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Lazar Petrovic <lpetrovic05@gmail.com>
Signed-off-by: Lev Povolotsky <lev@swirldslabs.com>
Co-authored-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Co-authored-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Co-authored-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Co-authored-by: Timo Brandstätter <timo@swirldslabs.com>
Co-authored-by: Austin Littley <102969658+alittley@users.noreply.github.com>
Co-authored-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Matt Hess <matt.hess@swirldslabs.com>
Co-authored-by: Ivan Malygin <ivan@swirldslabs.com>
Co-authored-by: Joseph Sinclair <121976561+jsync-swirlds@users.noreply.github.com>
Co-authored-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Co-authored-by: Kelly Greco <82919061+poulok@users.noreply.github.com>
Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com>
Co-authored-by: Lazar Petrovic <lpetrovic05@gmail.com>
Co-authored-by: Lev Povolotsky <16233475+povolev15@users.noreply.github.com>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
nickpoorman pushed a commit that referenced this pull request Nov 22, 2023
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Signed-off-by: Timo Brandstätter <timo@swirldslabs.com>
Signed-off-by: Austin Littley <austin@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Ivan Malygin <ivan@swirldslabs.com>
Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Cody Littley <cody@swirldslabs.com>
Signed-off-by: Lazar Petrovic <lpetrovic05@gmail.com>
Signed-off-by: Lev Povolotsky <lev@swirldslabs.com>
Co-authored-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Co-authored-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Co-authored-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Co-authored-by: Timo Brandstätter <timo@swirldslabs.com>
Co-authored-by: Austin Littley <102969658+alittley@users.noreply.github.com>
Co-authored-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Matt Hess <matt.hess@swirldslabs.com>
Co-authored-by: Ivan Malygin <ivan@swirldslabs.com>
Co-authored-by: Joseph Sinclair <121976561+jsync-swirlds@users.noreply.github.com>
Co-authored-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Co-authored-by: Kelly Greco <82919061+poulok@users.noreply.github.com>
Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com>
Co-authored-by: Lazar Petrovic <lpetrovic05@gmail.com>
Co-authored-by: Lev Povolotsky <16233475+povolev15@users.noreply.github.com>
Signed-off-by: Nick Poorman <nick@swirldslabs.com>
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 E2E tests in TokenExpiryInfoSuite