Skip to content

util: add crdb_test_off build tag to disable metamorphization#58135

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:crdb_test_off
Dec 21, 2020
Merged

util: add crdb_test_off build tag to disable metamorphization#58135
craig[bot] merged 1 commit intocockroachdb:masterfrom
yuzefovich:crdb_test_off

Conversation

@yuzefovich
Copy link
Copy Markdown
Member

We are now metamorphizing most of the test builds. However, there are
cases where that behavior is undesirable (for example, when using
-rewrite test flag with logic tests) - in such scenarios we want the
"production" build to occur. In order to have such functionality this
commit makes crdb_test build be dependent on the absence of
crdb_test_off build tag. An example usage of -rewrite option would
be make testoptlogic TESTFLAGS='-rewrite' TAGS=crdb_test_off.

Release note: None

We are now metamorphizing most of the test builds. However, there are
cases where that behavior is undesirable (for example, when using
`-rewrite` test flag with logic tests) - in such scenarios we want the
"production" build to occur. In order to have such functionality this
commit makes `crdb_test` build be dependent on the absence of
`crdb_test_off` build tag. An example usage of `-rewrite` option would
be `make testoptlogic TESTFLAGS='-rewrite' TAGS=crdb_test_off`.

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm: Thanks!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @RaduBerinde)

@yuzefovich
Copy link
Copy Markdown
Member Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 21, 2020

Build succeeded:

@craig craig bot merged commit e552218 into cockroachdb:master Dec 21, 2020
@yuzefovich yuzefovich deleted the crdb_test_off branch December 21, 2020 18:27
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