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

Add a spec for Restart test #10105

Merged
merged 17 commits into from Nov 28, 2023
Merged

Add a spec for Restart test #10105

merged 17 commits into from Nov 28, 2023

Conversation

Neeharika-Sompalli
Copy link
Member

@Neeharika-Sompalli Neeharika-Sompalli commented Nov 27, 2023

Fixes #9964

  • Added a test suite that does submit mixed operations, freeze, stops nodes, restarts nodes, waits for ACTIVE status, and then submits some more mixed operations.
  • Updated all Service schemas to use Current Version instead of Genesis version

Testing:

  1. In swirlds.log I could see
    • Platform freezes with following log
2023-11-26 22:52:03.830 545      INFO  PLATFORM_STATUS  <<platform: status-state-machine>> PlatformStatusStateMachine: Platform spent 34.7 s in ACTIVE. Now in FREEZING {"oldStatus":"ACTIVE","newStatus":"FREEZING"} [com.swirlds.logging.legacy.payload.PlatformStatusPayload]
2023-11-26 22:52:03.841 547      INFO  FREEZE           <<platform-core: thread-cons 0>> DualStateImpl: setLastFrozenTimeToBeCurrentFreezeTime: 2023-11-27T04:52:03.597263Z
2023-11-26 22:52:03.855 548      INFO  FREEZE           <<platform-core: thread-cons 0>> DualStateImpl: Set last frozen time {"lastFrozenTime":"2023-11-27T04:52:03.597263Z"} [com.swirlds.logging.legacy.payload.SetLastFrozenTimePayload]
2023-11-26 22:52:03.898 550      INFO  STATE_TO_DISK    <<platform-core: thread-curr 0>> SavedStateController: Signed state from round 255 created, will eventually be written to disk, for reason: FREEZE_STATE
2023-11-26 22:52:03.902 551      INFO  STATE_TO_DISK    <<scheduler signed_state_file_manager>> SignedStateFileWriter: Started writing round 255 state to disk. Reason: FREEZE_STATE, directory: /Users/neeharikasompalli/Documents/Hedera/Repos/hedera-services/hedera-node/test-clients/build/hapi-test/node0/data/saved/com.hedera.services.ServicesMain/0/123/255
2023-11-26 22:52:06.302 560      INFO  STATE_TO_DISK    <<scheduler signed_state_file_manager>> SignedStateFileWriter: Information for state written to disk:
  • Then writes saved state and shuts down
2023-11-26 22:52:06.677 566      INFO  PLATFORM_STATUS  <<platform: status-state-machine>> PlatformStatusStateMachine: Platform spent 2.8 s in FREEZING. Now in FREEZE_COMPLETE {"oldStatus":"FREEZING","newStatus":"FREEZE_COMPLETE"} [com.swirlds.logging.legacy.payload.PlatformStatusPayload]
2023-11-26 22:52:08.931 567      INFO  STARTUP          <<browser: shutdown-hook>> Log4jSetup: JVM is shutting down.
  • Loads last written state
2023-11-26 22:52:39.783 25       INFO  STARTUP          <main> StartupStateUtils: Platform has loaded a saved state {"round":255,"consensusTimestamp":"2023-11-27T04:52:03.598460Z"} [com.swirlds.logging.legacy.payload.SavedStateLoadedPayload]
2023-11-26 22:52:39.807 26       INFO  STARTUP          <main> BootstrapUtils: Not upgrading software, current software is version HederaSoftwareVersion{hapiVersion=v0.44.0, servicesVersion=v0.45.0-SNAPSHOT}.
2023-11-26 22:52:39.808 27       INFO  STARTUP          <main> AddressBookInitializer: Using the loaded state's address book and weight values.
  • Turns ACTIVE
2023-11-26 22:52:53.040 50       INFO  PLATFORM_STATUS  <<platform: status-state-machine>> PlatformStatusStateMachine: Platform spent 868.0 ms in CHECKING. Now in ACTIVE {"oldStatus":"CHECKING","newStatus":"ACTIVE"} [com.swirlds.logging.legacy.payload.PlatformStatusPayload]

Client Log:
Submits all transactions after restart successfully

NOTE:

  • When the platform loads state, the BlockRecordService.BLOCKS hash is different from what is written while freezing. Still need to Debug why that happens.

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Misc) Results

418 tests  ±0   286 ✔️ +3   25m 0s ⏱️ + 3m 29s
  73 suites ±0   132 💤  - 3 
  73 files   ±0       0 ±0 

Results for commit 1611c44. ± Comparison against base commit eb581b42.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Crypto) Results

211 tests  ±0   201 ✔️ ±0   21m 9s ⏱️ + 3m 40s
  22 suites ±0     10 💤 ±0 
  22 files   ±0       0 ±0 

Results for commit 1611c44. ± Comparison against base commit eb581b42.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Token) Results

190 tests  ±0   188 ✔️ ±0   22m 25s ⏱️ + 4m 53s
  13 suites ±0       2 💤 ±0 
  13 files   ±0       0 ±0 

Results for commit 1611c44. ± Comparison against base commit eb581b42.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: Unit Test Results

    2 286 files  ±0      2 286 suites  ±0   50m 44s ⏱️ + 3m 39s
118 388 tests +2  118 354 ✔️ +2  34 💤 ±0  0 ±0 
126 760 runs  +2  126 726 ✔️ +2  34 💤 ±0  0 ±0 

Results for commit 1611c44. ± Comparison against base commit eb581b42.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

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

Comparison is base (eb581b4) 63.12% compared to head (1611c44) 63.13%.
Report is 3 commits behind head on develop.

Files Patch % Lines
...main/java/com/hedera/node/app/fees/FeeService.java 0.00% 20 Missing ⚠️
.../service/networkadmin/impl/NetworkServiceImpl.java 0.00% 3 Missing ⚠️
.../java/com/hedera/node/app/ids/EntityIdService.java 50.00% 1 Missing and 1 partial ⚠️
...src/main/java/com/hedera/node/app/spi/Service.java 0.00% 1 Missing ⚠️
...om/hedera/node/app/records/BlockRecordService.java 88.88% 0 Missing and 1 partial ⚠️
...a/node/app/throttle/CongestionThrottleService.java 0.00% 1 Missing ⚠️
...p/service/consensus/impl/ConsensusServiceImpl.java 0.00% 1 Missing ⚠️
...p/service/networkadmin/impl/FreezeServiceImpl.java 83.33% 0 Missing and 1 partial ⚠️
.../node/app/service/token/impl/TokenServiceImpl.java 0.00% 1 Missing ⚠️
...de/app/service/token/impl/schemas/TokenSchema.java 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10105      +/-   ##
=============================================
+ Coverage      63.12%   63.13%   +0.01%     
- Complexity     30689    30696       +7     
=============================================
  Files           3327     3327              
  Lines         133864   133875      +11     
  Branches       13873    13880       +7     
=============================================
+ Hits           84498    84523      +25     
+ Misses         46032    46014      -18     
- Partials        3334     3338       +4     

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

Copy link

github-actions bot commented Nov 27, 2023

Node: E2E Test Results

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

Results for commit 1611c44. ± Comparison against base commit eb581b42.

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 27, 2023

Node: HAPI Test (Time Consuming) Results

21 tests  ±0     9 ✔️ ±0   26m 37s ⏱️ + 1m 19s
  2 suites ±0   12 💤 ±0 
  2 files   ±0     0 ±0 

Results for commit 1611c44. ± Comparison against base commit eb581b42.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: Integration Test Results

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

Results for commit 1611c44. ± Comparison against base commit eb581b42.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Smart Contract) Results

411 tests  ±0   318 ✔️ ±0   42m 16s ⏱️ +30s
  56 suites ±0     93 💤 ±0 
  56 files   ±0       0 ±0 

Results for commit 1611c44. ± Comparison against base commit eb581b42.

♻️ This comment has been updated with latest results.

Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
@Neeharika-Sompalli Neeharika-Sompalli self-assigned this Nov 27, 2023
@Neeharika-Sompalli Neeharika-Sompalli marked this pull request as ready for review November 27, 2023 15:36
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@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.

This all makes sense to me, ty @Neeharika-Sompalli ! 🥂

@Neeharika-Sompalli Neeharika-Sompalli merged commit d25c2a6 into develop Nov 28, 2023
23 of 25 checks passed
@Neeharika-Sompalli Neeharika-Sompalli deleted the 9964-D-restart-testing branch November 28, 2023 19:06
agadzhalov pushed a commit that referenced this pull request Dec 1, 2023
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
agadzhalov pushed a commit that referenced this pull request Dec 1, 2023
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
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.

Create a restart HapiSpecOp that will freeze and start all HapiTestEngine nodes
3 participants