In case of failures to upload to codecov, show it's output

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2024-01-17 07:36:11 +00:00 committed by Daniel Wozniak
parent 287de2b898
commit 114515c66c

View file

@ -1227,7 +1227,9 @@ def upload_coverage(ctx: Context, reports_path: pathlib.Path, commit_sha: str =
break
if current_attempt >= max_attempts:
ctx.error(f"Failed to upload {fpath} to codecov")
ctx.error(f"Failed to upload {fpath} to codecov:")
ctx.console_stdout.print(stdout)
ctx.console.print(stderr)
ctx.exit(1)
ctx.warn(f"Waiting {sleep_time} seconds until next retry...")