Every CI system tests each pull request alone against the base branch. That is a problem when several agents are working in parallel.
Here is what happens:
Agent A opens a PR that changes login() to take an options object.
Agent B opens a PR that calls login(email, password) β the old form.
CI tests A against main. Green.
CI tests B against main. Green.
A merges. Main still works.
B merges. Main is broken.
Git merged cleanly because the two PRs touched different files. CI never tested them together. The type error only exists in the combination.
The gap
CI is designed to test one change at a time . It answers: "does this PR break main as it is right now?" It does not answer: "does this PR break main after the other three open PRs merge too?"
Merge queues (GitHub's, Mergify, Graphite) help: they test PRs in order, so B would be tested on top of A's merge. But they only work at merge time.β¦