~/talk

Debugging and fixing build non-determinism with Bazel

Talkat BazelCon 2020 · on Thursday, 2020-11-12· [devops-and-delivery, open-source]
slides:none on file

Shows a concrete workflow that finds nondeterministic Bazel actions by running two clean builds, saving the binary execution logs, converting them with the exact log parser, diffing aligned plain‑text logs, and grouping differing actions with a small script (Ruby → Rust). Demonstrates debugging by downloading conflicting inputs from the remote cache (use different remote instance names), diffing object and zip contents, and fixing a zip timestamp bug in rules_apple so the rebuilt artifacts stabilize and cache hits increase.

AI-written summary · about

  1. 0:00Build non-determinism intro
  2. 2:56Why deterministic builds matter
  3. 5:27Common non-determinism sources
  4. 8:18Symptoms of non-determinism
  5. 9:22Bazel investigation setup
  6. 10:26Running and logging builds
  7. 12:09Parsing Bazel execution logs
  8. 13:31Diffing execution logs
  9. 14:36Analyzing diffs
  10. 16:00Pinpointing input/output diffs
  11. 17:27Beyond determinism checks
  12. 17:47Case study: storyboard linking
  13. 18:50Case study: dynamic framework packaging
  14. 20:17Summary and future
~/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.