~/talk

Automating Build Files

Talkat BazelCon 2023 · 2023-10-24..10-25
links:none on file
slides:none on file

A Google-internal build-file automation runs for a decade, supports 20+ languages and handles 250k requests/day. Three resolution strategies appear: fast string manipulation + syntactic edits (hundreds of ms), compiler-driven analysis (accurate but expensive), and the favored bazel query + semantic edits (1–2s, understands macros and rule semantics). The system calls out to Bulldozer for formatting, uses pragmas/metadata to map macros to generated rules, and recommends keeping BUILD files declarative to make automation reliable.

AI-written summary · about

  1. 0:00Build file automation intro
  2. 1:05What automated build management does
  3. 3:57Why optimize dependencies
  4. 5:22Resolving imports with strings
  5. 9:16Problems with string imports
  6. 12:25Compiler output for dependencies
  7. 15:31Automating import resolution
  8. 17:37Updating build files syntactically
  9. 19:43Semantic edits for builds
  10. 22:57Choosing the right approach
  11. 25:05Making builds tool-friendly
  12. 28:07Q&A
  13. 30:15Fixing build anti-patterns
  14. 31:59Future of build tooling
~/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.