Skip to content

Commit f7210ed

Browse files
jckingcopybara-github
authored andcommitted
Skip benchmarks during CloudBuild testing
PiperOrigin-RevId: 534102578
1 parent bdfb23f commit f7210ed

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

cloudbuild.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ steps:
88
- '--test_output=errors'
99
- '--distdir=/bazel-distdir'
1010
- '--show_timestamps'
11+
- '--test_tag_filters=-benchmark'
1112
id: gcc-9
1213
waitFor: ['-']
1314
- name: 'gcr.io/cel-analysis/gcc-9:latest'
@@ -22,6 +23,7 @@ steps:
2223
- '--test_output=errors'
2324
- '--distdir=/bazel-distdir'
2425
- '--show_timestamps'
26+
- '--test_tag_filters=-benchmark'
2527
id: clang-11
2628
waitFor: ['-']
2729
timeout: 1h

eval/tests/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ cc_library(
4545
cc_test(
4646
name = "benchmark_test",
4747
size = "small",
48+
tags = ["benchmark"],
4849
deps = [
4950
":benchmark_testlib",
5051
"@com_github_google_benchmark//:benchmark",
@@ -59,6 +60,7 @@ cc_test(
5960
name = "const_folding_benchmark_test",
6061
size = "small",
6162
args = ["--enable_optimizations"],
63+
tags = ["benchmark"],
6264
deps = [
6365
":benchmark_testlib",
6466
"@com_github_google_benchmark//:benchmark",
@@ -72,6 +74,7 @@ cc_test(
7274
srcs = [
7375
"allocation_benchmark_test.cc",
7476
],
77+
tags = ["benchmark"],
7578
deps = [
7679
":request_context_cc_proto",
7780
"//eval/public:activation",
@@ -130,6 +133,7 @@ cc_test(
130133
srcs = [
131134
"expression_builder_benchmark_test.cc",
132135
],
136+
tags = ["benchmark"],
133137
deps = [
134138
":request_context_cc_proto",
135139
"//eval/public:builtin_func_registrar",

parser/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ cc_library(
112112
cc_test(
113113
name = "parser_test",
114114
srcs = ["parser_test.cc"],
115+
tags = ["benchmark"],
115116
deps = [
116117
":options",
117118
":parser",

0 commit comments

Comments
 (0)