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

pantsbuild / pants / 25547290322
93%

Build:
DEFAULT BRANCH: main
Ran 08 May 2026 09:16AM UTC
Jobs 12
Files 1738
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

08 May 2026 09:10AM UTC coverage: 92.887% (+0.001%) from 92.886%
25547290322

push

github

web-flow
fix(js): propagate append_only_caches to RunRequest for node_run_script/run_node_build_script (#23300)

# Problem

`pants run` with `node_run_script`/`run_node_build_script` always got a
fresh
ephemeral pnpm store because `RunRequest` was constructed without
`append_only_caches`. The pnpm `PackageManager` declares
`extra_caches={"pnpm_home": "._pnpm_home"}` which the Process carries,
but
`RunRequest` in run/rules.py dropped it. This caused pnpm to
reinstall all packages from scratch on every pants run invocation.
Similarly,
the yarn `PackageManager` declares:
`extra_caches={"yarn_cache": "._yarn_cache"}`.

# Solution

Propagate the `append_only_caches` value to `RunRequest` in
`run/rules.py`.

The `test` `package` and `lint` goals were unaffected — their code paths
correctly forward `append_only_caches` through Process -> named cache
machinery.

Adds a regression tests asserting pnpm_home/yarn_cache appears in
`RunRequest.append_only_caches` when a `node_run_script` or a
`node_build_script` target uses pnpm/yarn as the package manager.

# AI Disclosure

Claude Code was used to diagnose the problem, write the fix with my
input, and write
the regression tests

20 of 20 new or added lines in 1 file covered. (100.0%)

92357 of 99429 relevant lines covered (92.89%)

4.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_8/10 - 25547290322.1 08 May 2026 09:20AM UTC 1195
53.49
GitHub Action Run
2 test_python_linux_x86_64_0/10 - 25547290322.2 08 May 2026 09:18AM UTC 1212
56.68
GitHub Action Run
3 test_python_macos14_arm64 - 25547290322.3 08 May 2026 09:16AM UTC 1176
52.46
GitHub Action Run
4 test_python_linux_x86_64_1/10 - 25547290322.4 08 May 2026 09:18AM UTC 1191
49.21
GitHub Action Run
5 test_python_linux_arm64 - 25547290322.5 08 May 2026 09:23AM UTC 1176
52.45
GitHub Action Run
6 test_python_linux_x86_64_7/10 - 25547290322.6 08 May 2026 09:20AM UTC 1198
51.43
GitHub Action Run
7 test_python_linux_x86_64_2/10 - 25547290322.7 08 May 2026 09:17AM UTC 1195
58.79
GitHub Action Run
8 test_python_linux_x86_64_9/10 - 25547290322.8 08 May 2026 09:19AM UTC 1203
54.04
GitHub Action Run
9 test_python_linux_x86_64_4/10 - 25547290322.9 08 May 2026 09:22AM UTC 1227
59.53
GitHub Action Run
10 test_python_linux_x86_64_5/10 - 25547290322.10 08 May 2026 09:18AM UTC 1207
59.6
GitHub Action Run
11 test_python_linux_x86_64_3/10 - 25547290322.11 08 May 2026 09:18AM UTC 1192
53.87
GitHub Action Run
12 test_python_linux_x86_64_6/10 - 25547290322.12 08 May 2026 09:16AM UTC 1188
49.7
GitHub Action Run
Source Files on build 25547290322
  • Tree
  • List 1738
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25547290322
  • f8384249 on github
  • Prev Build on main (#25526011151)
  • Next Build on main (#25564872649)
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