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

test: Add nayduck test for kicking out offline validators #12215

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

tayfunelmas
Copy link
Contributor

@tayfunelmas tayfunelmas commented Oct 14, 2024

We add a simple integration test for checking that offline nodes are kicked out properly. We kill a block+chunk producer and a chunk-validator only node. Assert that these two nodes are kicked out due to no block and endorsement production and not included in the next validators.

This is part of the testing tasks for #11900.

@tayfunelmas tayfunelmas requested a review from a team as a code owner October 14, 2024 11:51
@tayfunelmas tayfunelmas changed the title test: Add nayduck test for kicking out validators test: Add nayduck test for kicking out offline validators Oct 14, 2024
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.83%. Comparing base (e817cb3) to head (544055d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12215      +/-   ##
==========================================
- Coverage   71.84%   71.83%   -0.01%     
==========================================
  Files         827      827              
  Lines      166624   166624              
  Branches   166624   166624              
==========================================
- Hits       119705   119701       -4     
- Misses      41701    41709       +8     
+ Partials     5218     5214       -4     
Flag Coverage Δ
backward-compatibility 0.17% <ø> (ø)
db-migration 0.17% <ø> (ø)
genesis-check 1.25% <ø> (ø)
integration-tests 38.79% <ø> (+<0.01%) ⬆️
linux 71.53% <ø> (+<0.01%) ⬆️
linux-nightly 71.41% <ø> (-0.02%) ⬇️
macos 54.54% <ø> (+<0.01%) ⬆️
pytests 1.57% <ø> (ø)
sanity-checks 1.37% <ø> (ø)
unittests 65.64% <ø> (-0.01%) ⬇️
upgradability 0.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Comment on lines 82 to 83
[["epoch_length", EPOCH_LENGTH], ["num_block_producer_seats", 8],
["num_chunk_producer_seats", 8], ["num_chunk_validator_seats", 16],
Copy link
Member

Choose a reason for hiding this comment

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

Why not 4 and 8? I don't understand how we can get chunk validator-only nodes with number of BPs and CPs = 8 and 8 nodes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because the epoch length was short I was thinking some node is not selected as a block producer, so I was playing with the seats instead to get the right assignment. Increasing epoch length helped, so reduced the seats back to 4/4/8.

pytest/tests/sanity/kickout_offline_validators.py Outdated Show resolved Hide resolved
@tayfunelmas tayfunelmas added this pull request to the merge queue Oct 14, 2024
Merged via the queue into near:master with commit 8cfa7a7 Oct 14, 2024
29 of 30 checks passed
@tayfunelmas tayfunelmas deleted the offline-validators branch October 14, 2024 17:12
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.

2 participants