Skip to content

Commit

Permalink
Merge pull request #5785 from jbencin/fix/flaky-test-flash-blocks-on-…
Browse files Browse the repository at this point in the history
…epoch-3-disable

fix: Disable flaky test `flash_blocks_on_epoch_3`
  • Loading branch information
kantai authored Jan 31, 2025
2 parents 6228b9b + 6041be6 commit 26f18d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bitcoin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ jobs:
- tests::neon_integrations::start_stop_bitcoind
- tests::should_succeed_handling_malformed_and_valid_txs
- tests::nakamoto_integrations::simple_neon_integration
- tests::nakamoto_integrations::flash_blocks_on_epoch_3
# Disable this flaky test. We don't need continue testing Epoch 2 -> 3 transition
# - tests::nakamoto_integrations::flash_blocks_on_epoch_3_FLAKY
- tests::nakamoto_integrations::mine_multiple_per_tenure_integration
- tests::nakamoto_integrations::block_proposal_api_endpoint
- tests::nakamoto_integrations::miner_writes_proposed_block_to_stackerdb
Expand Down
8 changes: 7 additions & 1 deletion testnet/stacks-node/src/tests/nakamoto_integrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1968,6 +1968,7 @@ fn restarting_miner() {

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

0 comments on commit 26f18d1

Please sign in to comment.