Skip to content

Second round of snapshottable signer tests #6235

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

rdeioris
Copy link
Contributor

@rdeioris rdeioris commented Jun 30, 2025

Description

This patch adds snapshot support for a set of signer's unit tests

Applicable issues

Additional info (benefits, drawbacks, caveats)

Checklist

  • Test coverage for new or modified code paths
  • Changelog is updated
  • Required documentation changes (e.g., docs/rpc/openapi.yaml and rpc-endpoints.md for v2 endpoints, event-dispatcher.md for new events)
  • New clarity functions have corresponding PR in clarity-benchmarking repo
  • New integration test(s) added to bitcoin-tests.yml

@aldur aldur moved this to Status: 💻 In Progress in Stacks Core Eng Jun 30, 2025
@aldur aldur added this to the 3.1.0.0.13 milestone Jun 30, 2025
@obycode obycode modified the milestones: 3.1.0.0.13, 3.1.0.0.14 Jul 1, 2025
@rdeioris rdeioris marked this pull request as ready for review July 3, 2025 14:54
@rdeioris rdeioris requested review from a team as code owners July 3, 2025 14:54
Copy link
Contributor

@fdefelici fdefelici left a comment

Choose a reason for hiding this comment

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

Is the snapshot activation code missing here?

 if signer_test.bootstrap_snapshot() {
        signer_test.shutdown_and_snapshot();
        return;
 }

Just a heads-up: this might conflict with PR #6212, where @hank reviewed all the tx_replay_* test methods (applying also snapshotting)

@hank
Copy link

hank commented Jul 4, 2025

Just a heads-up: this might conflict with PR #6212, where @hank reviewed all the tx_replay_* test methods (applying also snapshotting)

I did? I don't remember doing that...

@fdefelici
Copy link
Contributor

Just a heads-up: this might conflict with PR #6212, where @hank reviewed all the tx_replay_* test methods (applying also snapshotting)

I did? I don't remember doing that...

I would say yes :) Here an example taken from your PR on test tx_replay_reject_invalid_proposals_during_replay.

image

@hank
Copy link

hank commented Jul 7, 2025

That appears to be from someone called @hstove. I'm @hank.

@hstove
Copy link
Contributor

hstove commented Jul 7, 2025

Yes, as @fdefelici pointed out, these need the "snapshot activation" code. For these to work, you'll also need to add activated_vrf_path, although I added that in to the default config in #6212 , which I would recommend doing here too.

@fdefelici
Copy link
Contributor

That appears to be from someone called @hstove. I'm @hank.

ops! pardon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Status: 💻 In Progress
Development

Successfully merging this pull request may close these issues.

6 participants