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

dev: test vectors seed #10859

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Conversation

greged93
Copy link
Contributor

@greged93 greged93 commented Sep 12, 2024

Adds a print of the seed for the reth-db test vectors used in the benches.

Unfortunately proptest hides the seed in an internal struct which we don't have access to, so we create a seed ourselves (using getrandom as done in proptest) and use this seed for the test.

Resolves #10610

Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

smol request

@@ -37,6 +46,7 @@ pub(crate) fn generate_vectors(mut tables: Vec<String>) -> Result<()> {
tables = all_tables;
}

println!("Seed for test vectors: {:?}", seed);
Copy link
Member

Choose a reason for hiding this comment

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

let's move this outside of the macro, there is no reason for it to be in here

@onbjerg onbjerg added the C-enhancement New feature or request label Sep 12, 2024
@shekhirin shekhirin added C-test A change that impacts how or what we test A-ci Related to github workflows or other build and lint tools and removed C-enhancement New feature or request labels Sep 12, 2024
Copy link
Collaborator

@shekhirin shekhirin left a comment

Choose a reason for hiding this comment

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

LGTM modulo @onbjerg's request

@onbjerg onbjerg added this pull request to the merge queue Sep 12, 2024
Merged via the queue into paradigmxyz:main with commit d63498a Sep 12, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Related to github workflows or other build and lint tools C-test A change that impacts how or what we test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Report seed for failed Proptest tests in CI
3 participants