Skip to content

Commit

Permalink
Increase the logging of release version file publishing. (pantsbuild#…
Browse files Browse the repository at this point in the history
…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`.
  • Loading branch information
stuhood committed May 22, 2023
1 parent 126e0c3 commit ad3bcc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-support/bin/create_s3_index_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build-support/bin/deploy_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit ad3bcc8

Please sign in to comment.