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

Add marketplace integration test #3569

Merged
merged 4 commits into from
Aug 16, 2024
Merged

Add marketplace integration test #3569

merged 4 commits into from
Aug 16, 2024

Conversation

ss-es
Copy link
Contributor

@ss-es ss-es commented Aug 13, 2024

This PR:

  • Allows integration tests to be configured to perform an upgrade at a given view.
  • Reworks the consistency_task to ensure that an upgrade certificate is actually attached to some leaf.
  • Adds a test_success_marketplace to test that an upgrade to the marketplace completes successfully and continues to run without any view failures.

This PR does not:

Key places to review:

You can run the test on this branch with RUST_LOG=hotshot_task_impls=debug just cargo test test_success_marketplace -- --nocapture

@ss-es ss-es marked this pull request as ready for review August 15, 2024 19:09
@ss-es ss-es requested a review from bfish713 as a code owner August 15, 2024 19:09
Copy link
Collaborator

@bfish713 bfish713 left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me, just one question and maybe somebody working on the marketplace can confirm this is testing what you need

crates/testing/tests/tests_1/test_success.rs Outdated Show resolved Hide resolved
@@ -349,7 +351,7 @@ impl<
}

fn get_auction_results(&self) -> Option<TYPES::AuctionResult> {
unimplemented!()
Some(TYPES::AuctionResult { urls: vec![] })
Copy link
Member

Choose a reason for hiding this comment

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

Can we make an issue to update this once the simple builder supports the marketplace?

Copy link
Contributor

Choose a reason for hiding this comment

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

We should also enable transaction generation and checking that blocks contain transactions in tests when simple builder is updated, so that the test check the builder interaction as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! #3583

Copy link
Contributor

@QuentinI QuentinI left a comment

Choose a reason for hiding this comment

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

LGTM with some questions

@ss-es ss-es merged commit e87fc54 into main Aug 16, 2024
36 checks passed
@ss-es ss-es deleted the ss/marketplace-testing branch August 16, 2024 15:52
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.

4 participants