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

pantsbuild / pants / 6860
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: uv-lockfile-resolver
DEFAULT BRANCH: main
Ran 15 Sep 2015 05:53AM UTC
Jobs 10
Files 391
Run time 106min
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

pending completion
6860

push

travis-ci

jsirois
Fix resource handling for the python backend.

Previously resource handling was broken in a few ways:
1. Resources targets in the same build file could not be addressed
   via `PythonTarget.resources` because relative_to was not passed to
   the build_graph.
2. Since resource targets were not modelled as dependencies, they
   could not be found via the `PythonTarget.resources` property since
   they never were loaded into the build graph.
3. SetupPy only honored resources set via the `PythonTarget`
   `resources` constructor parameter.

This change fixes resources to be modelled as dependencies like they
are for `JvmTarget`, solving 2 above, and fixes resources target
resolution to use `relative_to` solving 1 above.  `SetupPy` now reads
resources from the fixed `PythonTarget.resources` property and gathers
resource sources like it does for all other dependencies fixing 3
above.

All existing python targets are updated to use `target_resources`
instead of `resources` as dogfood and a unit test is added to ensure
both modes of expressing resources work.

Testing Done:
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/80315273

Bugs closed: 309, 1841, 2191

Reviewed at https://rbcommons.com/s/twitter/r/2817/

30 of 30 new or added lines in 3 files covered. (100.0%)

17774 of 23516 relevant lines covered (75.58%)

1.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
src/python/pants/backend/python/targets/python_target.py
Jobs
ID Job ID Ran Files Coverage
1 6860.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 15 Sep 2015 05:53AM UTC 0
Travis Job 6860.1
2 6860.2 (CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'") 15 Sep 2015 05:54AM UTC 0
71.42
Travis Job 6860.2
3 6860.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'") 15 Sep 2015 05:53AM UTC 0
71.05
Travis Job 6860.3
4 6860.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 15 Sep 2015 05:54AM UTC 0
Travis Job 6860.4
5 6860.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 15 Sep 2015 05:58AM UTC 0
Travis Job 6860.5
6 6860.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 15 Sep 2015 06:00AM UTC 0
Travis Job 6860.6
7 6860.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 15 Sep 2015 06:01AM UTC 0
Travis Job 6860.7
8 6860.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 15 Sep 2015 06:01AM UTC 0
Travis Job 6860.8
9 6860.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 15 Sep 2015 05:59AM UTC 0
Travis Job 6860.9
10 6860.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 15 Sep 2015 06:04AM UTC 0
Travis Job 6860.10
Source Files on build 6860
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6860
  • 775600e9 on github
  • Prev Build on master (#6859)
  • Next Build on master (#6870)
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