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

pantsbuild / pants / 29062390045 / 11
93%
main: 93%

Build:
DEFAULT BRANCH: main
Ran 10 Jul 2026 01:57AM UTC
Files 1209
Run time 1min
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: 52.872% (-0.005%) from 52.877%
29062390045.11

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>

32437 of 61350 relevant lines covered (52.87%)

0.53 hits per line

Source Files on job test_python_linux_x86_64_8/10 - 29062390045.11
  • Tree
  • List 1209
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29062390045
  • 4f4a482a on github
  • Prev Job for on main (#29040626794.6)
  • Next Job for on main (#29081159055.6)
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