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

pantsbuild / pants / 29062390045
93%

Build:
DEFAULT BRANCH: main
Ran 10 Jul 2026 01:37AM UTC
Jobs 11
Files 1770
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

10 Jul 2026 01:26AM UTC coverage: 92.969% (-0.3%) from 93.222%
29062390045

push

github

web-flow
Fix: Defer `validate_resolved_files` in `hydrate_sources` to support … (#23465)

Fixes #23015

### Problem
`SingleSourceField`s that rely on target generation/codegen currently
fail to hydrate. This happens because `validate_resolved_files` is
called immediately after glob expansion, *before* the actual code
generation (`generate_sources`) takes place. Since `SingleSourceField`
strictly expects exactly 1 file, this premature validation fails because
the generated file doesn't exist yet.

### Solution
Refactored the execution order inside `hydrate_sources`
(`src/python/pants/engine/internals/graph.py`) to defer file validation:
- If codegen is not in use, the validation happens normally on the
initial `snapshot` as before.
- If codegen is enabled, the validation is skipped initially and only
called on `generated_sources.snapshot.files` after the
`generate_sources` await completes.

Also added the corresponding release note to `docs/notes/2.34.x.md`.

---------

Signed-off-by: Thiago Riemma Carbonera <thiagoriemma@gmail.com>

24 of 26 new or added lines in 2 files covered. (92.31%)

1 existing line in 1 file now uncovered.

94519 of 101667 relevant lines covered (92.97%)

3.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
92.78
-0.2% src/python/pants/engine/internals/graph.py

Coverage Regressions

Lines Coverage ∆ File
1
96.15
-3.85% src/python/pants/backend/tools/preamble/subsystem.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_arm64 - 29062390045.1 10 Jul 2026 01:37AM UTC 1189
51.81
GitHub Action Run
2 test_python_linux_x86_64_5/10 - 29062390045.2 10 Jul 2026 01:39AM UTC 1223
60.02
GitHub Action Run
3 test_python_linux_x86_64_0/10 - 29062390045.3 10 Jul 2026 01:42AM UTC 1230
57.36
GitHub Action Run
4 test_python_linux_x86_64_2/10 - 29062390045.4 10 Jul 2026 01:39AM UTC 1210
58.68
GitHub Action Run
5 test_python_linux_x86_64_7/10 - 29062390045.5 10 Jul 2026 01:44AM UTC 1211
50.88
GitHub Action Run
6 test_python_linux_x86_64_1/10 - 29062390045.6 10 Jul 2026 01:41AM UTC 1209
48.91
GitHub Action Run
7 test_python_linux_x86_64_4/10 - 29062390045.7 10 Jul 2026 01:45AM UTC 1240
59.03
GitHub Action Run
8 test_python_linux_x86_64_9/10 - 29062390045.8 10 Jul 2026 01:41AM UTC 1220
53.98
GitHub Action Run
9 test_python_linux_x86_64_6/10 - 29062390045.9 10 Jul 2026 01:39AM UTC 1205
49.73
GitHub Action Run
10 test_python_linux_x86_64_3/10 - 29062390045.10 10 Jul 2026 01:42AM UTC 1208
53.68
GitHub Action Run
11 test_python_linux_x86_64_8/10 - 29062390045.11 10 Jul 2026 01:43AM UTC 1209
52.87
GitHub Action Run
Source Files on build 29062390045
  • Tree
  • List 1770
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29062390045
  • 4f4a482a on github
  • Prev Build on main (#29040626794)
  • Next Build on main (#29081159055)
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