tree: de17f4832a53ccd001480fb36e834f815441b7ff [path history] [tgz]
  1. docs/
  2. pipelines/
  3. tools/
  4. acceptance-test.sh
  5. bazelci.py
  6. create_images.py
  7. create_instances.py
  8. gcloud.py
  9. gcloud_utils.py
  10. install-android-sdk.sh
  11. install-azul-zulu.sh
  12. install-bazel.sh
  13. install-buildkite-agent.sh
  14. install-docker.sh
  15. install-image-version.sh
  16. install-kvm.sh
  17. install-nodejs.sh
  18. install-oracle-java.sh
  19. install-python36.sh
  20. README.md
  21. run_benchmark.py
  22. setup-freebsd.sh
  23. setup-ubuntu.sh
  24. setup-windows-manual.ps1
  25. setup-windows.ps1
  26. shell-utils.sh
  27. shutdown.sh
  28. startup-benchmark.sh
  29. startup-freebsd11.sh
  30. startup-ubuntu.sh
  31. startup-windows.ps1
buildkite/README.md

Bazel Continuous Integration

Bazel uses Buildkite for continuous integration. The user interface and the orchestration of CI builds is fully managed by Buildkite, but Bazel brings its own CI machines. The buildkite folder contains all the scripts and configuration files necessary to setup Bazel's CI on Buildkite.

Bazel on Buildkite 101

Buildkite currently does not support public viewing of build and test results (it‘s actively being worked on) and for now requires one to be logged in. In the meantime, we have set up a separate mechanism to view build and test results of pull requests and so as a contributor to Bazel you typically don’t need access to Buildkite. However, if you are a maintainer of a repository under the @bazelbuild organisation or a Bazel team member with sheriffing duties you probably do need access. Please ping either @buchgr, @philwo or @fweikert if you don't have access to Bazel on Buildkite but think you should.

When you first log into Buildkite you are presented with a list of pipelines. A pipeline is a template of steps that are executed either in sequence or in parallel and that all need to succeed in order for the pipeline to succeed. The Bazel organisation has dozens of pipelines. Here are a selected few:

pipelines

  • The bazel postsubmit pipeline builds and tests each commit to Bazel's repository on all supported platforms.
  • The bazel presubmit pipeline is triggered on every pull request to Bazel.
  • The rules_go postsubmit pipeline is triggered on every commit to the rules_go repository.
  • The TensorFlow pipeline builds and tests TensorFlow at HEAD every four hours.

Builds

When you click on a pipeline you can see the last few builds of this pipeline. Clicking on a build then gives you access to the details of the build. For example, the below image shows a failed build step on Ubuntu 16.04.

failed build step

One can see which tests failed by clicking on the Test section. In the below example, the //src/test/shell/bazel:external_path_test was flaky as it failed in 1 out of 5 runs.

flaky test

You can view the failed test attempt's test.log file in the Artifacts tab.

flaky test log

Useful Links

buildkite useful buttons

Pull Requests

Bazel accepts contributions via pull requests. Contributions by members of the bazelbuild organisation as well as members of individual repositories (i.e. rule maintainers) are whitelisted automatically and will immediately be built and tested on Buildkite.

An external contribution, however, first needs to be verified by a project member and therefore will display a pending status named Verify Pull Request.

status verify pull request

A member can verify a pull request by clicking on Details, followed by Verify Pull Request.

buildkite verify pull request

Please vet external contributions carefully as they can execute arbitrary code on our CI machines

Build and Test Results

After a pull request has been built and tested, the results will be displayed as a status message on the pull request. A detailed view is available when clicking on the corresponding Details link. Click here for an example.

pull request details