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

pantsbuild / pants / 6386
74%
main: 93%

Build:
Build:
LAST BUILD BRANCH: add/port-frozen-ordered-set
DEFAULT BRANCH: main
Ran 24 Aug 2015 08:50PM UTC
Jobs 10
Files 356
Run time 10min
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
6386

push

travis-ci

stuhood
Add a just-in-time check of the artifact cache to the isolated compile strategy

Now that we have a single large chunk arriving in ZincCompile, the `self.invalidated` block for compilation will do a single upfront check for all cache entries (thousands potentially), and then begin compiling them, without ever checking the cache again.

In the future, pushing the invalidation check down into the `work` function that runs the compilation could be the cleanest solution. But currently I would be concerned by threadsafety in the build invalidator and elsewhere. Instead, this patch adds a double-check of the cache inside the work function.

- Add a double check of the cache to the isolated strategy immediately before beginning to compile.

Testing Done:
https://github.com/pantsbuild/pants/pull/2052

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

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

16035 of 21649 relevant lines covered (74.07%)

1.4 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
100.0
src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile_isolated_strategy.py
1
100.0
src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py

Coverage Regressions

Lines Coverage ∆ File
135
100.0
src/python/pants/backend/jvm/tasks/junit_run.py
109
100.0
src/python/pants/backend/jvm/tasks/jar_publish.py
72
100.0
src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile_global_strategy.py
69
100.0
src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile_isolated_strategy.py
29
100.0
src/python/pants/backend/core/register.py
29
100.0
src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py
25
100.0
src/python/pants/binaries/binary_util.py
24
100.0
src/python/pants/option/options.py
21
100.0
src/python/pants/backend/core/tasks/task.py
18
100.0
src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile_strategy.py
17
100.0
src/python/pants/base/target.py
16
100.0
src/python/pants/backend/jvm/tasks/jvm_compile/java/java_compile.py
13
100.0
src/python/pants/pantsd/process_manager.py
12
100.0
src/python/pants/backend/jvm/tasks/jvm_platform_analysis.py
11
100.0
src/python/pants/backend/jvm/subsystems/jvm.py
10
100.0
src/python/pants/fs/archive.py
9
100.0
src/python/pants/backend/core/tasks/group_task.py
9
100.0
src/python/pants/java/distribution/distribution.py
7
100.0
src/python/pants/backend/jvm/tasks/nailgun_task.py
6
100.0
src/python/pants/backend/codegen/tasks/apache_thrift_gen.py
2
100.0
src/python/pants/backend/python/interpreter_cache.py
2
100.0
src/python/pants/subsystem/subsystem.py
1
100.0
src/python/pants/backend/jvm/targets/java_tests.py
1
100.0
src/python/pants/base/worker_pool.py
1
100.0
src/python/pants/goal/goal.py
Jobs
ID Job ID Ran Files Coverage
1 6386.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 24 Aug 2015 08:50PM UTC 0
Travis Job 6386.1
2 6386.2 (CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'") 24 Aug 2015 08:54PM UTC 0
69.98
Travis Job 6386.2
3 6386.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'") 24 Aug 2015 08:53PM UTC 0
69.65
Travis Job 6386.3
4 6386.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 24 Aug 2015 08:53PM UTC 0
Travis Job 6386.4
5 6386.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 24 Aug 2015 08:56PM UTC 0
Travis Job 6386.5
6 6386.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 24 Aug 2015 08:56PM UTC 0
Travis Job 6386.6
7 6386.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 24 Aug 2015 08:58PM UTC 0
Travis Job 6386.7
8 6386.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 24 Aug 2015 08:59PM UTC 0
Travis Job 6386.8
9 6386.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 24 Aug 2015 09:00PM UTC 0
Travis Job 6386.9
10 6386.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 24 Aug 2015 09:01PM UTC 0
Travis Job 6386.10
Source Files on build 6386
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6386
  • 01917590 on github
  • Prev Build on twitter/pants-1.2.6 (#6375)
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