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

pantsbuild / pants / 24699019654
93%
main: 93%

Build:
Build:
LAST BUILD BRANCH: tdyas/fix-dep-validator-issue
DEFAULT BRANCH: main
Ran 21 Apr 2026 01:25AM UTC
Jobs 12
Files 1734
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

21 Apr 2026 01:19AM UTC coverage: 92.924% (+0.001%) from 92.923%
24699019654

push

github

web-flow
Fix use of generic target in runtime package dependencies (Cherry-pick of #23248) (#23276)

## What

Fixes the following setup:

```py
# BUILD
pex_binary(name='bin_a', entry_point='main_a.py')
pex_binary(name='bin_b', entry_point='main_b.py')
target(name='all_bins', dependencies=[':bin_a', ':bin_b'])
python_test(name="tests", runtime_package_dependencies=[":all_bins"])
```

Previously the PEX dependencies would not get packaged and materialized
when the tests were run.

## Why

Allows a `target()` alias to be used in `runtime_package_dependencies`
to group packageable targets, rather than having to list each one
individually. This would help simplify a setup I have where I have the
misfortune of having to write a loop to generate a list of targets:

```py
# BUILD
for model in models:
  docker_image(name=model.name)

target(name="models", dependencies=[model.name for model in models])
```

Using the generic target I can isolate this mess to the one relevant
directory and keep the rest of the codebase clear.

## Test plan

- [x] New test added to cover the scenario

## Open questions

- Is this the kind of thing we would add to the release notes? Or is it
a bit niche?
- Is this the most reliable way to implement this? I was surprised to
find that generic target isn't modeled as a `TargetGenerator` would that
be a more robust fix? (sounds like it would be a much more invasive
change)
- I _think_ this issue affects the `archive` target too. Shall I
investigate that in this PR? Or keep it small and investigate
separately?

Co-authored-by: Ryan Loader <talk@ryanloader.me>

17 of 17 new or added lines in 2 files covered. (100.0%)

91686 of 98668 relevant lines covered (92.92%)

4.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_2/10 - 24699019654.1 21 Apr 2026 01:26AM UTC 1191
58.69
GitHub Action Run
2 test_python_linux_x86_64_6/10 - 24699019654.2 21 Apr 2026 01:26AM UTC 1185
49.55
GitHub Action Run
3 test_python_linux_x86_64_1/10 - 24699019654.3 21 Apr 2026 01:26AM UTC 1188
49.19
GitHub Action Run
4 test_python_linux_x86_64_3/10 - 24699019654.4 21 Apr 2026 01:26AM UTC 1189
53.93
GitHub Action Run
5 test_python_macos14_arm64 - 24699019654.5 21 Apr 2026 01:25AM UTC 1173
52.38
GitHub Action Run
6 test_python_linux_x86_64_7/10 - 24699019654.6 21 Apr 2026 01:26AM UTC 1195
51.3
GitHub Action Run
7 test_python_linux_x86_64_8/10 - 24699019654.7 21 Apr 2026 01:26AM UTC 1192
53.62
GitHub Action Run
8 test_python_linux_arm64 - 24699019654.8 21 Apr 2026 01:38AM UTC 1173
52.39
GitHub Action Run
9 test_python_linux_x86_64_0/10 - 24699019654.9 21 Apr 2026 01:26AM UTC 1209
56.8
GitHub Action Run
10 test_python_linux_x86_64_9/10 - 24699019654.10 21 Apr 2026 01:26AM UTC 1200
53.91
GitHub Action Run
11 test_python_linux_x86_64_5/10 - 24699019654.11 21 Apr 2026 01:26AM UTC 1204
59.72
GitHub Action Run
12 test_python_linux_x86_64_4/10 - 24699019654.12 21 Apr 2026 01:26AM UTC 1224
59.41
GitHub Action Run
Source Files on build 24699019654
  • Tree
  • List 1734
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24699019654
  • cfdb845d on github
  • Prev Build on 2.32.x (#24485513205)
  • Next Build on 2.32.x (#25262272470)
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