witty-crayon-22786
03/08/2016, 10:07 PMfull-kilobyte-93429
03/08/2016, 10:08 PMwitty-crayon-22786
03/08/2016, 10:08 PMfull-kilobyte-93429
03/08/2016, 10:08 PMwitty-crayon-22786
03/08/2016, 10:08 PMwitty-crayon-22786
03/08/2016, 10:09 PMfull-kilobyte-93429
03/08/2016, 10:09 PMwitty-crayon-22786
03/08/2016, 10:10 PMwitty-crayon-22786
03/08/2016, 10:10 PMwitty-crayon-22786
03/08/2016, 10:10 PMwitty-crayon-22786
03/09/2016, 12:53 AMrough-minister-58256
03/09/2016, 1:39 AMcreate_*_tasks()
functions out into a separate register.py? hit a circular import issue with the fs stuff and that was the cure - figured I’d go ahead and do it for all of themwitty-crayon-22786
03/09/2016, 1:39 AMwitty-crayon-22786
03/09/2016, 1:40 AMrough-minister-58256
03/09/2016, 1:49 AMrough-minister-58256
03/09/2016, 1:49 AM==================== FAILURES ====================
____ SchedulerTest.test_dependency_inference _____
self = <pants_test.engine.exp.test_scheduler.SchedulerTest testMethod=test_dependency_inference>
def test_dependency_inference(self):
"""Scala dependency inference introduces dependencies that do not exist in BUILD files."""
build_request = self.request(['compile'], self.inferred_deps)
walk = self.build_and_walk(build_request)
# Validate the root.
self.assert_root(walk,
SelectNode(self.key(self.inferred_deps), Classpath, None, None),
> Classpath(creator='scalac'))
tests/python/pants_test/engine/exp/test_scheduler.py:207:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/python/pants_test/engine/exp/test_scheduler.py:82: in assert_root
self.assertEquals(Return([return_value]), root_state)
E AssertionError: Return(value=[Classpath(creator=u'scalac')]) != Throw(exc=ValueError(u"No source of explicit dependency SelectNode(subject_key=Key(cc5a4693405f47d7c36bf4111c2f8e08addf2452:[src/scala/inferred_deps:inferred_deps]), product=<class 'pants.engine.exp.examples.planners.Classpath'>, variants=None, variant_key=None)",))
-------------- Captured stdout call --------------
ivy_resolve executed for (Jar(address=3rdparty/jvm:scala-library),), returned: Classpath(creator=u'ivy_resolve')
scalac executed for (ScalaSources(dependencies=[3rdparty/jvm:scala-library], files=[u'Scrooge.scala'], spec_path=u'src/scala/scrooge', type_alias=u'scala'), [Classpath(creator=u'ivy_resolve')]), returned: Classpath(creator=u'scalac')
-------------- Captured stderr call --------------
created 379 total nodes in 520 scheduling iterations and 856 steps, with 16 nodes in the executed path.
1 failed, 104 passed, 1 xfailed in 81.21 seconds
rough-minister-58256
03/09/2016, 1:49 AMwitty-crayon-22786
03/09/2016, 1:51 AMrough-minister-58256
03/09/2016, 2:06 AMif self.product is Paths and type(subject) is PathGlobs:
return Return(file_exists(step_context.project_tree, subject))
elif self.product is FilesContent and type(subject) is Paths:
return Return(files_content(step_context.project_tree, subject))
elif self.product is DirectoryListing and type(subject) is Path:
return Return(list_directory(step_context.project_tree, subject))
else:
return Noop('couldnt resolve product {} for subject {} in a FilesystemNode'
.format(self.product, subject))
witty-crayon-22786
03/09/2016, 2:19 AMrough-minister-58256
03/09/2016, 2:19 AMwitty-crayon-22786
03/09/2016, 2:24 AMrough-minister-58256
03/09/2016, 2:24 AMrough-minister-58256
03/09/2016, 2:24 AMwitty-crayon-22786
03/09/2016, 2:25 AMfull-kilobyte-93429
03/09/2016, 5:16 PMsubjects
or State
with a wrapper class, say Storage.Entry
with key
and content
fields, engine is going to handle the translation in both ways, so scheduler only sees key
and nodes see content
.witty-crayon-22786
03/09/2016, 5:38 PMwitty-crayon-22786
03/09/2016, 5:39 PMfull-kilobyte-93429
03/09/2016, 5:40 PMState
casewitty-crayon-22786
03/09/2016, 5:42 PM