zziang commited on
Commit
2eeec3c
·
verified ·
1 Parent(s): 9e7e78e

surface stage failures instead of printing rc

Browse files
Files changed (1) hide show
  1. kaggle/notebook_finish.py +4 -0
kaggle/notebook_finish.py CHANGED
@@ -53,10 +53,14 @@ def main() -> None:
53
  print("== export + quantise ==", flush=True)
54
  rc = run("export")
55
  print("export rc", rc)
 
 
56
 
57
  print("== eval ==", flush=True)
58
  rc = run("eval", {"EVAL_VOICES": EVAL_VOICES})
59
  print("eval rc", rc)
 
 
60
 
61
 
62
  if __name__ == "__main__":
 
53
  print("== export + quantise ==", flush=True)
54
  rc = run("export")
55
  print("export rc", rc)
56
+ if rc != 0:
57
+ raise SystemExit("export/quantise failed")
58
 
59
  print("== eval ==", flush=True)
60
  rc = run("eval", {"EVAL_VOICES": EVAL_VOICES})
61
  print("eval rc", rc)
62
+ if rc != 0:
63
+ raise SystemExit("eval failed")
64
 
65
 
66
  if __name__ == "__main__":