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.
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.
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.
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.
The graph is queried at the exact commit under test. If the graph fails to load or is stale, the check fails loudly instead of quietly reporting that nothing was affected.
verifiedThe dependency graph is checked against Bazel's own query, so what the check believes about your code is what is actually true.
verifiedThe agent reads the graph to find the blast radius before it edits anything. This step is required; the agent can't skip it.
verifiedThe set of tests is a computed superset of what the change touches. Missing an affected test counts as a failure. Running extra ones only costs CPU.
verifiedCoverage is enrolled per repository. A readiness badge on each repo says whether the check covers it, so “covered” is something you can read rather than something we assume.
verified