This PR removes an infinite loop in the signer when cfg!(test) is active. The rationale for this is that signer integration tests often stop the stacks-node threads (via panic, asserts, etc.) on failure before they stop the signer threads. I think this leads to a situation where a test failure loops indefinitely, which in the CI prevents logs from appearing, making diagnosing CI failures and flaky tests very difficult.
This PR also removes the first block push invocation -- if the first push in the loop succeeds, there's no need to repush.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
This PR removes an infinite loop in the signer when
cfg!(test)
is active. The rationale for this is that signer integration tests often stop thestacks-node
threads (via panic, asserts, etc.) on failure before they stop the signer threads. I think this leads to a situation where a test failure loops indefinitely, which in the CI prevents logs from appearing, making diagnosing CI failures and flaky tests very difficult.This PR also removes the first block push invocation -- if the first push in the loop succeeds, there's no need to repush.