Repository navigation
colab exec exits 0 when the remote code raises
#250
GongYuanCaiJi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Version: 0.7.6 (Linux)
colab execexits 0 when the remote code raises, so a script or agent can't tell success from failure by the exit status.Repro
Output: the
ValueError: boomtraceback, thenexit=0.Where:
commands/execution.pyexeccallsruntime.execute_code(...)and logs the outputs, but never checks them for anerroroutput, so the command returns normally.Expected: a nonzero exit when the executed code raises (for example
typer.Exit(1)if any output hasoutput_type == "error"), likepython script.pydoes.Workaround we use today: the remote script writes its own result file and prints a marker, and we check for those instead of the exit status.
All reactions