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

pantsbuild / pants / 29854433808 / 8
93%
main: 93%

Build:
DEFAULT BRANCH: main
Ran 21 Jul 2026 06:12PM UTC
Files 1209
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

21 Jul 2026 05:47PM UTC coverage: 49.699%. Remained the same
29854433808.8

push

github

web-flow
enable "thin LTO" in new `dist` profile (#23527)

This is a followup and replacement for
https://github.com/pantsbuild/pants/pull/23179 following the review
feedback there. Instead of adding more optimizations to the `release`
profile it creates a new `dist` profile. The bikeshed naming logic for
the profile breakdown:
* `release`: This is the built in cargo name so we are stuck with it. We
use it by default and it does "some" optimization which is a good
balance for the (I think) most common case of someone working on Python
rules code.
* `dist`: Intended to have maximum optimization for release artifacts.
It is same name used by `ruff` and `uv`. I moved the `codegen-units`
here as requested before.
 * `debug`: Whatever cargo defaults to.

In various tests with hyperfine for the prior PR I saw like `1.05 ±
0.06`, or `1.02 ± 0.09`. So not going to write a blog post about it, but
we don't seem to hit any pathological corner cases and I'll take a few
percentage points for free.

Rough Summary Table:

| Cold Build                  | Wall Time | `libengine.so` |
|-----------------------------|-----------|----------------|
| Old release (cgu=1, no LTO) | 2m33s     | 189.9 MiB      |
| New release (cgu=16)        | 1m53s     | 247.1 MiB      |
| dist (thin LTO, cgu=1)      | 3m57s     | 173.8 MiB      |

References:
*
https://nnethercote.github.io/perf-book/build-configuration.html#link-time-optimization
 * https://doc.rust-lang.org/cargo/reference/profiles.html#lto
 
NOTICE: Futzing with bash done my an LLM.

closes #23179

31017 of 62410 relevant lines covered (49.7%)

0.5 hits per line

Source Files on job test_python_linux_x86_64_6/10 - 29854433808.8
  • Tree
  • List 1209
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29854433808
  • 9d90d488 on github
  • Prev Job for on main (#29725590558.3)
  • Next Job for on main (#30019467120.11)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc