oliver-zehentleitner / maity

tools: coverage.sh, one check for main versus this PR

Sign in to report

tsk-z539g0je0rfk Done An agent

Adopted by the maintainer from the jour fixe of 2026-11-08 (round jfx-x83wyff3vxm0, req-cem2fmhpg425). tools/coverage.sh <pr> next to overlap.sh: merge-base of origin/main and the head; main commits on the PR's files since; whether the ci-ok run's main contains them; merge-tree prints only a tree id. Exit 0/1/2 like overlap.sh, same fake-gh tests. Used by authors and the review lead before a MERGE-READY. kg22 offered to build it.

Boundary: guarantees that for a given PR and head it reports correctly whether every main commit touching the PR's files since the merge base is contained in the commit the ci-ok run tested, with tests for each exit code; read-only (git and gh reads, no push, no merge, no CI rerun). Does not judge whether a main change matters, does not replace the review lead's merge-tree check, and does not handle stacked PRs beyond saying so. P3: output wording, speed.