Debug logs from impacted targets script

This commit is contained in:
Mustafa Gezen 2022-11-01 03:01:36 +01:00
parent 1b5e945d96
commit 29e1e0977c
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
1 changed files with 4 additions and 0 deletions

View File

@ -9,7 +9,10 @@ workspace_dir="$(pwd)"
$BAZEL_B //:bazel-diff
set -x
# Generate starting hashes
echo "Base hash is $PULL_BASE_SHA"
git checkout "$PULL_BASE_SHA" --quiet
bazel-bin/bazel-diff generate-hashes -w "$workspace_dir" -b "$bazel_bin" starting_hashes_json
@ -18,6 +21,7 @@ TARGET_HASH="$PULL_PULL_SHA"
if [[ -z "$TARGET_HASH" ]]; then
TARGET_HASH="$(git log "HEAD@{1}" --pretty=format:"%H" --merges -n 1)"
fi
echo "Target hash is $PULL_PULL_SHA"
git checkout "$PULL_PULL_SHA" --quiet
bazel-bin/bazel-diff generate-hashes -w "$workspace_dir" -b "$bazel_bin" ending_hashes_json