Skip to content
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

Chore: Fix some flaky signer tests #5202

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Chore: Fix some flaky signer tests #5202

merged 3 commits into from
Sep 18, 2024

Conversation

kantai
Copy link
Member

@kantai kantai commented Sep 17, 2024

This fixes:

  • signer::v0::locally_rejected_blocks_overriden_by_global_acceptance
  • signer::v0::reorg_locally_accepted_blocks_across_tenures_succeeds

These tests previously depended on the blocks_mined counter and then immediately checked a v2/info assertion. This is a race condition: the stacks-node may not have processed the mined block yet. This caused test flake in CI (but usually not in local runs where machines are fast enough to never experience this condition).

This doesn't resolve any of the other test flake (signer_set_rollover and mine_2_nakamoto_reward_cycles)

Fixes:

* signer::v0::locally_rejected_blocks_overriden_by_global_acceptance
* signer::v0::reorg_locally_accepted_blocks_across_tenures_succeeds

These tests used to depend on the `blocks_mined` counter and then immediately check a `v2/info` assertion -- this is a race condition: the stacks-node may not have processed the mined block yet. This caused test flake in CI (but usually not in local runs where machines are fast enough to never experience this condition).
@kantai kantai requested a review from a team as a code owner September 17, 2024 20:32
obycode
obycode previously approved these changes Sep 17, 2024
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jcnelson jcnelson self-requested a review September 18, 2024 00:13
Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to move this along

@kantai kantai added this pull request to the merge queue Sep 18, 2024
Merged via the queue into develop with commit 049ac5a Sep 18, 2024
1 check passed
@blockstack-devops
Copy link
Contributor

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.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants