Skip to content

Commit

Permalink
Bisect on nightly failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Feb 6, 2024
1 parent 3c59d3f commit 841313b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion userbenchmark/test_bench/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ def run_config(
except OSError as e:
print(" [oserror]", flush=True)
return dict.fromkeys(metrics, str(e))
except KeyboardInterrupt:
print(" [user_interrupt]")
exit(1)
except Exception as e:
print(" [runtime_error]", flush=True)
return dict.fromkeys(metrics, str(e))


def run_config_accuracy(
Expand All @@ -196,7 +202,12 @@ def run_config_accuracy(
except OSError as e:
print(" [oserror]", flush=True)
return {"accuracy": str(e)}

except KeyboardInterrupt:
print(" [user_interrupt]")
exit(1)
except Exception as e:
print(" [runtime_error]", flush=True)
return {"accuracy": str(e)}

def parse_known_args(args):
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit 841313b

Please sign in to comment.