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

pantsbuild / pants / 25547290322 / 2
93%
main: 93%

Build:
DEFAULT BRANCH: main
Ran 08 May 2026 09:23AM UTC
Files 1212
Run time 43s
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: 56.678%. Remained the same
25547290322.2

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

34877 of 61535 relevant lines covered (56.68%)

0.57 hits per line

Source Files on job test_python_linux_x86_64_0/10 - 25547290322.2
  • Tree
  • List 1212
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25547290322
  • f8384249 on github
  • Prev Job for on main (#25526011151.7)
  • Next Job for on main (#25564872649.4)
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