-
Notifications
You must be signed in to change notification settings - Fork 147
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
chore: Refactor hapi tests to use hapiTest(...)
instead of defaultHapiSpec(...)
(Part 3)
#16698
Conversation
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16698 +/- ##
============================================
+ Coverage 64.24% 64.27% +0.03%
- Complexity 20816 20882 +66
============================================
Files 2547 2549 +2
Lines 95710 95976 +266
Branches 10014 10043 +29
============================================
+ Hits 61485 61687 +202
- Misses 30618 30655 +37
- Partials 3607 3634 +27 |
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com> # Conflicts: # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/hip423/DisabledLongTermExecutionScheduleTest.java # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/hip423/ScheduleLongTermExecutionTest.java # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/hip423/ScheduleLongTermSignTest.java
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com> # Conflicts: # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/hip423/ScheduleLongTermExecutionTest.java # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/hip423/ScheduleLongTermSignTest.java
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com> # Conflicts: # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/hip869/NodeDeleteTest.java
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
The JRS failure looks like a network hiccup, unable to connect to the node (which seemed to succeed on the next attempt). The codacy errors are from the tests themselves, not from the changes I made. |
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.
Taking a break. Got through meta/VersionInfoSpec
. Will return later.
BTW - some comments made on tests later determined not to be "CI" tests but instead "JRS" tests. The ones about no @HapiTest
annotation, you'll recognized them. So ignore that.
...-node/test-clients/src/main/java/com/hedera/services/bdd/suites/fees/AllBaseOpFeesSuite.java
Outdated
Show resolved
Hide resolved
hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/file/FileUpdateSuite.java
Show resolved
Hide resolved
hedera-node/test-clients/src/main/java/com/hedera/services/bdd/suites/file/FileUpdateSuite.java
Outdated
Show resolved
Hide resolved
.../test-clients/src/main/java/com/hedera/services/bdd/suites/file/MidnightUpdateRateSuite.java
Show resolved
Hide resolved
...t-clients/src/main/java/com/hedera/services/bdd/suites/file/negative/UpdateFailuresSpec.java
Show resolved
Hide resolved
...-node/test-clients/src/main/java/com/hedera/services/bdd/suites/freeze/SimpleFreezeOnly.java
Outdated
Show resolved
Hide resolved
...node/test-clients/src/main/java/com/hedera/services/bdd/suites/freeze/UpdateServerFiles.java
Show resolved
Hide resolved
...-node/test-clients/src/main/java/com/hedera/services/bdd/suites/hip904/TokenAirdropTest.java
Show resolved
Hide resolved
...e/test-clients/src/main/java/com/hedera/services/bdd/suites/issues/IssueRegressionTests.java
Show resolved
Hide resolved
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
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.
Finished - LGTM!
97c8b9b
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.
There's no any platform-owned code in this PR, and I don't have a sufficient expertise in these particular tests or area to validate the changes. I'm unsure why GitHub requested a review from platform teams here.
However, I skimmed through the diff and didn't notice anything suspicious in the code changes themselves. From Java perspective, they look good to me. So, approving.
Please do get an expert in this area to review the fix though.
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
01fb6c4
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
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.
Do you know why NodeOpsForUpgrade
and other JRS tests were failing when hapiTest was used?
No idea. Using
|
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
These are run with |
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
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! Thanks @mhess-swl
This PR continues the work for replacing defaultHapiSpec(...) with hapiTest(...). There should be no change to any test conditions.
Part of #16494