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

pantsbuild / pants / 28422333258
93%

Build:
DEFAULT BRANCH: main
Ran 30 Jun 2026 05:32AM UTC
Jobs 11
Files 1766
Run time 4min
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

30 Jun 2026 05:23AM UTC coverage: 92.827% (+1.5%) from 91.309%
28422333258

push

github

web-flow
Pre-compile the Go standard library once per toolchain config instead of per-package (#23422)

Disclaimer: Like my previous Go PR, I'm still not primarily a golang
developer. However, the fact that Golang doesn't work properly in Pants
has been the bane of my existence for like 2 years now. The moment that
Mythos/Fable dropped I immediately had it dig deeply into whether the
whole road to proper-golang-in-pants could be opened up. So this is all
by Claude Code with Fable 5 (xhigh), with consults to GPT 5.5 (xhigh)
and Gemini 3.1 Pro. I've had it check and recheck, I ran many different
roles over it, and I had it explain and re-explain it to me, and then I
checked myself.

So, as much as I dislike AI slop and am worried about AI PR overload,
I've done my very best to avoid exactly that while still using AI. I
hope we can get this road unblocked.

The rest is Fable talking:

---

Since Go 1.20, Go distributions no longer ship pre-compiled standard
library archives, so Pants compiles every needed stdlib package from
source: roughly 200 compile/symabis/assembly/pack build actions on a
cold build, repeated for every build-options variant. This PR replaces
all of that with a single cached `GODEBUG=installgoroot=all go install
-trimpath -pkgdir <sandbox-relative> std` action per `(Go version, GOOS,
GOARCH, cgo_enabled)` configuration (~6 s, ~175 MB, ~355 archives), the
same architecture Bazel's rules_go uses.

Design: stdlib build requests on compatible configurations become "slim"
(no sources, no dependency recursion, no embed-config processes), and
`build_go_package` short-circuits them to the harvested archive. Each
archive enters the result as its own digest handle in
`transitive_pkg_archives`, so compile sandboxes still contain only
direct deps' archives and the closure is merged exactly once at link,
which preserves the invariant from #23421. The transitive closure comes
from a new `deps` field parsed from `go list -json std`. cgo is a
cache-key dimens... (continued)

255 of 258 new or added lines in 13 files covered. (98.84%)

1 existing line in 1 file now uncovered.

93755 of 101000 relevant lines covered (92.83%)

3.7 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.29
src/python/pants/backend/go/util_rules/stdlib_archives.py
1
92.51
-0.02% src/python/pants/backend/codegen/protobuf/go/rules.py

Coverage Regressions

Lines Coverage ∆ File
1
90.07
-0.07% src/python/pants/backend/go/util_rules/build_pkg_target.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_6/10 - 28422333258.1 30 Jun 2026 05:32AM UTC 1202
49.24
GitHub Action Run
2 test_python_linux_x86_64_7/10 - 28422333258.2 30 Jun 2026 05:34AM UTC 1212
50.75
GitHub Action Run
3 test_python_linux_x86_64_1/10 - 28422333258.3 30 Jun 2026 05:34AM UTC 1207
48.78
GitHub Action Run
4 test_python_linux_x86_64_9/10 - 28422333258.4 30 Jun 2026 05:34AM UTC 1218
53.76
GitHub Action Run
5 test_python_linux_x86_64_2/10 - 28422333258.5 30 Jun 2026 05:32AM UTC 1211
58.56
GitHub Action Run
6 test_python_linux_arm64 - 28422333258.6 30 Jun 2026 05:32AM UTC 1190
51.74
GitHub Action Run
7 test_python_linux_x86_64_8/10 - 28422333258.7 30 Jun 2026 05:35AM UTC 1210
52.77
GitHub Action Run
8 test_python_linux_x86_64_0/10 - 28422333258.8 30 Jun 2026 05:32AM UTC 1231
57.26
GitHub Action Run
9 test_python_linux_x86_64_4/10 - 28422333258.9 30 Jun 2026 05:37AM UTC 1241
58.85
GitHub Action Run
10 test_python_linux_x86_64_5/10 - 28422333258.10 30 Jun 2026 05:32AM UTC 1224
59.91
GitHub Action Run
11 test_python_linux_x86_64_3/10 - 28422333258.11 30 Jun 2026 05:33AM UTC 1209
53.57
GitHub Action Run
Source Files on build 28422333258
  • Tree
  • List 1766
  • Changed 612
  • Source Changed 11
  • Coverage Changed 612
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28422333258
  • 9dbe5253 on github
  • Prev Build on main (#28411659577)
  • Next Build on main (#28489169743)
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