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

storage/metamorphic: add TestCompareFiles #86189

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Aug 15, 2022

Add a new MVCC metamorphic test entrypoint, TestCompareFiles, that takes a
check file through --check and one or more output.metas through
--compare-files. The test runs the configurations specified through
--compare-files against the specified --check file, parsing out the encoded
Pebble options.

Release note: None
Release justification: Non-production code changes

@jbowens jbowens requested a review from a team as a code owner August 15, 2022 23:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jbowens jbowens requested a review from itsbilal August 15, 2022 23:13
@jbowens jbowens force-pushed the metamorphic-compare-files branch from be07895 to aa98c81 Compare August 16, 2022 12:07
Copy link
Collaborator

@nicktrav nicktrav left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @itsbilal and @jbowens)


pkg/storage/metamorphic/meta_test.go line 335 at r1 (raw file):

//      --test-args '--compare-files=/Users/craig/archive/random8.meta'
//
// The above example supples `--in-mem`. This may be useful to produce quick

nit: supplies

Add a new MVCC metamorphic test entrypoint, TestCompareFiles, that takes a
check file through `--check` and one or more output.metas through
`--compare-files`. The test runs the configurations specified through
`--compare-files` against the specified `--check` file, parsing out the encoded
Pebble options.

Release note: None
Release justification: Non-production code changes
@jbowens jbowens force-pushed the metamorphic-compare-files branch from aa98c81 to d290dc5 Compare August 25, 2022 18:56
@jbowens
Copy link
Collaborator Author

jbowens commented Aug 25, 2022

TFTR!

bors r=nicktrav

@craig
Copy link
Contributor

craig bot commented Aug 25, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Aug 25, 2022

Build succeeded:

@craig craig bot merged commit 5c0af43 into cockroachdb:master Aug 25, 2022
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