witty-crayon-22786
05/11/2016, 12:11 AMrough-minister-58256
05/11/2016, 12:12 AMexport PANTS_ENABLE_PANTSD=true
export PANTS_PANTSD_FS_EVENT_DETECTION=true
wide-energy-11069
05/11/2016, 12:22 AMinject_specs_closure
wide-energy-11069
05/11/2016, 12:28 AMwide-energy-11069
05/11/2016, 12:32 AMrough-minister-58256
05/11/2016, 12:33 AM--no-enable-pantsd
rough-minister-58256
05/11/2016, 12:33 AMwide-energy-11069
05/11/2016, 12:33 AMrough-minister-58256
05/11/2016, 12:52 AMrough-minister-58256
05/11/2016, 12:52 AMwitty-crayon-22786
05/11/2016, 1:03 AM$ git diff
diff --git a/src/python/pants/engine/legacy/graph.py b/src/python/pants/engine/legacy/graph.py
index 53be30a..e825efc 100644
--- a/src/python/pants/engine/legacy/graph.py
+++ b/src/python/pants/engine/legacy/graph.py
@@ -170,13 +170,16 @@ class LegacyBuildGraph(BuildGraph):
def _inject(self, subjects):
"""Request LegacyTargets for each of the subjects, and yield resulting Addresses."""
logger.debug('Injecting to {}: {}'.format(self, subjects))
- request = self._scheduler.execution_request([LegacyTarget], subjects)
+ request = self._scheduler.execution_request([LegacyTarget, Address], [DescendantAddresses('3rdparty'), SiblingAddresses('src')])
result = self._engine.execute(request)
if result.error:
raise result.error
# Update the base class indexes for this request.
- for address in self._index(request.roots):
- yield address
+ legacy_target_root, address_root = request.roots
+ self._index([legacy_target_root])
+
+ address_state = self._scheduler.root_entries(request)[address_root]
+ return address_state.value
class LegacyTarget(datatype('LegacyTarget', ['adaptor', 'dependencies'])):
witty-crayon-22786
05/11/2016, 1:03 AMrough-minister-58256
05/11/2016, 1:17 AMW0510 18:15:58.257334 22809 pailgun_service.py:69] encountered exception during SchedulerService.get_build_graph():
Traceback (most recent call last):
File "/Users/kwilson/dev/pants/src/python/pants/pantsd/service/pailgun_service.py", line 65, in runner_factory
build_graph = self._scheduler_service.get_build_graph(spec_roots)
File "/Users/kwilson/dev/pants/src/python/pants/pantsd/service/scheduler_service.py", line 87, in get_build_graph
for _ in graph.inject_specs_closure(spec_roots): # Ensure the entire generator is unrolled.
File "/Users/kwilson/dev/pants/src/python/pants/engine/legacy/graph.py", line 167, in inject_specs_closure
for address in self._inject(specs):
File "/Users/kwilson/dev/pants/src/python/pants/engine/legacy/graph.py", line 178, in _inject
for address in self._index(request.roots):
File "/Users/kwilson/dev/pants/src/python/pants/engine/legacy/graph.py", line 64, in _index
'Build graph construction failed for {}:\n {}'.format(node.subject, state.exc))
AddressLookupError: Build graph construction failed for DescendantAddresses(directory=u''):
No source of explicit dependency SelectNode(subject=(PathGlobs(ftype=<class 'pants.engine.selectors.Collection(<class 'pants.engine.fs.File'>)'>, dependencies=(PathLiteral(ftype=<class 'pants.engine.selectors.Collection(<class 'pants.engine.fs.File'>)'>, directory=u'examples/src/java/org/pantsbuild/example/hello/main/config', remainder=u'*'),)), PathGlobs(ftype=<class 'pants.engine.selectors.Collection(<class 'pants.engine.fs.File'>)'>, dependencies=())), product=<class 'pants.engine.selectors.Collection(<class 'pants.engine.fs.FileContent'>)'>, variants=None, variant_key=None)
witty-crayon-22786
05/11/2016, 1:18 AMrough-minister-58256
05/11/2016, 1:18 AMwitty-crayon-22786
05/11/2016, 1:18 AMrough-minister-58256
05/11/2016, 1:18 AMrough-minister-58256
05/11/2016, 1:18 AMrough-minister-58256
05/11/2016, 1:20 AMwide-energy-11069
05/11/2016, 1:34 AMwide-energy-11069
05/11/2016, 1:34 AM:34:19.852246 30526 pailgun_server.py:72] handling pailgun request: `./pants list examples/tests/java/org/pantsbuild/example/hello/greet:greet`
W0510 18:34:20.378123 30526 pailgun_service.py:69] encountered exception during SchedulerService.get_build_graph():
Traceback (most recent call last):
File "/Users/yic/workspace/pants/src/python/pants/pantsd/service/pailgun_service.py", line 65, in runner_factory
build_graph = self._scheduler_service.get_build_graph(spec_roots)
File "/Users/yic/workspace/pants/src/python/pants/pantsd/service/scheduler_service.py", line 85, in get_build_graph
graph = self._build_graph_facade_cls(self._scheduler, self._engine, self._symbol_table_cls)
File "/Users/yic/workspace/pants/src/python/pants/engine/legacy/graph.py", line 42, in __init__
self._graph = scheduler.product_graph
File "/Users/yic/workspace/pants/src/python/pants/build_graph/build_graph.py", line 99, in __init__
self.reset()
File "/Users/yic/workspace/pants/src/python/pants/engine/legacy/graph.py", line 46, in reset
File "/Users/yic/workspace/pants/src/python/pants/engine/legacy/graph.py", line 61, in _index
# Locate nodes that contain LegacyTarget values.
AddressLookupError: Build graph construction failed for Link(path=u'dist/export-classpath/examples.src.resources.org.pantsbuild.example.hello.hello-0'):
Absolute symlinks not supported in FileSystemProjectTree(/Users/yic/workspace/pants): dist/export-classpath/examples.src.resources.org.pantsbuild.example.hello.hello-0 -> /Users/yic/workspace/pants/.pants.d/resources/prepare/d4600a981d5d/examples.src.resources.org.pantsbuild.example.hello.hello/ffc23b4562d3
@rough-minister-58256: is this expected? on masterwide-energy-11069
05/11/2016, 1:35 AMrough-minister-58256
05/11/2016, 2:23 AM./dist
and finding a symlink - probably from a prior runrough-minister-58256
05/11/2016, 2:23 AM./dist
to --pants-ignore
rough-minister-58256
05/11/2016, 2:26 AMFileSystemProjectTree
would scan into dist given your invocation thorough-minister-58256
05/11/2016, 2:58 AM./dist/export-classpath
has absolute symlinks into .pants.d
? doesn’t that kill the export-classpath
build product anytime someone runs a clean-all
?witty-crayon-22786
05/11/2016, 3:09 AMrough-minister-58256
05/11/2016, 3:09 AMwitty-crayon-22786
05/11/2016, 3:09 AMwitty-crayon-22786
05/11/2016, 3:09 AM