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

pantsbuild / pants / 18857275271
80%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2025 10:13PM UTC
Jobs 12
Files 1715
Run time 5min
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: 80.287% (+0.005%) from 80.282%
18857275271

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.

29 of 31 new or added lines in 2 files covered. (93.55%)

77902 of 97030 relevant lines covered (80.29%)

3.35 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
62.71
-1.57% src/python/pants/backend/shell/goals/test.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_8/10 - 18857275271.1 27 Oct 2025 10:20PM UTC 1178
45.48
GitHub Action Run
2 test_python_linux_x86_64_4/10 - 18857275271.2 27 Oct 2025 10:24PM UTC 1208
49.97
GitHub Action Run
3 test_python_linux_x86_64_2/10 - 18857275271.3 27 Oct 2025 10:16PM UTC 1178
46.9
GitHub Action Run
4 test_python_linux_x86_64_1/10 - 18857275271.4 27 Oct 2025 10:18PM UTC 1175
40.22
GitHub Action Run
5 test_python_linux_x86_64_9/10 - 18857275271.5 27 Oct 2025 10:20PM UTC 1183
45.1
GitHub Action Run
6 test_python_linux_x86_64_5/10 - 18857275271.6 27 Oct 2025 10:16PM UTC 1192
48.18
GitHub Action Run
7 test_python_linux_x86_64_7/10 - 18857275271.7 27 Oct 2025 10:20PM UTC 1182
42.73
GitHub Action Run
8 test_python_macos14_arm64 - 18857275271.8 27 Oct 2025 10:22PM UTC 1160
43.25
GitHub Action Run
9 test_python_linux_x86_64_0/10 - 18857275271.9 27 Oct 2025 10:18PM UTC 1196
45.56
GitHub Action Run
10 test_python_linux_x86_64_3/10 - 18857275271.10 27 Oct 2025 10:17PM UTC 1175
45.68
GitHub Action Run
11 test_python_linux_x86_64_6/10 - 18857275271.11 27 Oct 2025 10:13PM UTC 1172
40.77
GitHub Action Run
12 test_python_linux_arm64 - 18857275271.12 27 Oct 2025 10:18PM UTC 1160
43.24
GitHub Action Run
Source Files on build 18857275271
  • Tree
  • List 1715
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18857275271
  • 4e54dc0d on github
  • Prev Build on main (#18828316513)
  • Next Build on main (#18861236742)
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

© 2025 Coveralls, Inc