Repository navigation
Fix coverage job config parsing - #19
Merged
Merged
Conversation
go-test-coverage v2.23.0 rejects unknown config keys, and local-prefix is no longer a supported option, so the coverage job fails while parsing .testcoverage.yml before measuring anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
The change is a minimal configuration fix that removes an unsupported .testcoverage.yml key to stop strict YAML parsing failures while leaving all existing coverage thresholds and exclusions unchanged.
No open issues 🎉
What changed in this PR
Fixes the GitHub Actions coverage job failing due to strict YAML config parsing in newer vladopajic/go-test-coverage@v2 releases by removing an unsupported config key.
Changes:
- Removed the deprecated/unsupported
local-prefixentry from.testcoverage.ymlto prevent YAML unmarshal errors. - Kept all existing coverage thresholds and exclusions unchanged.
| File | Description |
|---|---|
| .testcoverage.yml | Removes the unsupported local-prefix option so go-test-coverage can parse the configuration under strict decoding. |
Review effort: Balanced
grahamgilbert
approved these changes
Nov 12, 2026
grahamgilbert
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The coverage job currently fails on every PR before measuring anything:
The workflow uses
vladopajic/go-test-coverage@v2, which now resolves to v2.23.0. That release enables strict config parsing (unknown keys are rejected), andlocal-prefixis no longer a supported option, so it went from being silently ignored to being fatal.This removes
local-prefixfrom.testcoverage.yml. No thresholds or exclusions change.Testing
Ran locally against
mainwith go-test-coverage v2.23.0:🤖 Generated with Claude Code