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

View File

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