LazySourceMapper and tests

Review Request #1526 — Created Dec. 19, 2014 and submitted

davidt
pants
882
555b84c...
pants-reviews
dturner-tw, jsirois, patricklaw

A LazySourceMapper attempts to find targets which own sources without
loading any more than is needed and caches its results.

This is intended for use in tasks like what-changed or (in the future)
goals which discover target to act on (eg 'compile-changed') or other
uses cases which want to map a source file to a target as cheaply as possible.

Integration into what-changed will be a follow-up if/when this lands.

./pants goal test tests/python/pants_test/base:lazy_source_mapper
https://travis-ci.org/pantsbuild/pants/builds/44622933

  • 0
  • 0
  • 2
  • 0
  • 2
Description From Last Updated
DA
  1. 
      
  2. src/python/pants/base/BUILD (Diff revision 1)
     
     

    missing deps on build_env and build_file

  3. Maybe users should just pick fast-vs-exhustive, and in the case of 'fast' accept that ordering, in addition to addtion/removal of other souces, affects results.

    This seems like it adds complextiy but only partially solves the issue, so maybe it isn't worth it?

    Thoughts?

    1. I convinced myself I didn't like the complexity after all.

  4. 
      
PA
  1. Ship It!

  2. 
      
DA
DT
  1. Ship It!

  2. 
      
DA
DA
Review request changed

Status: Closed (submitted)

Change Summary:

e5cca4c1661235eedb4050db185f34c6edade820
Loading...