@@ -15,7 +15,12 @@ final_hashes_json="/tmp/final_hashes.json"
1515impacted_targets_path=" /tmp/impacted_targets.txt"
1616impacted_test_targets_path=" /tmp/impacted_test_targets.txt"
1717
18- $bazel_path run :bazel-diff -- modified-filepaths $previous_revision $final_revision -w $workspace_path -b $bazel_path $modified_filepaths_output
18+ shared_flags=" "
19+
20+ # Uncomment the line below to see debug information
21+ # shared_flags="--config=verbose"
22+
23+ $bazel_path run :bazel-diff $shared_flags -- modified-filepaths $previous_revision $final_revision -w $workspace_path -b $bazel_path $modified_filepaths_output
1924
2025IFS=$' \n ' read -d ' ' -r -a modified_filepaths < $modified_filepaths_output
2126formatted_filepaths=$( IFS=$' \n ' ; echo " ${modified_filepaths[*]} " )
@@ -26,18 +31,18 @@ echo ""
2631git -C $workspace_path checkout $previous_revision --quiet
2732
2833echo " Generating Hashes for Revision '$previous_revision '"
29- $bazel_path run :bazel-diff -- generate-hashes -w $workspace_path -b $bazel_path $starting_hashes_json
34+ $bazel_path run :bazel-diff $shared_flags -- generate-hashes -w $workspace_path -b $bazel_path $starting_hashes_json
3035
3136git -C $workspace_path checkout - --quiet
3237
3338echo " Generating Hashes for Revision '$final_revision '"
34- $bazel_path run :bazel-diff -- generate-hashes -w $workspace_path -b $bazel_path -m $modified_filepaths_output $final_hashes_json
39+ $bazel_path run :bazel-diff $shared_flags -- generate-hashes -w $workspace_path -b $bazel_path -m $modified_filepaths_output $final_hashes_json
3540
3641echo " Determining Impacted Targets"
37- $bazel_path run :bazel-diff -- -sh $starting_hashes_json -fh $final_hashes_json -w $workspace_path -b $bazel_path -o $impacted_targets_path
42+ $bazel_path run :bazel-diff $shared_flags -- -sh $starting_hashes_json -fh $final_hashes_json -w $workspace_path -b $bazel_path -o $impacted_targets_path
3843
3944echo " Determining Impacted Test Targets"
40- $bazel_path run :bazel-diff -- -sh $starting_hashes_json -fh $final_hashes_json -w $workspace_path -b $bazel_path -o $impacted_test_targets_path -t
45+ $bazel_path run :bazel-diff $shared_flags -- -sh $starting_hashes_json -fh $final_hashes_json -w $workspace_path -b $bazel_path -o $impacted_test_targets_path --avoid-query " //... except tests(//...) "
4146
4247IFS=$' \n ' read -d ' ' -r -a impacted_targets < $impacted_targets_path
4348formatted_impacted_targets=$( IFS=$' \n ' ; echo " ${impacted_targets[*]} " )
0 commit comments