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

roachtest: add version gate for statement in schemachange/mixed/tpcc #40912

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

thoszhang
Copy link
Contributor

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

`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
@thoszhang thoszhang requested a review from pbardea September 19, 2019 16:38
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@pbardea pbardea left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: 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?)

Copy link
Contributor Author

@thoszhang thoszhang left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: 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.

Copy link
Contributor

@pbardea pbardea left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewable status: :shipit: 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.

@thoszhang
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Sep 19, 2019
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]>
@craig
Copy link
Contributor

craig bot commented Sep 19, 2019

Build succeeded

@craig craig bot merged commit 7ef83c3 into cockroachdb:master Sep 19, 2019
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.

roachtest: schemachange/mixed/tpcc failed
4 participants