• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 18861553943 / 12
80%
main: 80%

Build:
DEFAULT BRANCH: main
Ran 28 Oct 2025 02:53AM UTC
Files 1175
Run time 41s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Oct 2025 01:55AM UTC coverage: 45.677%. Remained the same
18861553943.12

push

github

web-flow
golang: fix Go SDK version check for coverage experiment (#22809)

In the Go backend, limit disabling the "coverage redesign" experiment to
those Go versions where that experiment was actually included. The
`coverageredesign` experiment was removed in Go 1.25, and so an existing
version check needs to account for that change.

## Background

In Go 1.20, Go introduced a new coverage implementation called the
"coverage redesign." Pants did not implement support at the time nor
subsequently. Instead, https://github.com/pantsbuild/pants/pull/18205
disabled the `coverageredesign` experiment so that the "old" coverage
implementation was always used.

In Go 1.25, the coverage redesign implementation is the only
implementation and the old coverage implementation has been removed. The
[relevant conditional in
Pants](https://github.com/pantsbuild/pants/blob/main/src/python/pants/backend/go/util_rules/sdk.py#L162)
needs to account for that fact.

## Testing

Tested by running tests in the
https://github.com/pantsbuild/example-golang repository. Before the fix,
the tests fail; after the fix, they pass. Not sure how to test with
different Go versions being available in Pants CI though. We might need
to update to Go 1.25.x in CI just to make sure the backend generally
works with the latest versions.

27754 of 60762 relevant lines covered (45.68%)

0.46 hits per line

Source Files on job test_python_linux_x86_64_3/10 - 18861553943.12
  • Tree
  • List 1175
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 18861553943
  • d3c62bd3 on github
  • Prev Job for on main (#18861236742.7)
  • Next Job for on main (#18862829794.6)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc