Skip to content

Commit 03ef5c3

Browse files
test bench fail
1 parent 72296b3 commit 03ef5c3

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

devops/scripts/benchmarks/main.py

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,28 +108,29 @@ def run_iterations(
108108
for iter in range(iters):
109109
log.info(f"running {benchmark.name()}, iteration {iter}... ")
110110
try:
111-
bench_results = benchmark.run(
112-
env_vars, run_trace=run_trace, force_trace=force_trace
113-
)
114-
if bench_results is None:
115-
if options.exit_on_failure:
116-
raise RuntimeError(f"Benchmark produced no results!")
117-
else:
118-
failures[benchmark.name()] = "benchmark produced no results!"
119-
return False
120-
121-
for bench_result in bench_results:
122-
log.info(
123-
f"{benchmark.name()} complete ({bench_result.label}: {bench_result.value:.3f} {bench_result.unit})."
124-
)
125-
bench_result.name = bench_result.label
126-
bench_result.lower_is_better = benchmark.lower_is_better()
127-
bench_result.suite = benchmark.get_suite_name()
128-
129-
if bench_result.label not in results:
130-
results[bench_result.label] = []
131-
132-
results[bench_result.label].append(bench_result)
111+
raise RuntimeError("TEST has failed") # XXX
112+
# bench_results = benchmark.run(
113+
# env_vars, run_trace=run_trace, force_trace=force_trace
114+
# )
115+
# if bench_results is None:
116+
# if options.exit_on_failure:
117+
# raise RuntimeError(f"Benchmark produced no results!")
118+
# else:
119+
# failures[benchmark.name()] = "benchmark produced no results!"
120+
# return False
121+
122+
# for bench_result in bench_results:
123+
# log.info(
124+
# f"{benchmark.name()} complete ({bench_result.label}: {bench_result.value:.3f} {bench_result.unit})."
125+
# )
126+
# bench_result.name = bench_result.label
127+
# bench_result.lower_is_better = benchmark.lower_is_better()
128+
# bench_result.suite = benchmark.get_suite_name()
129+
130+
# if bench_result.label not in results:
131+
# results[bench_result.label] = []
132+
133+
# results[bench_result.label].append(bench_result)
133134
except Exception as e:
134135
failure_label = f"{benchmark.name()} iteration {iter}"
135136
if options.exit_on_failure:

0 commit comments

Comments
 (0)