~/talk

Reproducible Builds with Bazel

Talkat Conf42 Python 2021 · on Thursday, 2021-05-27· [devops-and-delivery, python]
slides:none on file

Shows how to get bit‑identical outputs by using Python 3.8.3 built from source under Bazel with sha256‑pinned http_archive dependencies, pip_install mapped from requirements.txt, pytest targets, a simple Flask binary and md5 comparisons to verify two builds match. Bazel sandboxing enforces hermetic inputs and caching speeds repeated builds ~50×, but the build still varies if the host gcc and system libs differ, so solutions are Docker with pinned gcc, checked‑in interpreter, or nix.

AI-written summary · about

  1. 0:00Reproducible builds intro
  2. 2:20Non-determinism sources
  3. 4:29Bazel for reproducibility
  4. 6:36Setting up a reproducible Python environment
  5. 10:08Python version tests
  6. 13:43Flask app with Bazel
  7. 15:27MD5 hash verification
  8. 15:47Reproducibility limits
  9. 16:52Key takeaways
~/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.