-
Notifications
You must be signed in to change notification settings - Fork 681
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
Flaky test: tests::signer::v0::multiple_miners_empty_sortition #5778
Comments
Sort of duplicate issue (#5777). My logs seem to indicate a different failure:
|
Oops, I missed that one. |
In my logs, at least, the issue seems to be that the test thinks the last bitcoin block has been processed when it queries for the latest sortition (in the logs, the latest bitcoin block is 234, but 234 hasn't been processed yet). That has a simple-ish fix: diff --git a/testnet/stacks-node/src/tests/signer/v0.rs b/testnet/stacks-node/src/tests/signer/v0.rs
index feb870143f..5aca9c618a 100644
--- a/testnet/stacks-node/src/tests/signer/v0.rs
+++ b/testnet/stacks-node/src/tests/signer/v0.rs
@@ -11733,13 +11733,17 @@ fn multiple_miners_empty_sortition() {
// lets mine a btc flash block
let rl2_commits_before = rl2_commits.load(Ordering::SeqCst);
let rl1_commits_before = rl1_commits.load(Ordering::SeqCst);
+ let info_before = get_chain_info(&conf);
+
signer_test
.running_nodes
.btc_regtest_controller
.build_next_block(2);
wait_for(60, || {
- Ok(rl2_commits.load(Ordering::SeqCst) > rl2_commits_before
+ let info = get_chain_info(&conf);
+ Ok(info.burn_block_height >= 2 + info_before.burn_block_height
+ && rl2_commits.load(Ordering::SeqCst) > rl2_commits_before
&& rl1_commits.load(Ordering::SeqCst) > rl1_commits_before)
})
.unwrap(); |
Okay, I'm pretty sure I know why your logs' flake happens: the "flash block" occurs across a reward cycle boundary: the miner can't extend from one reward cycle to the next. |
Sample logs here.
On quick investigation, it appears that both miners are saying that they will not extend their tenures prior to the timeout:
The text was updated successfully, but these errors were encountered: