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

pantsbuild / pants / 5618 / 3
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: multiplatform_pex_with_uv
DEFAULT BRANCH: main
Ran 13 Jul 2015 11:07PM UTC
Files 335
Run time 14s
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

13 Jul 2015 11:06PM UTC coverage: 66.583%. First build
CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'"

push

travis-ci

Garrett Malmquist
Stops unit tests in test_simple_codegen_task.py in master from failing.

test_execute() was failing because the artifact cached was turned on
for tests in 839b8f86d. We really
don't want to be using the artifact cache for the synthetic targets
in these unit tests, because the whole point of these unit tests
is to make sure codegen works correctly -- reloading the results of
the previous codegen in the tests making sure codegen works defeats
the purpose.

test_execute() was failing because it expected codegen to run with
a particular set of invalidated targets, and it ran with no targets,
because none of the targets were invalidated (they were reloaded from
the cache).

To fix this, disable_artifact_cache() was called in setUp(), and
test_execute was split into two separate unit tests to test isolated
and global strategies in different test cases (to disentangle which
of them fail).

I also added an explicit check on the number of times execute_codegen
is called for each of these strategies, in addition to just counting
the number of targets they have. This ensures that the test for the
isolated strategy will still fail if none of the targets are
invalidated (rather than just nooping), which is what should be
expected.

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

CI went green again: https://travis-ci.org/pantsbuild/pants/builds/70811356

Bugs closed: 1804

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

13336 of 20029 relevant lines covered (66.58%)

0.67 hits per line

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