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

pantsbuild / pants / 28296853179
93%

Build:
DEFAULT BRANCH: main
Ran 27 Jun 2026 05:50PM UTC
Jobs 11
Files 1757
Run time 3min
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

27 Jun 2026 05:42PM UTC coverage: 92.795%. Remained the same
28296853179

push

github

web-flow
perf(jvm): Add option to enable remote cache for intermediate JARs (#23408)

Remote caching of all jars was [disabled some time
ago](https://github.com/pantsbuild/pants/pull/21290) due to it being
slower to fetch from cache than re-executing the process to produce the
jar. However, this is not the case if you have a fast remote cache on an
internal network in a CI environment, especially when executing a high
volume of these tasks. It turns into a bit of a fork bomb on a fully
remotely cached run as it has to spawn a ton of tiny processes to
construct these jars.

These changes allow enabling remote cache for the intermediate jars,
which are both generally small and can be numerous. In my case we have
over 1000 compile targets that are going through these processes, and
the cost of churning them greatly outweighs going to the remote cache in
CI.

This PR:
- Adds the `[jvm].intermediate_jars_remote_cache` option to enable
remote cache of intermediate and intermediate-stripped jars.
- Adds the `[jvm].intermediate_jars_remote_cache_speculation_delay` to
configure a delay before spawning these micro-processes.

Here's some benchmarks on 1000+ targets simulating a CI environment
where these would be cached remotely but not locally.

| Core Metric | Fully Cached Run | Shallow Incremental Change | Large
Cascading Change |
| :--- | :--- | :--- | :--- |
| **Wall-Clock Time** | 83s → **11s** `(-87%)` | 81s → **17s** `(-79%)`
| 208s → **61s** `(-71%)` |
| **User CPU Time** | 201s → **10s** `(-95%)` | 205s → **11s** `(-95%)`
| 1,442s → **14s** `(-99%)` |
| **Kernel CPU Time**| 164s → **7s** `(-95%)` | 160s → **9s** `(-94%)` |
267s → **51s** `(-81%)` |
| **Local OS Forks** | 2,449 → **4** `(-100%)` | 2,451 → **11**
`(-100%)` | 2,981 → **540** `(-82%)` |
| **Context Switches** | 2,520,167 → **671,455** `(-73%)` | 2,522,822 →
**715,700** `(-72%)` | 6,038,084 → **944,366** `(-84%)` |
| **Page Reclaims** | 15,488,957 → **576,400** `(-96%)` | 15,511,196 →
**593,848** `... (continued)

14 of 15 new or added lines in 4 files covered. (93.33%)

93197 of 100433 relevant lines covered (92.8%)

3.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.3
-3.7% src/python/pants/jvm/subsystems.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_2/10 - 28296853179.1 27 Jun 2026 05:51PM UTC 1209
58.52
GitHub Action Run
2 test_python_linux_x86_64_8/10 - 28296853179.2 27 Jun 2026 05:54PM UTC 1207
52.95
GitHub Action Run
3 test_python_linux_x86_64_5/10 - 28296853179.3 27 Jun 2026 05:52PM UTC 1220
59.13
GitHub Action Run
4 test_python_linux_x86_64_3/10 - 28296853179.4 27 Jun 2026 05:51PM UTC 1206
53.66
GitHub Action Run
5 test_python_linux_x86_64_9/10 - 28296853179.5 27 Jun 2026 05:53PM UTC 1216
53.6
GitHub Action Run
6 test_python_linux_x86_64_0/10 - 28296853179.6 27 Jun 2026 05:52PM UTC 1224
56.14
GitHub Action Run
7 test_python_linux_x86_64_6/10 - 28296853179.7 27 Jun 2026 05:50PM UTC 1200
49.44
GitHub Action Run
8 test_python_linux_arm64 - 28296853179.8 27 Jun 2026 05:50PM UTC 1188
51.93
GitHub Action Run
9 test_python_linux_x86_64_4/10 - 28296853179.9 27 Jun 2026 05:55PM UTC 1239
59.0
GitHub Action Run
10 test_python_linux_x86_64_1/10 - 28296853179.10 27 Jun 2026 05:52PM UTC 1204
49.19
GitHub Action Run
11 test_python_linux_x86_64_7/10 - 28296853179.11 27 Jun 2026 05:53PM UTC 1210
50.97
GitHub Action Run
Source Files on build 28296853179
  • Tree
  • List 1757
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28296853179
  • 898b3360 on github
  • Prev Build on main (#28246547482)
  • Next Build on main (#28336942568)
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