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

pantsbuild / pants / 5602 / 2
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: upgrade-hdr-histogram
DEFAULT BRANCH: main
Ran 12 Jul 2015 12:54AM UTC
Files 335
Run time 13s
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

12 Jul 2015 12:53AM UTC coverage: 66.397% (+0.1%) from 66.3%
CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'"

push

travis-ci

Stu Hood
Improved artifact cache usability

Provided a simpler interface for caching, which tasks may opt into: each VersionedTarget (VT) is given a directory in which to place its results, so when executing some task on invalid VersionedTargets, the task may place the artifacts of a VT within its corresponding directory. The act of writing the VT / artifact files to the cache is factored out of individual tasks, and is done "automatically" by Task->execute.

Implemented the above functionality in various tasks to showcase various use cases (CppBinaryCreate, CppCompile, CppLibraryCreate, Checkstyle, Scalastyle, JarCreate). Note: this interface only works on isolated strategies, not global.

Wrote a test utility for verifying arbitrary unit tests are caching results.

Testing Done:
CI: https://travis-ci.org/pantsbuild/pants/builds/70269784

Added C++ integration tests for caching, and applied above mentioned test utility to various tests to verify caching.

Note: There was an issue with Antlr unit tests, which began to fail when using the artifact cache. These tests were disabled: see lengthy comment in tests/python/pants_test/backend/codegen/tasks/test_antlr_gen.py for more details.

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

13292 of 20019 relevant lines covered (66.4%)

0.66 hits per line

Source Files on job 5602.2 (CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'")
  • Tree
  • List 0
  • Changed 9
  • Source Changed 6
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5602
  • Travis Job 5602.2
  • b2202480 on github
  • Prev Job for CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'" on master (#5601.2)
  • Next Job for CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'" on master (#5604.2)
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