From 49cd7f681d71280256a54244df68ddb1cec1f33f Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Fri, 1 Dec 2023 14:43:57 -0500 Subject: [PATCH] Ignore specific errors not related to YJIT --- burn_in.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/burn_in.rb b/burn_in.rb index 9920ca0..1dc6d7c 100755 --- a/burn_in.rb +++ b/burn_in.rb @@ -101,7 +101,18 @@ def run_benchmark(bench_name, logs_path, run_time, ruby_version) puts user_cmd_str output, status = Open3.capture2e(env, cmd_str) + # If we got an error if !status.success? + # Lobsters can run into connection errors with multiprocessing (port already taken, etc.), ignore that + if bench_name == "lobsters" && output.include?("HTTP status is") + return false + end + + # Hexapdf can run into errors due to multiprocessing due to filesystem side-effects, ignore that + if bench_name == "hexapdf" && output.include?("Incorrect size") + return false + end + puts "ERROR" # Write command executed and output @@ -110,9 +121,11 @@ def run_benchmark(bench_name, logs_path, run_time, ruby_version) contents = ruby_version + "\n\n" + "pid #{status.pid}\n" + user_cmd_str + "\n\n" + output File.write(out_path, contents) + # Error return true end + # No error return false end