commit | da21ba7a48ea4f3a1b67dbecfc3d30c93b42beac | [log] [tgz] |
---|---|---|
author | philwo <philwo@google.com> | Tue May 02 20:25:12 2017 +0200 |
committer | Damien Martin-Guillerez <dmarting@google.com> | Wed May 03 10:57:08 2017 +0200 |
tree | 8c54e7ca24108491c83015f13a75d76757d4af03 | |
parent | 4b7df4f24c25bb84af968234c1adebc8f56eefb0 [diff] |
Set the local CPU reservation for tests based on their "cpu:<n>" tag. This lets users specify that their test needs a minimum of <n> CPU cores to run and not be flaky. Example for a reservation of 4 CPUs: sh_test( name = "test", size = "large", srcs = ["test.sh"], tags = ["cpu:4"], ) This could also be used by remote execution strategies to tune their resource adjustment. RELNOTES: You can increase the CPU reservation for tests by adding a "cpu:<n>" (e.g. "cpu:4" for four cores) tag to their rule in a BUILD file. This can be used if tests would otherwise overwhelm your system if there's too much parallelism. PiperOrigin-RevId: 154856091
{Fast, Correct} - Choose two
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, including:
A massive, shared code repository, in which all software is built from source. Bazel has been built for speed, using both caching and parallelism to achieve this. Bazel is critical to Google's ability to continue to scale its software development practices as the company grows.
An emphasis on automated testing and releases. Bazel has been built for correctness and reproducibility, meaning that a build performed on a continuous build machine or in a release pipeline will generate bitwise-identical outputs to those generated on a developer's machine.
Language and platform diversity. Bazel's architecture is general enough to support many different programming languages within Google, and can be used to build both client and server software targeting multiple architectures from the same underlying codebase.
Find more background about Bazel in our FAQ.