• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
You are now the owner of this repo.

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

Build:
DEFAULT BRANCH: main
Ran 08 May 2026 09:23AM UTC
Files 1176
Run time 40s
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: 52.455%. Remained the same
25547290322.5

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

31987 of 60980 relevant lines covered (52.45%)

0.52 hits per line

Source Files on job test_python_linux_arm64 - 25547290322.5
  • Tree
  • List 1176
  • 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.8)
  • 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