-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
roachtest: add version gate for statement in schemachange/mixed/tpcc #40912
roachtest: add version gate for statement in schemachange/mixed/tpcc #40912
Conversation
`schemachange/mixed/tpcc` was failing on 19.1 because `CREATE TABLE AS` with a specified primary key was only added in 19.2. This PR adds a version gate in the test for that statement. Release justification: Fixes a broken test. Release note: None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @lucy-zhang and @pbardea)
pkg/cmd/roachtest/schemachange.go, line 414 at r1 (raw file):
Extra: "--wait=false --tolerate-errors", During: func(ctx context.Context) error { if t.IsBuildVersion(`v19.2.0`) {
Do we want this to check if it is version 19.2 or later? (Rather than exactly 19.2.0?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @pbardea)
pkg/cmd/roachtest/schemachange.go, line 414 at r1 (raw file):
Previously, pbardea (Paul Bardea) wrote…
Do we want this to check if it is version 19.2 or later? (Rather than exactly 19.2.0?)
This method has a misleading name. It actually checks whether the version is at least 19.2.0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @lucy-zhang)
pkg/cmd/roachtest/schemachange.go, line 414 at r1 (raw file):
Previously, lucy-zhang (Lucy Zhang) wrote…
This method has a misleading name. It actually checks whether the version is at least
19.2.0
.
Haha nice. Good to know.
bors r+ |
40912: roachtest: add version gate for statement in schemachange/mixed/tpcc r=lucy-zhang a=lucy-zhang `schemachange/mixed/tpcc` was failing on 19.1 because `CREATE TABLE AS` with a specified primary key was only added in 19.2. This PR adds a version gate in the test for that statement. Fixes #39622. Release justification: Fixes a broken test. Release note: None Co-authored-by: Lucy Zhang <[email protected]>
Build succeeded |
schemachange/mixed/tpcc
was failing on 19.1 becauseCREATE TABLE AS
with aspecified primary key was only added in 19.2. This PR adds a version gate in
the test for that statement.
Fixes #39622.
Release justification: Fixes a broken test.
Release note: None