From ad3bcc87a9c73c3adee1e192f236bcfd64b36d88 Mon Sep 17 00:00:00 2001 From: Stu Hood Date: Mon, 22 May 2023 13:04:03 -0700 Subject: [PATCH] Increase the logging of release version file publishing. (#19092) Deploying the version index file to S3 failed without much additional info on the previous run: https://github.com/pantsbuild/pants/actions/runs/5028704069/jobs/9020209345 Add `set -x`. --- build-support/bin/create_s3_index_file.sh | 2 +- build-support/bin/deploy_to_s3.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-support/bin/create_s3_index_file.sh b/build-support/bin/create_s3_index_file.sh index 68e5fd273a5..0255a355b0f 100755 --- a/build-support/bin/create_s3_index_file.sh +++ b/build-support/bin/create_s3_index_file.sh @@ -7,7 +7,7 @@ if [[ -z "$1" ]]; then exit 1 fi -set -euo pipefail +set -euox pipefail SHA=$1 WHEEL_DIR=binaries.pantsbuild.org/wheels/pantsbuild.pants diff --git a/build-support/bin/deploy_to_s3.py b/build-support/bin/deploy_to_s3.py index cbae466b837..befa264c72d 100755 --- a/build-support/bin/deploy_to_s3.py +++ b/build-support/bin/deploy_to_s3.py @@ -38,8 +38,8 @@ def _run(args, env=None) -> None: ) except subprocess.CalledProcessError as ex: logger.error(f"Process `{' '.join(args)}` failed with exit code {ex.returncode}.") - logger.error(f"stdout: {ex.stdout}") - logger.error(f"stderr: {ex.stderr}") + logger.error(f"stdout:\n{ex.stdout.decode()}\n") + logger.error(f"stderr:\n{ex.stderr.decode()}\n") raise