Skip to content

Commit

Permalink
build: turn off metamorphic constants for more gen rules
Browse files Browse the repository at this point in the history
This add `COCKROACH_INTERNAL_DISABLE_METAMORPHIC_TESTING=true` to more
tool invocations to cut down on log spam.

Informs cockroachdb#76363

Release note: None
  • Loading branch information
stevendanna authored and RajivTS committed Mar 6, 2022
1 parent 14548f3 commit e0f26ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pkg/sql/colexec/COLEXEC.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ def gen_sort_partitioner_rule(name, target, visibility = ["//visibility:private"
name = name,
srcs = ["//pkg/sql/colexec/colexecbase:distinct_tmpl.go"],
outs = [target],
cmd = """
$(location :execgen) -template $(SRCS) \
-fmt=false pkg/sql/colexec/$@ > $@
$(location :goimports) -w $@
""",
cmd = """\
export COCKROACH_INTERNAL_DISABLE_METAMORPHIC_TESTING=true
$(location :execgen) -template $(SRCS) -fmt=false pkg/sql/colexec/$@ > $@
$(location :goimports) -w $@
""",
tools = [":execgen", ":goimports"],
)
5 changes: 4 additions & 1 deletion pkg/util/fsm/gen/REPORTS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def gen_reports(name, dep, transitions_variable, starting_state_name):
lower = transitions_variable.lower()
native.genrule(
name = name,
cmd = "$(location :{template_name}_bin) $(location {lower}_diagram.gv) $(location {lower}_report.txt) 'bazel build {name}'".format(
cmd = """\
export COCKROACH_INTERNAL_DISABLE_METAMORPHIC_TESTING=true
$(location :{template_name}_bin) $(location {lower}_diagram.gv) $(location {lower}_report.txt) 'bazel build {name}'
""".format(
template_name = template_name,
lower = lower,
name = name,
Expand Down

0 comments on commit e0f26ab

Please sign in to comment.