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

pantsbuild / pants / 20533309613
80%

Build:
DEFAULT BRANCH: main
Ran 27 Dec 2025 03:07AM UTC
Jobs 12
Files 1729
Run time 2min
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 Dec 2025 02:49AM UTC coverage: 80.283%. First build
20533309613

push

github

web-flow
partition protobuf targets for dependency inference using any "resolve-like" fields (#21918)

## Background

As reported in https://github.com/pantsbuild/pants/issues/21409,
protobuf dependency inference cannot handle resolve-like fields which
are attached to `protobuf_source` target types by plugins. Basically,
multiple targets own the same source file but in different resolves, but
the existing code does not know about resolves and thus has no way to
partition the targets into distinct groups and apply dependency
inference within each group.

## Solution

Partition the protobuf targets by any "resolve-like" field found
registered on a `protobuf_source` target. The new `ResolveLikeField`
mix-in is used to detect fields which are "resolve like." The dependency
inference logic then uses the new `ResolveLikeFieldToValueRequest` union
to query the applicable language backend for what the actual resolve
name is so it can be used for partitioning.

The Python and JVM backends support `ResolveLikeField`.

225 of 297 new or added lines in 11 files covered. (75.76%)

78750 of 98090 relevant lines covered (80.28%)

3.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.99
-0.11% src/python/pants/backend/python/target_types.py
2
76.1
0.44% src/python/pants/core/target_types.py
3
79.95
-0.32% src/python/pants/jvm/target_types.py
4
39.17
0.12% src/python/pants/backend/python/target_types_rules.py
62
35.97
-22.6% src/python/pants/backend/codegen/protobuf/protobuf_dependency_inference.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_1/10 - 20533309613.1 27 Dec 2025 03:13AM UTC 1186
40.19
GitHub Action Run
2 test_python_linux_x86_64_3/10 - 20533309613.2 27 Dec 2025 03:13AM UTC 1186
45.67
GitHub Action Run
3 test_python_linux_x86_64_9/10 - 20533309613.3 27 Dec 2025 03:12AM UTC 1193
44.93
GitHub Action Run
4 test_python_linux_x86_64_7/10 - 20533309613.4 27 Dec 2025 03:18AM UTC 1192
42.54
GitHub Action Run
5 test_python_linux_x86_64_0/10 - 20533309613.5 27 Dec 2025 03:14AM UTC 1207
46.76
GitHub Action Run
6 test_python_macos14_arm64 - 20533309613.6 27 Dec 2025 03:11AM UTC 1170
43.23
GitHub Action Run
7 test_python_linux_x86_64_6/10 - 20533309613.7 27 Dec 2025 03:07AM UTC 1183
40.79
GitHub Action Run
8 test_python_linux_arm64 - 20533309613.8 27 Dec 2025 03:07AM UTC 1170
43.22
GitHub Action Run
9 test_python_linux_x86_64_5/10 - 20533309613.9 27 Dec 2025 03:09AM UTC 1201
49.11
GitHub Action Run
10 test_python_linux_x86_64_8/10 - 20533309613.10 27 Dec 2025 03:17AM UTC 1188
45.2
GitHub Action Run
11 test_python_linux_x86_64_2/10 - 20533309613.11 27 Dec 2025 03:07AM UTC 1188
46.71
GitHub Action Run
12 test_python_linux_x86_64_4/10 - 20533309613.12 27 Dec 2025 03:20AM UTC 1219
49.73
GitHub Action Run
Source Files on build 20533309613
  • Tree
  • List 1729
  • Changed 15
  • Source Changed 10
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20533309613
  • 73d7a82e on github
  • Prev Build on main (#20445216524)
  • Next Build on main (#20533986488)
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