Skip to content

Commit e723cfa

Browse files
authored
🔪 flaky and Zombienet tests (#8600)
Commenting out all flaky tests and tracking them here #48 Changes: - Disable flaky Rust tests by adding a new disabled feature. `#[ignore]` attribute is not possible since CI runs with `--ignored` - Disable all Zombienet tests - [ ] Waiting for CI what other tests fail. --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
1 parent d0e4aef commit e723cfa

9 files changed

Lines changed: 48 additions & 40 deletions

File tree

‎.github/workflows/zombienet_cumulus.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Zombienet Cumulus
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review]
9-
merge_group:
4+
workflow_dispatch: # Disabled for being flaky
5+
#push:
6+
# branches:
7+
# - master
8+
#pull_request:
9+
# types: [opened, synchronize, reopened, ready_for_review]
10+
#merge_group:
1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1213
cancel-in-progress: true

‎.github/workflows/zombienet_parachain-template.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Zombienet Parachain Templates
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review]
9-
merge_group:
4+
workflow_dispatch: # Disabled for being flaky
5+
#push:
6+
# branches:
7+
# - master
8+
#pull_request:
9+
# types: [opened, synchronize, reopened, ready_for_review]
10+
#merge_group:
1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1213
cancel-in-progress: true

‎.github/workflows/zombienet_polkadot.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Zombienet Polkadot
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review]
9-
merge_group:
4+
workflow_dispatch: # Disabled for being flaky
5+
#push:
6+
# branches:
7+
# - master
8+
#pull_request:
9+
# types: [opened, synchronize, reopened, ready_for_review]
10+
#merge_group:
1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1213
cancel-in-progress: true

‎.github/workflows/zombienet_substrate.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Zombienet Substrate
22

33
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
types: [opened, synchronize, reopened, ready_for_review]
9-
merge_group:
4+
workflow_dispatch: # Disabled for being flaky
5+
#push:
6+
# branches:
7+
# - master
8+
#pull_request:
9+
# types: [opened, synchronize, reopened, ready_for_review]
10+
#merge_group:
1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1213
cancel-in-progress: true

‎.github/zombienet-env‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ RUN_IN_CI=1
88
KUBERNETES_CPU_REQUEST=512m
99
KUBERNETES_MEMORY_REQUEST=1Gi
1010
TEMP_IMAGES_BASE=europe-docker.pkg.dev/parity-ci-2024/temp-images
11-
FLAKY_TESTS="zombienet-polkadot-coretime-revenue, zombienet-polkadot-smoke-0003-deregister-register-validator"
11+
FLAKY_TESTS="zombienet-polkadot-coretime-revenue, zombienet-polkadot-smoke-0003-deregister-register-validator, zombienet-polkadot-elastic-scaling-slot-based-12cores, zombienet-polkadot-elastic-scaling-doesnt-break-parachains, zombienet-polkadot-functional-duplicate-collations, zombienet-polkadot-functional-0002-parachains-disputes, zombienet-polkadot-functional-async-backing-6-seconds-rate, zombienet-polkadot-elastic-scaling-slot-based-3cores, zombienet-polkadot-malus-0001-dispute-valid, zombienet-substrate-0002-validators-warp-sync"

‎Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ unexpected_cfgs = { level = "warn", check-cfg = [
587587
'cfg(build_profile, values("debug", "release"))',
588588
'cfg(enable_alloc_error_handler)',
589589
'cfg(fuzzing)',
590+
'cfg(ignore_flaky_test)',
590591
'cfg(substrate_runtime)',
591592
] }
592593

‎substrate/client/consensus/babe/src/tests.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ async fn run_one_test(mutator: impl Fn(&mut TestHeader, Stage) + Send + Sync + '
423423
.await;
424424
}
425425

426+
#[cfg(ignore_flaky_test)] // https://github.com/paritytech/polkadot-sdk/issues/48
426427
#[tokio::test]
427428
async fn authoring_blocks() {
428429
run_one_test(|_, _| ()).await;
@@ -441,6 +442,7 @@ async fn rejects_missing_inherent_digest() {
441442
.await;
442443
}
443444

445+
#[cfg(ignore_flaky_test)] // https://github.com/paritytech/polkadot-sdk/issues/48
444446
#[tokio::test]
445447
#[should_panic(expected = "has a bad seal")]
446448
async fn rejects_missing_seals() {

‎substrate/client/network/src/discovery.rs‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,26 +1303,26 @@ fn kademlia_protocol_name<Hash: AsRef<[u8]>>(
13031303

13041304
#[cfg(test)]
13051305
mod tests {
1306-
use super::{
1307-
kademlia_protocol_name, legacy_kademlia_protocol_name, DiscoveryConfig, DiscoveryOut,
1308-
};
1306+
use super::{kademlia_protocol_name, legacy_kademlia_protocol_name, DiscoveryConfig};
13091307
use crate::config::ProtocolId;
1310-
use futures::prelude::*;
1311-
use libp2p::{
1312-
core::{
1313-
transport::{MemoryTransport, Transport},
1314-
upgrade,
1315-
},
1316-
identity::Keypair,
1317-
noise,
1318-
swarm::{Swarm, SwarmEvent},
1319-
yamux, Multiaddr,
1320-
};
1308+
use libp2p::{identity::Keypair, Multiaddr};
13211309
use sp_core::hash::H256;
1322-
use std::{collections::HashSet, task::Poll, time::Duration};
13231310

1311+
#[cfg(ignore_flaky_test)] // https://github.com/paritytech/polkadot-sdk/issues/48
13241312
#[tokio::test]
13251313
async fn discovery_working() {
1314+
use super::DiscoveryOut;
1315+
use futures::prelude::*;
1316+
use libp2p::{
1317+
core::{
1318+
transport::{MemoryTransport, Transport},
1319+
upgrade,
1320+
},
1321+
noise,
1322+
swarm::{Swarm, SwarmEvent},
1323+
yamux,
1324+
};
1325+
use std::{collections::HashSet, task::Poll, time::Duration};
13261326
let mut first_swarm_peer_id_and_addr = None;
13271327

13281328
let genesis_hash = H256::from_low_u64_be(1);

‎substrate/client/network/test/src/sync.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,7 @@ async fn sync_to_tip_requires_that_sync_protocol_is_informed_about_best_block()
826826

827827
/// Ensures that if we as a syncing node sync to the tip while we are connected to another peer
828828
/// that is currently also doing a major sync.
829+
#[cfg(ignore_flaky_test)] // https://github.com/paritytech/polkadot-sdk/issues/48
829830
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
830831
async fn sync_to_tip_when_we_sync_together_with_multiple_peers() {
831832
sp_tracing::try_init_simple();

0 commit comments

Comments
 (0)