~/talk

Bazel Query Deep Dive: From Basics to Advanced Use Cases

Talkat BazelCon 2024 · 2024-10-14..10-15· [developer-experience]
links:none on file
slides:none on file

Shows concrete commands and gotchas: uses Envoy and a tiny Scala repo to demo --noimplicit_deps to shrink a deps result from ~900 labels, extracts transitive JVM classpath via starlark output, and finds generated targets by filtering the generator_function attribute. Covers aquery action filtering to locate the exact generator of a header and reports counts with the summary output (example: ~1,200 C++ compile actions for a test). Recommends --keep_going, machine‑friendly outputs, query files, and using aspects for single‑run extraction.

AI-written summary · about

  1. 0:00Bazel Query basics
  2. 1:53Target pattern queries
  3. 5:26Filtering by kind and attributes
  4. 10:09Set operations and variables
  5. 11:56Transitive dependencies with deps
  6. 13:20Visualizing Dependency Graphs
  7. 14:21Filtering generated files
  8. 15:03Reverse dependencies with rdeps
  9. 16:25Configured query (C query)
  10. 17:30Starlark output mode
  11. 19:16Action graph queries (A query)
  12. 20:45Filtering actions by type
  13. 21:29Finding header generators
  14. 23:18Query tips and formats
  15. 25:05Performance and scalability
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.