Skip to content

Commit

Permalink
More logs for cloud build
Browse files Browse the repository at this point in the history
  • Loading branch information
DonggeLiu committed Aug 24, 2024
1 parent 935da06 commit 2ce4e43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion experiment/build/gcb_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def _build(
# TODO(metzman): Refactor code so that local_build stores logs as well.
build_utils.store_build_logs(config_name, result)
if result.retcode != 0:
logs.error('%s failed.', command)
logs.error('%s failed. Return code: %d. Output: %s. Timedout: %s',
command, result.retcode, result.output, result.timed_out)
raise subprocess.CalledProcessError(result.retcode, command)
return result

Expand Down

0 comments on commit 2ce4e43

Please sign in to comment.