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

pantsbuild / pants / 18857275271 / 4
80%
main: 80%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2025 10:25PM UTC
Files 1175
Run time 58s
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 Oct 2025 10:06PM UTC coverage: 40.216% (-0.002%) from 40.218%
18857275271.4

push

github

web-flow
test_shell_command: use correct default cache scope for a test's environment (#22804)

Fix `test_shell_command` to use the correct default process cache scope
for the environment in which the test is running. The existing code was
always using the "success" cache scope.

For workspace environments (i.e., `experimental_workspace_environment`)
however, the default is "session" scope and not the "success" scope used
for other environments. "Session" scope is used for in-workspace
execution because Pants does not know how underlying tools cache and
invalidate their results. Thus always running a tool each session makes
sure Pants does not inadvertently cache a result which the tool would
have recomputed.

Also add `cache_scope` as a field on `test_shell_command` so users may
override the caches scope as needed.

24137 of 60018 relevant lines covered (40.22%)

0.4 hits per line

Source Files on job test_python_linux_x86_64_1/10 - 18857275271.4
  • Tree
  • List 1175
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 18857275271
  • 4e54dc0d on github
  • Prev Job for on main (#18828316513.9)
  • Next Job for on main (#18861236742.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