Skip to content

Commit b61688f

Browse files
steve-stimfel
authored andcommitted
Fix Bytecode DSL checking in heap benchmarks
1 parent fff1647 commit b61688f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mx.graalpython/mx_graalpython_benchmark.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ def run(self, *args, **kwargs):
284284
dims['host-vm-config'] += '-3-compiler-threads'
285285

286286
is_bytecode_dsl_config = self.is_bytecode_dsl_config()
287-
if code == 0 and not f"using bytecode DSL interpreter: {is_bytecode_dsl_config}" in out:
287+
if "using bytecode DSL interpreter:" not in out:
288+
# Let's be lenient unless in CI
289+
print(f"BENCHMARK WARNING: could not verify whether running on bytecode DSL or not")
290+
elif code == 0 and not f"using bytecode DSL interpreter: {is_bytecode_dsl_config}" in out:
288291
print(f"ERROR: host VM config does not match what the the harness reported. "
289292
f"Expected Bytecode DSL interpreter = {is_bytecode_dsl_config}. Harness output:\n{out}", file=sys.stderr)
290293
return 1, out, dims

0 commit comments

Comments
 (0)