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

pantsbuild / pants / 19581575426
80%

Build:
DEFAULT BRANCH: main
Ran 21 Nov 2025 07:48PM UTC
Jobs 12
Files 1726
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 Nov 2025 07:40PM UTC coverage: 80.296% (+0.001%) from 80.295%
19581575426

push

github

web-flow
Java fix bug with inner class inference (#22889)

In Java, it's perfectly valid for a class in one package to reference
another class in the same package without importing it. The current Java
dependency inference code works fine for top level references, but
doesn't work when inner classes are involved. Suppose we have class A in
A.java and class B in B.java with a static inner class InnerB. All of
these classes are in the same package. A uses B.InnerB, but doesn't
explicitly import B. This is valid practice in Java, but with our Pants
Java dependency inference logic, the backend won't figure out on its own
that A.java depends on B.java without an explicit dependency reference.

This PR contains the changes for fixing this bug as seen in #22817 I've
split it into its own PR to make things easier to review and land

21 of 27 new or added lines in 2 files covered. (77.78%)

78406 of 97646 relevant lines covered (80.3%)

3.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
47.67
-2.33% src/python/pants/backend/java/dependency_inference/rules.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_4/10 - 19581575426.1 21 Nov 2025 07:58PM UTC 1214
49.92
GitHub Action Run
2 test_python_linux_x86_64_3/10 - 19581575426.2 21 Nov 2025 07:51PM UTC 1177
45.68
GitHub Action Run
3 test_python_linux_x86_64_2/10 - 19581575426.3 21 Nov 2025 07:51PM UTC 1180
46.9
GitHub Action Run
4 test_python_linux_x86_64_7/10 - 19581575426.4 21 Nov 2025 07:54PM UTC 1184
42.68
GitHub Action Run
5 test_python_linux_x86_64_5/10 - 19581575426.5 21 Nov 2025 07:51PM UTC 1199
49.19
GitHub Action Run
6 test_python_linux_arm64 - 19581575426.6 21 Nov 2025 07:58PM UTC 1162
43.24
GitHub Action Run
7 test_python_linux_x86_64_8/10 - 19581575426.7 21 Nov 2025 07:55PM UTC 1180
45.42
GitHub Action Run
8 test_python_linux_x86_64_9/10 - 19581575426.8 21 Nov 2025 07:52PM UTC 1185
45.06
GitHub Action Run
9 test_python_linux_x86_64_0/10 - 19581575426.9 21 Nov 2025 07:51PM UTC 1199
46.98
GitHub Action Run
10 test_python_macos14_arm64 - 19581575426.10 21 Nov 2025 07:59PM UTC 1162
43.25
GitHub Action Run
11 test_python_linux_x86_64_1/10 - 19581575426.11 21 Nov 2025 07:51PM UTC 1178
40.34
GitHub Action Run
12 test_python_linux_x86_64_6/10 - 19581575426.12 21 Nov 2025 07:48PM UTC 1180
40.82
GitHub Action Run
Source Files on build 19581575426
  • Tree
  • List 1726
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19581575426
  • a6cc9e33 on github
  • Prev Build on main (#19551203802)
  • Next Build on main (#19583098256)
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