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

Run devimint and rust tests with 1/4 guardians offline #4198

Closed
wants to merge 3 commits into from

Conversation

justinmoon
Copy link
Contributor

@justinmoon justinmoon commented Feb 1, 2024

  • Extended [0.2] devimint latency tests with degraded federations #4181 allowing all devimint tests to run with with 1 guardian offline. This condition is now triggered by FM_DEVIMINT_DEGRADED environment variable.
  • Modified the FederationTest fixture to start with 1 guardian offline
  • In the future we should parameterize devimint and FederationTests so we can try any valid federation size and number of online / offline guardians. But I didn't attempt this here.


/// Run federation with 1/4 guardians offline
#[arg(long, env = "FM_DEVIMINT_DEGRADED")]
pub degraded: bool,
Copy link
Contributor Author

@justinmoon justinmoon Feb 1, 2024

Choose a reason for hiding this comment

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

I stuck this on the "common" arguments so I didn't have copy/paste this for every test command ...

@@ -5,6 +5,9 @@ set -euo pipefail
# prevent locale settings messing with some setups
export LANG=C

# run with 1 guardian offline
export FM_DEVIMINT_DEGRADED=1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This just sets a default to run all these tests with 1 guardians offline. I'm not sure what's best to do here.

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

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

Comparison is base (7fe0a20) 57.95% compared to head (11dfaf5) 57.94%.

Files Patch % Lines
devimint/src/tests.rs 0.00% 16 Missing ⚠️
devimint/src/cli.rs 0.00% 6 Missing ⚠️
devimint/src/devfed.rs 0.00% 6 Missing ⚠️
devimint/src/federation.rs 0.00% 3 Missing ⚠️
fedimint-testing/src/fixtures.rs 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4198      +/-   ##
==========================================
- Coverage   57.95%   57.94%   -0.02%     
==========================================
  Files         197      197              
  Lines       43413    43429      +16     
==========================================
+ Hits        25161    25163       +2     
- Misses      18252    18266      +14     

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

@@ -102,6 +104,9 @@ impl FederationTest {

let mut task = TaskGroup::new();
for (peer_id, config) in configs.clone() {
if (u16::from(peer_id)) >= num_online {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (u16::from(peer_id)) >= num_online {
if u16::from(peer_id) >= num_online {

@justinmoon justinmoon mentioned this pull request Feb 1, 2024
17 tasks
maan2003 and others added 3 commits February 2, 2024 19:56
This runs them with 1/4 guardians offline
This probably isn't the right thing to do here. Mostly just trying to
see what happens in CI ...
@elsirion
Copy link
Contributor

elsirion commented Feb 7, 2024

I think @bradleystachurski took this over in #4247

@elsirion elsirion closed this Feb 7, 2024
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.

None yet

4 participants