-
Notifications
You must be signed in to change notification settings - Fork 210
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
Conversation
7c30cf4
to
66d0c28
Compare
|
||
/// Run federation with 1/4 guardians offline | ||
#[arg(long, env = "FM_DEVIMINT_DEGRADED")] | ||
pub degraded: bool, |
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.
I stuck this on the "common" arguments so I didn't have copy/paste this for every test command ...
66d0c28
to
1b799ac
Compare
scripts/tests/test-ci-all.sh
Outdated
@@ -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 |
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.
This just sets a default to run all these tests with 1 guardians offline. I'm not sure what's best to do here.
Codecov ReportAttention:
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. |
1b799ac
to
fc772e5
Compare
@@ -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 { |
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.
if (u16::from(peer_id)) >= num_online { | |
if u16::from(peer_id) >= num_online { |
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 ...
6fb3428
to
11dfaf5
Compare
I think @bradleystachurski took this over in #4247 |
FM_DEVIMINT_DEGRADED
environment variable.FederationTest
fixture to start with 1 guardian offlineFederationTests
so we can try any valid federation size and number of online / offline guardians. But I didn't attempt this here.