From 29e1e0977c977ea119a4707f3ea251423ac29eaf Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Tue, 1 Nov 2022 03:01:36 +0100 Subject: [PATCH] Debug logs from impacted targets script --- hack/get_impacted_targets.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/get_impacted_targets.sh b/hack/get_impacted_targets.sh index 4b464cd3..9794d69d 100755 --- a/hack/get_impacted_targets.sh +++ b/hack/get_impacted_targets.sh @@ -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