authd icon indicating copy to clipboard operation
authd copied to clipboard

Draft: Try to replace the broken gocov dependency

Open adombeck opened this issue 3 weeks ago • 1 comments

The "Go: Tests (coverage)" job started to fail consistently with

    go: downloading github.com/axw/gocov v1.1.0
    go: downloading github.com/axw/gocov v1.2.1
    go: downloading golang.org/x/tools v0.13.0
    go: downloading golang.org/x/mod v0.21.0
    go: downloading golang.org/x/sys v0.12.0
    # golang.org/x/tools/internal/tokeninternal
    Error: ../../../go/pkg/mod/golang.org/x/[email protected]/internal/tokeninternal/tokeninternal.go:78:9: invalid array length -delta * delta (constant -256 of type int64)
    Error: Process completed with exit code 1.

Using gocover-cobertura instead of gocov fixes the issue.

adombeck avatar Nov 20 '25 11:11 adombeck

Codecov Report

:x: Patch coverage is 36.11111% with 23 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 61.69%. Comparing base (8066a69) to head (63af38e). :warning: Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
internal/testutils/rust.go 30.43% 11 Missing and 5 partials :warning:
internal/testutils/coverage.go 45.45% 4 Missing and 2 partials :warning:
internal/testutils/path.go 0.00% 1 Missing :warning:
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1134       +/-   ##
===========================================
- Coverage   87.78%   61.69%   -26.10%     
===========================================
  Files          89      128       +39     
  Lines        6150    11549     +5399     
  Branches      111        0      -111     
===========================================
+ Hits         5399     7125     +1726     
- Misses        695     3941     +3246     
- Partials       56      483      +427     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov-commenter avatar Nov 21 '25 16:11 codecov-commenter