Skip to content

Commit 37f2ec5

Browse files
test bench fail 2
1 parent 72296b3 commit 37f2ec5

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

devops/scripts/benchmarks/main.py

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,28 +108,33 @@ 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+
# XXX
112+
failure_label = f"{benchmark.name()} iteration {iter}"
113+
failures[failure_label] = (f"{failure_label}: TEST FAIL")
114+
log.error(f"{failure_label}: TEST FAIL")
115+
return False
116+
# bench_results = benchmark.run(
117+
# env_vars, run_trace=run_trace, force_trace=force_trace
118+
# )
119+
# if bench_results is None:
120+
# if options.exit_on_failure:
121+
# raise RuntimeError(f"Benchmark produced no results!")
122+
# else:
123+
# failures[benchmark.name()] = "benchmark produced no results!"
124+
# return False
125+
126+
# for bench_result in bench_results:
127+
# log.info(
128+
# f"{benchmark.name()} complete ({bench_result.label}: {bench_result.value:.3f} {bench_result.unit})."
129+
# )
130+
# bench_result.name = bench_result.label
131+
# bench_result.lower_is_better = benchmark.lower_is_better()
132+
# bench_result.suite = benchmark.get_suite_name()
133+
134+
# if bench_result.label not in results:
135+
# results[bench_result.label] = []
136+
137+
# results[bench_result.label].append(bench_result)
133138
except Exception as e:
134139
failure_label = f"{benchmark.name()} iteration {iter}"
135140
if options.exit_on_failure:

0 commit comments

Comments
 (0)