Skip to content

Commit 26f18d1

Browse files
authored
Merge pull request #5785 from jbencin/fix/flaky-test-flash-blocks-on-epoch-3-disable
fix: Disable flaky test `flash_blocks_on_epoch_3`
2 parents 6228b9b + 6041be6 commit 26f18d1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ jobs:
8383
- tests::neon_integrations::start_stop_bitcoind
8484
- tests::should_succeed_handling_malformed_and_valid_txs
8585
- tests::nakamoto_integrations::simple_neon_integration
86-
- tests::nakamoto_integrations::flash_blocks_on_epoch_3
86+
# Disable this flaky test. We don't need continue testing Epoch 2 -> 3 transition
87+
# - tests::nakamoto_integrations::flash_blocks_on_epoch_3_FLAKY
8788
- tests::nakamoto_integrations::mine_multiple_per_tenure_integration
8889
- tests::nakamoto_integrations::block_proposal_api_endpoint
8990
- tests::nakamoto_integrations::miner_writes_proposed_block_to_stackerdb

testnet/stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,6 +1968,7 @@ fn restarting_miner() {
19681968

19691969
#[test]
19701970
#[ignore]
1971+
#[allow(non_snake_case)]
19711972
/// This test spins up a nakamoto-neon node.
19721973
/// It starts in Epoch 2.0, mines with `neon_node` to Epoch 3.0,
19731974
/// having flash blocks when epoch updates and expects everything to work normally,
@@ -1977,7 +1978,12 @@ fn restarting_miner() {
19771978
/// * 30 blocks are mined after 3.0 starts. This is enough to mine across 2 reward cycles
19781979
/// * A transaction submitted to the mempool in 3.0 will be mined in 3.0
19791980
/// * The final chain tip is a nakamoto block
1980-
fn flash_blocks_on_epoch_3() {
1981+
///
1982+
/// NOTE: This test has been disabled because it's flaky, and we don't need to
1983+
/// test the Epoch 3 transition since it's already happened
1984+
///
1985+
/// See issue [#5765](https://github.com/stacks-network/stacks-core/issues/5765) for details
1986+
fn flash_blocks_on_epoch_3_FLAKY() {
19811987
if env::var("BITCOIND_TEST") != Ok("1".into()) {
19821988
return;
19831989
}

0 commit comments

Comments
 (0)