Compare

cigen vs Bazel remote caching

Bazel caches every build and test action by its declared inputs, and can execute them remotely. cigen skips whole CI jobs without changing how you build. The trade-off between the two.

Bazel (remote cache, cached test results)Checked against its docs on 2026-12-04

Bazel applies “don’t redo work that already passed” to every build and test step. Each step is an action with declared inputs, and Bazel reuses an action’s result whenever those inputs match, on your machine or from a shared remote cache. The price is that your build has to be written in Bazel. cigen gets part of the benefit, at the level of whole CI jobs, while your build stays as it is.

What Bazel does

Each action has declared inputs, outputs, a command line and environment variables. A remote cache stores an action cache (action hashes to results) and a content-addressable store of output files, so one machine’s outputs can be reused on another when the build is reproducible (Remote caching). Tests are cached too: by default (--cache_test_results=auto) Bazel reruns a test only when the test or its dependencies changed, it’s marked external, several runs were requested, or it failed last time (command-line reference). Bazel can also execute actions on a remote cluster.

Where Bazel is the better choice

  • It’s fine grained. Bazel reruns the one test target a change affects, inside a job, and reuses compiled outputs across machines. cigen skips or runs whole jobs and stores no outputs.
  • Inputs are declared for every action, and Bazel builds from them, so a missing input tends to break the build rather than slip through. cigen derives a job’s inputs from what it can see and has known gaps (derived inputs).
  • Remote execution spreads one build across many machines. cigen doesn’t run anything.
  • For a large polyglot monorepo already on Bazel, there’s little left for cigen to skip.

Where cigen fits better

  • There’s no migration. cigen works with cargo, pnpm, bundle, make and shell scripts as they are. Adopting Bazel means writing BUILD files for the codebase and keeping them current.
  • Many CI jobs aren’t build actions: a deploy check, an end-to-end suite against a running service, a Docker image scan. cigen skips those by their inputs.
  • cigen also writes the CI config (GitHub Actions and CircleCI). Bazel still needs a workflow that runs it.

Both

A repository that uses Bazel for some languages can still use cigen for its CI jobs: cigen skips the jobs whose inputs passed, and Bazel, when a job runs, reuses every action it can.

When to pick which

  • Bazel: large monorepos, many languages, teams with the time to own BUILD files, and builds where remote execution pays off.
  • cigen: repos that want skipping without changing their build, and CI jobs that aren’t build actions.

What cigen can’t do yet

cigen is being rebuilt in the open. On GitHub Actions a skipped job still takes a runner and a checkout until the planned planner job exists. Pass records live in the GitHub Actions cache: scoped by branch and expired after 7 days unused. The release install step needs v0.2.0, which isn’t out yet. See the roadmap.