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: tests from LeakyContractTestsSuite #9997
fix: tests from LeakyContractTestsSuite #9997
Conversation
…onfiguration when externalizing nonces. Add additional check for exceeded associations. Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Node: E2E Test Results 1 files ± 0 1 suites ±0 21m 55s ⏱️ + 21m 55s Results for commit fcabed2. ± Comparison against base commit edc657a. This pull request removes 1 and adds 311 tests. Note that renamed tests count towards both.
♻️ 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>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #9997 +/- ##
=============================================
- Coverage 65.27% 63.11% -2.16%
- Complexity 30202 30723 +521
=============================================
Files 3329 3335 +6
Lines 126937 134142 +7205
Branches 13198 13915 +717
=============================================
+ Hits 82853 84659 +1806
- Misses 40868 46139 +5271
- Partials 3216 3344 +128 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nonceInfo
feature flag is recent enough, and your implementation is very clean, so keeping that in mod-service seems totally reasonable.
But the token associations limit feature flag we will never re-enable. So continuing to enforce it and adding noticeable code to do so doesn't really make sense. 😞
I think we should remove those changes and replace existing spec autoAssociationSlotsAppearsInInfo()
with,
@HapiTest
private HapiSpec autoAssociationSlotsAppearsInInfo() {
final int maxAutoAssociations = 100;
final String CONTRACT = "Multipurpose";
return propertyPreservingHapiSpec("autoAssociationSlotsAppearsInInfo")
.preserving(CONTRACT_ALLOW_ASSOCIATIONS_PROPERTY)
.given(overriding(
CONTRACT_ALLOW_ASSOCIATIONS_PROPERTY,
"true"))
.when()
.then(
newKeyNamed(ADMIN_KEY),
uploadInitCode(CONTRACT),
contractCreate(CONTRACT).adminKey(ADMIN_KEY).maxAutomaticTokenAssociations(maxAutoAssociations),
getContractInfo(CONTRACT)
.has(ContractInfoAsserts.contractWith().maxAutoAssociations(maxAutoAssociations))
.logged());
}
…be supported. Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
…no longer support feature flag for limit Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
Node: HAPI Test (Misc) Results419 tests +1 316 ✔️ +43 27m 5s ⏱️ + 6m 39s Results for commit fcabed2. ± Comparison against base commit edc657a. This pull request removes 3 and adds 4 tests. Note that renamed tests count towards both.
This pull request removes 3 skipped tests and adds 3 skipped tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Node: HAPI Test (Smart Contract) Results405 tests - 5 325 ✔️ +13 45m 10s ⏱️ + 4m 45s Results for commit fcabed2. ± Comparison against base commit edc657a. This pull request removes 6 and adds 1 tests. Note that renamed tests count towards both.
This pull request removes 6 skipped tests and adds 1 skipped test. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Understood! I Implemented the changes :) |
...mpl/src/main/java/com/hedera/node/app/service/contract/impl/state/RootProxyWorldUpdater.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, ty @mustafauzunn !
Signed-off-by: Valentin Valkanov <valentin.valkanov@limechain.tech>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tyvm @MrValioBg !
Fix tests from LeakyContractTestsSuite.
Description:
In this PR we add check for noncesExternalizationEnabled flag in
RootProxyWorldUpdater
in order to fixcontractCreateNoncesExternalizationHappyPath
&shouldReturnNullWhenContractsNoncesExternalizationFlagIsDisabled
tests.Since limit feature flag won't be supported anymore we just fix the HAPI test
autoAssociationSlotsAppearsInInfo
Related issue(s):
Fixes #9402
#9408
Checklist