bazel-diff icon indicating copy to clipboard operation
bazel-diff copied to clipboard

:bazel-diff -- generate-hashes is not giving correct targets when changed something in build attribute .bzl file which imported in many BUILD files

Open ananta-code opened this issue 5 months ago • 2 comments

Hi,

I am using bazel run :bazel-diff -- generate-hashes --workspacePath="/home/jenkins/workspace/PROJECT" /home/jenkins/starting_hashes1.json against a commit id to find out list of files and similarly running the same command to find the final_hashes.json file against a final commit after checking out the code git checkout "c41b43xxxxxxxxxx"

But i observed this is not returning correct targets when i run

bazel run :bazel-diff -- get-impacted-targets --startingHashes=/home/jenkins/starting_hashes.json --finalHashes=/home/jenkins/final_hashes.json --output=/home/jenkins/bazel_diff_impacted_targets.json

However i tried using --useCquery="true" while generating hashes hope it might give me correct file list but it is damn slow .

I am using bazel 7.3 .

Please suggest if anything can be done or missing?

Regards, abcuser

ananta-code avatar Sep 23 '24 13:09 ananta-code