Skip to content

Frost client integration tests for dkg#75

Merged
edwin1729 merged 1 commit into
mainfrom
frost-client-integration-tests
Aug 15, 2025
Merged

Frost client integration tests for dkg#75
edwin1729 merged 1 commit into
mainfrom
frost-client-integration-tests

Conversation

@edwin1729

@edwin1729 edwin1729 commented Aug 13, 2025

Copy link
Copy Markdown
Member

The test spawns subprocesses and works and extracts outputs using regex matching. All outputs are are stored in frost-client/tests/assets and deleted and regenerated for each test. The test is parametric over threshold (T) and max-signers (N). There is some dodginess in the fact that a sleep is used so that the dkg coordinator properly starts before a dkg participant can start.

@edwin1729 edwin1729 force-pushed the frost-client-integration-tests branch 2 times, most recently from 539d1b0 to b2b04f0 Compare August 13, 2025 21:04
@edwin1729

edwin1729 commented Aug 13, 2025

Copy link
Copy Markdown
Member Author

If you want to enable all the verbose message coming from the subprocesses in the terminal, this can be done easily by uncommenting the indicated lines (search "control verbosity")

This PR completes half of #59

@edwin1729 edwin1729 marked this pull request as ready for review August 13, 2025 21:08
@edwin1729 edwin1729 requested review from jCabala and scaraven August 13, 2025 21:08

@scaraven scaraven left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some small minor changes, which can be implemented in later PRs. However, the integration test should all go under a tests/ folder and marked as a test (with #[test]) so that CI automatically runs it.

Comment thread Cargo.toml
Comment thread frost-client/examples/integration-tests.rs
Comment thread frost-client/examples/integration-tests.rs Outdated
Comment thread frost-client/examples/integration-tests.rs Outdated
@edwin1729 edwin1729 force-pushed the frost-client-integration-tests branch from b2b04f0 to 36dac57 Compare August 15, 2025 09:47
@edwin1729 edwin1729 requested a review from scaraven August 15, 2025 09:52
@edwin1729

Copy link
Copy Markdown
Member Author

All comments addressed

@edwin1729

Copy link
Copy Markdown
Member Author

Actually nevermind ci still won't work

@edwin1729 edwin1729 force-pushed the frost-client-integration-tests branch 7 times, most recently from 8159545 to dcd6780 Compare August 15, 2025 13:01
@edwin1729 edwin1729 force-pushed the frost-client-integration-tests branch from dcd6780 to ac3308c Compare August 15, 2025 13:11
Ok(())
}

#[test]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add a small comment either here or at the beginning of the file explaining what the tests do. Otherwise looking good!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point I have no comments, will add in the next pr

@edwin1729 edwin1729 merged commit 5949fca into main Aug 15, 2025
2 of 3 checks passed
@scaraven scaraven deleted the frost-client-integration-tests branch August 18, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants