Skip to content

Commit 6285a72

Browse files
authored
[BUILD] Fix benchmark genrule capturing stderr into JSON output (open-telemetry#3925)
1 parent bef0b90 commit 6285a72

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Increment the:
1515

1616
## [Unreleased]
1717

18+
* [BUILD] Fix benchmark genrule capturing stderr into JSON output
19+
[#3925](https://github.com/open-telemetry/opentelemetry-cpp/pull/3925)
20+
1821
* [TEST] Add multi-threaded metrics benchmarks for shared vs per-thread counter
1922
[#3865](https://github.com/open-telemetry/opentelemetry-cpp/pull/3865)
2023

bazel/otel_cc_benchmark.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def otel_cc_benchmark(name, srcs, deps, tags = [""]):
4040
tools = [":" + name],
4141
tags = tags + ["benchmark_result", "manual"],
4242
testonly = True,
43-
cmd = "$(location :" + name + (") --benchmark_format=json --benchmark_color=false --benchmark_min_time=.1s &> $@"),
43+
cmd = "$(location :" + name + (") --benchmark_format=json --benchmark_color=false --benchmark_min_time=.1s > $@ 2>/dev/null"),
4444
)
4545

4646
# This is run as part of "bazel test ..." to smoke-test benchmarks. It's

0 commit comments

Comments
 (0)