Skip to content

CICD-394 · Distributed build workers ​

Encyclopedia · Monorepo and large-scale build engineering · All snippets

Previous · CICD-393 · Next · CICD-395

1. Where it fits ​

  • Placement trusted build coordinator.
  • Prerequisites trusted checkout with the base ref fetched and pinned package manager or build tool.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters BAZEL_EXECUTOR.

2. Copy the snippet ​

bash
bazel test //... --jobs=32 --remote_executor="${BAZEL_EXECUTOR:?}" --remote_timeout=60

3. How it works ​

Bazel computes the requested dependency graph and builds or tests targets with the selected toolchain and execution options. The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.

4. Verify the result ​

Use capacity limits and isolate tenants at the remote workers. Record queue latency rather than assuming a higher jobs value is faster.

Validation syntax-validated (Bash parse). Status definitions.