-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:bazel-diff -- generate-hashes is not giving correct targets when changed something in build attribute .bzl file which imported in many BUILD files #227
Comments
Can you get me an explanation of what you mean by not the correct targets, what targets are missing from your impacted list? Also a minor repro story can help in debugging this since this should likely be a CI check in the repo to make sure we don't regress on whatever the issue is here |
Let's say i have defined service metadata to something called all_gke_service.bzl `def all_gke_service(
Then i am using all_gke_service.bzl file in some application BUILD.bazel file. `load("//bazel:mvn_rules.bzl", "mvn_install") package(default_visibility = ["//visibility:public"]) test_suite( mvn_install( all_gke_service( SO when i change anything in all_gke_service.bzl , i am expecting bazel-diff get-impacted-targets should return all service targets which uses all_gke_service.bzl in their BUILD.bazel file but bazel-diff get-impacted-targets command wont return any thing |
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 codegit 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
The text was updated successfully, but these errors were encountered: