From c2da62abdbfb55cb85a51284d7629eaf50d5921a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 7 Jun 2026 13:34:42 +0530 Subject: [PATCH] =?UTF-8?q?ci(coverage):=20drop=20--depth=3D1=20on=20the?= =?UTF-8?q?=20base=20fetch=20=E2=80=94=20fix=20diff-cover=20'no=20merge=20?= =?UTF-8?q?base'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch-coverage gate fetched the base with --depth=1, leaving no merge-base with a PR branch behind base → diff-cover crashed with 'no merge base'. Checkout is fetch-depth:0, so a plain fetch resolves it. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/coverage.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0772376..0ec1b2d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -61,7 +61,9 @@ jobs: if: github.event_name == 'pull_request' working-directory: common run: | - git fetch origin "${{ github.base_ref }}" --depth=1 || true + # Full base history (NOT --depth=1): a shallow base fetch shares no merge-base + # with a PR branch that is behind base → diff-cover "no merge base" crash. + git fetch origin "${{ github.base_ref }}" || true diff-cover coverage.xml \ --compare-branch="origin/${{ github.base_ref }}" \ --fail-under=100