Skip to content

ci(coverage): drop --depth=1 base fetch (fix diff-cover 'no merge base')#51

Merged
mastermanas805 merged 1 commit into
masterfrom
ci/coverage-no-merge-base-fix
Jun 7, 2026
Merged

ci(coverage): drop --depth=1 base fetch (fix diff-cover 'no merge base')#51
mastermanas805 merged 1 commit into
masterfrom
ci/coverage-no-merge-base-fix

Conversation

@mastermanas805

Copy link
Copy Markdown
Member

The patch-coverage gate fetched the base with --depth=1, leaving no merge-base with a PR branch that's behind base → diff-cover crashed with fatal: origin/<base>...HEAD: no merge base and reded coverage on merely-stale PRs (hit repeatedly this week). Checkout is already fetch-depth: 0, so a plain git fetch origin <base> resolves the merge-base. One-line fix + rationale comment.

🤖 Generated with Claude Code

…erge base'

The patch-coverage gate did 'git fetch origin <base> --depth=1', truncating the
base to one commit with no common ancestor with the PR branch whenever the branch
was behind base — so diff-cover crashed with
'fatal: origin/<base>...HEAD: no merge base' and reded coverage on PRs that were
merely stale (hit repeatedly). The checkout is already fetch-depth:0, so a plain
'git fetch origin <base>' resolves the merge-base reliably.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mastermanas805 mastermanas805 merged commit 3147905 into master Jun 7, 2026
12 checks passed
@mastermanas805 mastermanas805 deleted the ci/coverage-no-merge-base-fix branch June 7, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants