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

pantsbuild / pants / 4414
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: dependabot/cargo/src/rust/rust-version-updates-554cb32683
DEFAULT BRANCH: main
Ran 10 Apr 2015 07:26PM UTC
Jobs 10
Files 317
Run time 43min
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
4414

push

travis-ci

jsirois
Add optional support for auto-shading jvm tools.

When registering a jvm tool, the main classname of the tool can be
specified to trigger auto-shading of the tool classpath.

This functionality is dogfooded by JUnitRun for its junit-runner tool.

This changes adds a test for bootstrap_jvm_tools.py that exercises the
normal (legacy) and shading paths as well as updating the
jvm_tool_task_test_base.py infra to work with this new shading option.
The latter enables the pre-existing JUnitRunTest to operate, now using
an auto-shaded jar.

Testing Done:
I manually tested shaded jar invalidation.  It is costly (~6s for the
junit-runner tool), so having the invalidation work correctly is
important.

Decent coverage for the bulk of the new code:
```
$ PANTS_PY_COVERAGE=modules:pants.backend.jvm.tasks.bootstrap_jvm_tools pants.dev test tests/python/pants_test/backend/jvm/tasks:bootstrap_jvm_tools
...
02:29:21 00:00   [test]
02:29:21 00:00     [run_prep_command]
02:29:21 00:00     [test]
02:29:21 00:00     [pytest]
02:29:21 00:00       [run]
                     ============== test session starts ===============
                     platform linux2 -- Python 2.7.8 -- py-1.4.26 -- pytest-2.6.4
                     plugins: timeout
                     collected 1 items

                     tests/python/pants_test/backend/jvm/tasks/test_bootstrap_jvm_tools.py .

                     =========== 1 passed in 10.86 seconds ============
                     Name                                                     Stmts   Miss Branch BrMiss  Cover
                     ------------------------------------------------------------------------------------------
                     src/python/pants/backend/jvm/tasks/bootstrap_jvm_tools     125     16     38     12    83%

02:29:34 00:13     [junit]
02:29:34 00:13     [specs]
               SUCCESS
```

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/57984477

Bugs closed: 663, 1362, 1391

Reviewed at ht... (continued)

115 of 115 new or added lines in 6 files covered. (100.0%)

12842 of 18583 relevant lines covered (69.11%)

0.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
100.0
src/python/pants/backend/jvm/tasks/bootstrap_jvm_tools.py
2
100.0
src/python/pants/backend/jvm/tasks/jar_create.py
2
100.0
src/python/pants/backend/jvm/tasks/jar_task.py
2
100.0
src/python/pants/backend/jvm/tasks/jvm_binary_task.py

Coverage Regressions

Lines Coverage ∆ File
5
100.0
src/python/pants/java/executor.py
Jobs
ID Job ID Ran Files Coverage
1 4414.1 (CI_FLAGS="-cjlpnet 'Various pants self checks'") 10 Apr 2015 07:28PM UTC 0
Travis Job 4414.1
2 4414.2 (CI_FLAGS="-fkmsrcjlpn 'Test examples and testprojects'") 10 Apr 2015 07:56PM UTC 0
Travis Job 4414.2
3 4414.3 (CI_FLAGS="-fkmsrcnet 'Unit tests for pants and pants-plugins'") 10 Apr 2015 08:10PM UTC 0
69.11
Travis Job 4414.3
4 4414.4 (CI_FLAGS="-fkmsrcjlpet 'Python contrib tests'") 10 Apr 2015 07:27PM UTC 0
Travis Job 4414.4
5 4414.5 (CI_FLAGS="-fkmsrjlpnet -i 6:0 'Python integration tests for pants - shard 1'") 10 Apr 2015 07:26PM UTC 0
Travis Job 4414.5
6 4414.6 (CI_FLAGS="-fkmsrjlpnet -i 6:1 'Python integration tests for pants - shard 2'") 10 Apr 2015 07:33PM UTC 0
Travis Job 4414.6
7 4414.7 (CI_FLAGS="-fkmsrjlpnet -i 6:2 'Python integration tests for pants - shard 3'") 10 Apr 2015 07:43PM UTC 0
Travis Job 4414.7
8 4414.8 (CI_FLAGS="-fkmsrjlpnet -i 6:3 'Python integration tests for pants - shard 4'") 10 Apr 2015 07:34PM UTC 0
Travis Job 4414.8
9 4414.9 (CI_FLAGS="-fkmsrjlpnet -i 6:4 'Python integration tests for pants - shard 5'") 10 Apr 2015 07:36PM UTC 0
Travis Job 4414.9
10 4414.10 (CI_FLAGS="-fkmsrjlpnet -i 6:5 'Python integration tests for pants - shard 6'") 10 Apr 2015 07:41PM UTC 0
Travis Job 4414.10
Source Files on build 4414
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4414
  • dcb2de22 on github
  • Prev Build on master (#4412)
  • Next Build on master (#4415)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc