Skip to content

dev: add rewritable paths for norm tests#85234

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
mgartner:dev-norm-fix
Jul 29, 2022
Merged

dev: add rewritable paths for norm tests#85234
craig[bot] merged 1 commit intocockroachdb:masterfrom
mgartner:dev-norm-fix

Conversation

@mgartner
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Member

This change is Reviewable

@mgartner
Copy link
Copy Markdown
Contributor Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 28, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 28, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 29, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 29, 2022

Build failed (retrying...):

@craig
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Let's try again.

bors r+

@craig craig bot merged commit 7e2df69 into cockroachdb:master Jul 29, 2022
@craig
Copy link
Copy Markdown
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