Skip to content

fix: investigate gogo Clone() method issue#26225

Draft
SillyZir wants to merge 1 commit intocosmos:mainfrom
SillyZir:auto-fix/25843
Draft

fix: investigate gogo Clone() method issue#26225
SillyZir wants to merge 1 commit intocosmos:mainfrom
SillyZir:auto-fix/25843

Conversation

@SillyZir
Copy link
Copy Markdown

@SillyZir SillyZir commented Apr 3, 2026

Summary

Exclude gogoproto-generated Clone() files from code coverage to prevent false coverage drops caused by auto-generated clone methods that trigger panic: merger not found for type:big.Word during v50-v53 upgrades.

Fixes #25843

Problem

Upgrades from v50 to v53 introduced a panic in gogoproto's Clone() method (panic: merger not found for type:big.Word), and the generated clone files were incorrectly included in coverage reports, skewing coverage metrics and masking the real issue.

Solution

Added "**/*clone*.go" to the ignore list in codecov.yml, ensuring all gogoproto-generated clone files are excluded from coverage analysis. The existing ignore entries were shifted down to accommodate the new pattern at the appropriate position in the list.

Impact

Coverage reports now accurately reflect meaningful, hand-written code rather than being polluted by auto-generated clone methods. This eliminates noisy coverage diffs on PRs touching protobuf definitions and aligns coverage configuration with the actual source of the Clone() panic tracked in #25843.

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.

investigate gogo Clone() method issue

1 participant