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

Out of Order Gossip Simulator #6535

Merged
merged 25 commits into from
May 18, 2023
Merged

Out of Order Gossip Simulator #6535

merged 25 commits into from
May 18, 2023

Conversation

poulok
Copy link
Member

@poulok poulok commented May 10, 2023

Description:
Introduces a new unit test based simulator for Out of Order Gossip and two unit tests showing how it can be used.

Related issue(s):

Fixes #6533
Fixed #6534

Notes for reviewer:

Checklist

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

poulok and others added 11 commits February 28, 2023 14:19
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>

# Conflicts:
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/SwirldsPlatform.java
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/event/GossipEvent.java
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/event/linking/OrphanBufferingLinker.java
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/event/validation/EventDeduplication.java
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/gossip/chatter/protocol/ChatterCore.java
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/gossip/chatter/protocol/messages/EventDescriptor.java
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/gossip/chatter/protocol/peer/PeerGossipState.java
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/main/java/com/swirlds/platform/test/chatter/EventDedup.java
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/main/java/com/swirlds/platform/test/chatter/simulator/EventTracker.java
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/main/java/com/swirlds/platform/test/simulated/SimulatedEventCreationNode.java
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/test/java/com/swirlds/platform/test/event/linking/OrphanBufferTester.java
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
@poulok poulok added this to the v0.39 milestone May 10, 2023
@poulok poulok self-assigned this May 10, 2023
@poulok poulok changed the title 06533 d oog sim Out of Order Gossip Simulator May 10, 2023
@github-actions
Copy link

github-actions bot commented May 10, 2023

Node: Unit Test Results

    1 382 files      1 382 suites   1h 12m 55s ⏱️
  98 444 tests   98 437 ✔️ 7 💤 0
103 609 runs  103 602 ✔️ 7 💤 0

Results for commit a297050.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented May 10, 2023

Node: E2E Test Results

    1 files      1 suites   17m 41s ⏱️
310 tests 310 ✔️ 0 💤 0
328 runs  328 ✔️ 0 💤 0

Results for commit a297050.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented May 10, 2023

Node: Integration Test Results

    4 files      4 suites   13m 57s ⏱️
170 tests 170 ✔️ 0 💤 0
172 runs  172 ✔️ 0 💤 0

Results for commit a297050.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented May 10, 2023

Platform: JUnit Test Report

     523 files           1 errors  522 suites   23m 39s ⏱️
13 821 tests 13 785 ✔️ 36 💤 0
15 806 runs  15 770 ✔️ 36 💤 0

Results for commit a297050.

♻️ This comment has been updated with latest results.

Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>

# Conflicts:
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/main/java/com/swirlds/platform/test/simulated/SimulatedEventCreationNode.java
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
@poulok poulok marked this pull request as ready for review May 12, 2023 15:49
@poulok poulok requested review from a team as code owners May 12, 2023 15:49
@poulok poulok requested review from artemananiev and removed request for artemananiev May 12, 2023 15:50
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>

# Conflicts:
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/main/java/com/swirlds/platform/test/simulated/SimulatedEventCreationNode.java
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>

# Conflicts:
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/main/java/com/swirlds/platform/test/simulated/SimpleSimulatedGossip.java
#	platform-sdk/swirlds-unit-tests/core/swirlds-platform-test/src/test/java/com/swirlds/platform/test/event/creation/EventCreationSimulationTest.java
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
@codecov
Copy link

codecov bot commented May 17, 2023

Codecov Report

Patch coverage has no change and project coverage change: +90.72 🎉

Comparison is base (4b01b06) 0.00% compared to head (a297050) 90.72%.

Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #6535       +/-   ##
==============================================
+ Coverage           0   90.72%   +90.72%     
- Complexity         0    17515    +17515     
==============================================
  Files              0     1389     +1389     
  Lines              0    50477    +50477     
  Branches           0     5091     +5091     
==============================================
+ Hits               0    45796    +45796     
- Misses             0     3710     +3710     
- Partials           0      971      +971     

see 1389 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarcloud
Copy link

sonarcloud bot commented May 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarcloud
Copy link

sonarcloud bot commented May 17, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

43.1% 43.1% Coverage
0.0% 0.0% Duplication

Copy link
Member

@lpetrovic05 lpetrovic05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it a good start, but it will need more work in the future

@nathanklick nathanklick merged commit ba89606 into develop May 18, 2023
38 of 41 checks passed
@nathanklick nathanklick deleted the 06533-D-oog-sim branch May 18, 2023 18:29
nickpoorman pushed a commit that referenced this pull request May 18, 2023
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
iwsimon pushed a commit that referenced this pull request May 19, 2023
Signed-off-by: Kelly Greco <kelly@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.

Add a test to verify the validity of processing time messages Create an OOG simulator framework
5 participants