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: add rewritable paths for norm tests #85234

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Jul 28, 2022

Tests in pkg/sql/opt/norm are similar to tests in pkg/sql/opt/xform
and pkg/sql/opt/memo in that they rely on fixtures in
pkg/sql/opt/testutils/opttester/testfixtures. This commit adds these
fixtures as rewritable paths for norm tests so that
./dev test pkg/sql/opt/xform --rewrite does not fail with errors like:

open pkg/sql/opt/testutils/opttester/testfixtures/tpcc_schema: operation not permitted

Release note: None

@mgartner mgartner requested a review from a team as a code owner July 28, 2022 15:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 28, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 28, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 29, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 29, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jul 29, 2022

Build failed:

Tests in `pkg/sql/opt/norm` are similar to tests in `pkg/sql/opt/xform`
and `pkg/sql/opt/memo` in that they rely on fixtures in
`pkg/sql/opt/testutils/opttester/testfixtures`. This commit adds these
fixtures as rewritable paths for norm tests so that
`./dev test pkg/sql/opt/xform --rewrite` does not fail with errors like:

    open pkg/sql/opt/testutils/opttester/testfixtures/tpcc_schema: operation not permitted

Release note: None
@mgartner
Copy link
Collaborator Author

Let's try again.

bors r+

@craig craig bot merged commit 7e2df69 into cockroachdb:master Jul 29, 2022
@craig
Copy link
Contributor

craig bot commented Jul 29, 2022

Build succeeded:

@mgartner mgartner deleted the dev-norm-fix branch July 29, 2022 21:15
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