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

pantsbuild / pants / 26431083026
93%

Build:
DEFAULT BRANCH: main
Ran 26 May 2026 03:54AM UTC
Jobs 12
Files 1754
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

26 May 2026 03:47AM UTC coverage: 92.791% (+0.004%) from 92.787%
26431083026

push

github

web-flow
fix(js): include workspace member node_modules in install sandbox (#23342)

# Problem

In a nodejs workspace, each project of the workspace can have its own
`node_modules` directory that is populated during installation.
Previously, pants was capturing the project's workspace and the
top-level workspace but not sibling or descendent projects. This caused
certain operations to fail, such as `tsc --build` on a pnpm workspace
project since a pnpm project doesn't hoist member deps to the root by
default. Outside of pnpm, there are reports of this causing problems
with yarn/npm projects where a version conflict prevents hoisting.

# Solution

In `node_modules_directories`, the install sandbox now captures every
workspace member's `node_modules/`, not just the build target's.

Note: the new behavior only impacts the install path ( when
`self.package` is set). Lockfile generation's codepath
(via`NodeJsProjectEnvironment.from_root()`) doesn't set `self.package`
and keeps the "root only" behavior. Dropping the `if self.package` check
would align with the approach from #23264, but I left out that change to
minimize the scope. I added a test to demonstrate this behavior.

# AI Disclosure

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

63 of 63 new or added lines in 3 files covered. (100.0%)

93062 of 100292 relevant lines covered (92.79%)

4.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_9/10 - 26431083026.1 26 May 2026 03:56AM UTC 1214
53.66
GitHub Action Run
2 test_python_linux_x86_64_2/10 - 26431083026.2 26 May 2026 03:56AM UTC 1207
58.61
GitHub Action Run
3 test_python_linux_x86_64_4/10 - 26431083026.3 26 May 2026 04:00AM UTC 1237
59.08
GitHub Action Run
4 test_python_linux_x86_64_3/10 - 26431083026.4 26 May 2026 03:57AM UTC 1203
53.64
GitHub Action Run
5 test_python_linux_arm64 - 26431083026.5 26 May 2026 03:55AM UTC 1186
52.04
GitHub Action Run
6 test_python_linux_x86_64_7/10 - 26431083026.6 26 May 2026 03:58AM UTC 1208
51.08
GitHub Action Run
7 test_python_linux_x86_64_8/10 - 26431083026.7 26 May 2026 04:00AM UTC 1205
53.06
GitHub Action Run
8 test_python_linux_x86_64_0/10 - 26431083026.8 26 May 2026 03:57AM UTC 1222
56.24
GitHub Action Run
9 test_python_linux_x86_64_1/10 - 26431083026.9 26 May 2026 03:57AM UTC 1202
49.3
GitHub Action Run
10 test_python_linux_x86_64_6/10 - 26431083026.10 26 May 2026 03:55AM UTC 1198
49.31
GitHub Action Run
11 test_python_linux_x86_64_5/10 - 26431083026.11 26 May 2026 03:56AM UTC 1218
59.19
GitHub Action Run
12 test_python_macos14_arm64 - 26431083026.12 26 May 2026 03:54AM UTC 1186
52.04
GitHub Action Run
Source Files on build 26431083026
  • Tree
  • List 1754
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26431083026
  • 135d8725 on github
  • Prev Build on main (#26377393536)
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