Bazel vs Buildbot: What are the differences?
What is Bazel? Correct, reproducible, fast builds for everyone. Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google's software, and thus it has been designed to handle build problems present in Google's development environment.
What is Buildbot? Python-based continuous integration testing framework. BuildBot is a system to automate the compile/test cycle required by most software projects to validate code changes. By automatically rebuilding and testing the tree each time something has changed, build problems are pinpointed quickly, before other developers are inconvenienced by the failure.
Bazel and Buildbot are primarily classified as "Java Build" and "Continuous Integration" tools respectively.
Some of the features offered by Bazel are:
- Multi-language support: Bazel supports Java, Objective-C and C++ out of the box, and can be extended to support arbitrary programming languages.
- High-level build language: Projects are described in the BUILD language, a concise text format that describes a project as sets of small interconnected libraries, binaries and tests. By contrast, with tools like Make you have to describe individual files and compiler invocations.
- Multi-platform support: The same tool and the same BUILD files can be used to build software for different architectures, and even different platforms. At Google, we use Bazel to build both server applications running on systems in our data centers and client apps running on mobile phones.
On the other hand, Buildbot provides the following key features:
- run builds on a variety of slave platforms
- arbitrary build process: handles projects using C, Python, whatever
- minimal host requirements: Python and Twisted
"Fast" is the primary reason why developers consider Bazel over the competitors, whereas "Highly configurable builds" was stated as the key factor in picking Buildbot.
Bazel and Buildbot are both open source tools. It seems that Bazel with 12.2K GitHub stars and 2K forks on GitHub has more adoption than Buildbot with 3.98K GitHub stars and 1.36K GitHub forks.
Asana, Square, and Google are some of the popular companies that use Bazel, whereas Buildbot is used by Mozilla, Animoto, and Fetch Robotics. Bazel has a broader approval, being mentioned in 11 company stacks & 7 developers stacks; compared to Buildbot, which is listed in 7 company stacks and 6 developer stacks.