the merge check

How the merge check works.

At scale there are two bad options: build everything on every change and wait, or build only the diff and miss the breakage two packages over. Reading the dependency graph gives you a third.

which tests run

The ones the change could affect.

When you push, fastverk resolves the change against the real Bazel module graph. It runs every test that depends, directly or indirectly, on what changed. That's a superset of what the change could affect, computed from the graph rather than guessed from folder names. The tests run hermetically on your own remote execution, and the result shows up on the pull request as a native check, on GitHub or self-hosted GitLab.

the refusal

A build that tested nothing isn't green.

This is the part most tools skip. Before an agent is allowed to merge, fastverk looks at what the green actually covered.

  • Every changed source file needs at least one test downstream of it. If one doesn't, the change isn't safe to merge, however green the build looks.
  • A change to a BUILD file, a toolchain or the module config runs everything.
  • If the file list is empty, everything runs. And a check that comes back neutral or skipped is recorded as canceled, never as a pass.
what has to hold

Five things the check depends on.

Every automated merge rests on claims that used to be taken on faith. Each of these is something fastverk checks.

Next: what's underneath →·what's built today →