aloof-angle-91616
12/12/2019, 8:02 PMaloof-angle-91616
12/12/2019, 8:02 PMwitty-crayon-22786
12/12/2019, 8:02 PMaloof-angle-91616
12/12/2019, 8:02 PMwitty-crayon-22786
12/12/2019, 8:02 PMaloof-angle-91616
12/12/2019, 8:02 PMhundreds-breakfast-49010
12/13/2019, 7:52 PMhundreds-breakfast-49010
12/13/2019, 11:39 PMgentle-wolf-58752
12/16/2019, 7:42 PMtest
- adding an option to run within an interactive session) and am running into couple hiccups. Notably:
• How to best mock out options being passed to a rule (using the run_rule
test util, I didn’t catch anything in / after Erics change in https://github.com/pantsbuild/pants/pull/8742 that served as an example)
• How to best constrain the rule to a single BFA when the option is provided (following https://github.com/pantsbuild/pants/pull/8586 it seems I could do this via specs, wasn’t sure if there was something more elegant)dry-analyst-73584
12/16/2019, 10:06 PMdry-analyst-73584
12/16/2019, 10:07 PMsource_root_stripped_sources = await MultiGet(
Get(SourceRootStrippedSources, HydratedTarget, target_adaptor)
for target_adaptor in all_targets
)
But this:
source_root_stripped_source = await Get(SourceRootStrippedSources, HydratedTarget, test_target)
results in the above error when added to the same file.witty-crayon-22786
12/16/2019, 10:28 PMwitty-crayon-22786
12/16/2019, 10:29 PMtest_target
is not a HydratedTarget
dry-analyst-73584
12/16/2019, 10:30 PMhappy-kitchen-89482
12/17/2019, 11:03 PMhappy-kitchen-89482
12/17/2019, 11:03 PME Computing Task(create_pex_from_target_closure(), (<pants.backend.python.subsystems.python_native_code.PythonNativeCode object at 0x1063a2e10>+<pants.backend.python.subsystems.python_setup.PythonSetup object at 0x1063a2da0>+<pants.backend.python.subsystems.subprocess_environment.SubprocessEnvironment object at 0x1063a2eb8>+<pants.source.source_root.SourceRootConfig object at 0x1083254a8>+CreatePexFromTargetClosure(addresses=<pants.engine.addressable.Addresses object at 0x108325588>, output_filename='hello_world.pex', entry_point=None)), Pex, true)
E Computing Task(transitive_hydrated_targets(), <pants.engine.addressable.Addresses object at 0x108325588>, TransitiveHydratedTargets, true)
E Computing Task(transitive_hydrated_target(), foo/bar/hello_world:hello_world, TransitiveHydratedTarget, true)
E Computing Task(hydrate_target(), foo/bar/hello_world:hello_world, HydratedTarget, true)
E Computing Task(hydrate_struct(), foo/bar/hello_world:hello_world, HydratedStruct, true)
E Computing Task(parse_address_family(), Dir(path='foo/bar/hello_world'), AddressFamily, true)
E Throw(Directory "foo/bar/hello_world" does not contain any BUILD files.)
E Traceback (most recent call last):
E File "/Users/benjyw/src/pants/.pants.d/pyprep/sources/332bd781b5094207bbfda46605ed39fed8d66b78/pants/engine/native.py", line 485, in extern_generator_send
E res = c.from_value(func[0]).send(c.from_value(arg[0]))
E File "/Users/benjyw/src/pants/.pants.d/pyprep/sources/332bd781b5094207bbfda46605ed39fed8d66b78/pants/engine/build_files.py", line 53, in parse_address_family
E 'Directory "{}" does not contain any BUILD files.'.format(directory.path)
E pants.engine.mapper.ResolveError: Directory "foo/bar/hello_world" does not contain any BUILD files.
hundreds-breakfast-49010
12/18/2019, 1:09 AMhappy-kitchen-89482
12/18/2019, 5:49 AMhappy-kitchen-89482
12/18/2019, 5:49 AMsrc/python/pants/backend2
. Feel free to bikeshed that location; See https://docs.google.com/document/d/1E6a7nKq5Lf1G-VRS987ZT77KYkR5DT8JNxb9x4I4xEA/edit?usp=sharing for context.happy-kitchen-89482
12/18/2019, 5:12 PMwitty-crayon-22786
12/19/2019, 8:32 AMhundreds-breakfast-49010
12/19/2019, 11:16 PMhappy-kitchen-89482
12/20/2019, 6:08 AMpython_library
is mapped to PythonTargetAdaptor
, which is the base class of PythonBinaryAdaptor
and PythonTestsAdaptor
, instead of to a PythonLibraryAdaptor
subclass of it?happy-kitchen-89482
12/20/2019, 6:08 AMhappy-kitchen-89482
12/20/2019, 6:09 AMwitty-crayon-22786
12/20/2019, 6:27 AMaverage-vr-56795
12/20/2019, 10:43 AMhundreds-breakfast-49010
12/20/2019, 7:21 PM@rule
rather than a @console_rule
returned a Goal
subclass? would that be detected as a top-level goal?hundreds-breakfast-49010
12/20/2019, 10:33 PMhappy-kitchen-89482
12/23/2019, 9:20 PMno space left on device
issue is becoming acute. Has anyone made any headway into diagnosing it? E.g., do we think it's related to lmdb?