Lightning Talk – A short overview of our company's journey to sandbox Python
summary
Peloton uses Bazel to fully sandbox Python by shipping a shell wrapper that points at a python_top data dependency containing the entire runtime, so tests import nothing from the host and behave identically on workstations, Jenkins and RBE workers. That approach yields consistent failures and reproducible environments, but surfaces issues: PYTHONPATH entries pointing to source, .pyc/py files, host bash escaping the sandbox and platform mismatches for wheels; keeping Bazel up to date is essential.
AI-written summary · about








