hundreds-father-404
02/07/2020, 11:47 PMBuildFileAddresses from the engine! https://github.com/pantsbuild/pants/pull/9091
The sole remaining issue is that test.py requesting an AddressOriginMap results in the test goal rule being unreachable. I can’t figure out how to fix it if anyone has a moment to take a look..Pull down the PR and in test.py uncomment out line 179witty-crayon-22786
02/08/2020, 12:58 AMAddressOriginMap ?hundreds-father-404
02/08/2020, 12:59 AMgraph.000.dot or rule_graph.dot.pdf?witty-crayon-22786
02/08/2020, 1:00 AMwitty-crayon-22786
02/08/2020, 1:00 AMwitty-crayon-22786
02/08/2020, 1:00 AMGraphwitty-crayon-22786
02/08/2020, 1:00 AMRuleGraphhundreds-father-404
02/08/2020, 1:01 AMhundreds-father-404
02/08/2020, 1:02 AMwitty-crayon-22786
02/08/2020, 1:03 AMSelect(AddressOriginMap) for (FilesystemSpecs, OptionsBootstrapper)hundreds-father-404
02/08/2020, 1:03 AMwitty-crayon-22786
02/08/2020, 1:03 AMSelect(AddressOriginMap) for AddressSpecswitty-crayon-22786
02/08/2020, 1:03 AMwitty-crayon-22786
02/08/2020, 1:04 AMwitty-crayon-22786
02/08/2020, 1:04 AMwitty-crayon-22786
02/08/2020, 1:04 AMhundreds-father-404
02/08/2020, 1:05 AMhundreds-father-404
02/08/2020, 1:06 AMaloof-angle-91616
02/08/2020, 1:06 AMwitty-crayon-22786
02/08/2020, 1:07 AMhundreds-father-404
02/08/2020, 1:07 AMException message: Rules with errors: 1
@goal_rule(pants.rules.core.test:136:run_tests(Console, TestOptions, InteractiveRunner, Addresses) -> Test, gets=[Get[Address](Addresses), Get[AddressAndDebugRequest](Address), Get[AddressAndTestResult](Address)]):
Was not reachable, either because no rules could produce the params or because it was shadowed by another @rule.witty-crayon-22786
02/08/2020, 1:08 AMhundreds-father-404
02/08/2020, 1:08 AMcoordinator_of_tests requires AddressOriginMap fixes it allhundreds-father-404
02/08/2020, 1:09 AMAddressOriginMap. This is the await that causes the coordinator to be called:
results = await MultiGet(Get[AddressAndTestResult](Address, addr) for addr in addresses)witty-crayon-22786
02/08/2020, 1:09 AMwitty-crayon-22786
02/08/2020, 1:09 AMhundreds-father-404
02/08/2020, 1:10 AMAddressOriginMap given the above await Get, which only passes Address as a param (which then gets converted into HydratedTarget)witty-crayon-22786
02/08/2020, 1:11 AMwitty-crayon-22786
02/08/2020, 1:12 AMhundreds-father-404
02/08/2020, 1:13 AMwitty-crayon-22786
02/08/2020, 4:36 AMwitty-crayon-22786
02/08/2020, 4:36 AMaloof-angle-91616
02/08/2020, 4:36 AMaloof-angle-91616
02/08/2020, 4:36 AMwitty-crayon-22786
02/08/2020, 4:37 AMwitty-crayon-22786
02/09/2020, 1:15 AMAddresses -> Address ... i was worried that that one might be ambiguous.witty-crayon-22786
02/09/2020, 1:15 AMAmbiguous rules to compute Get[Address](Addresses) with parameter types (Address, AddressSpecs, Console, InteractiveRunner, OptionsBootstrapper):
@rule(pants.init.engine_initializer:435:single_address(Addresses) -> Address) for Addresses
Param(Address)witty-crayon-22786
02/09/2020, 1:16 AMhundreds-father-404
02/09/2020, 1:16 AMwitty-crayon-22786
02/09/2020, 1:17 AMwitty-crayon-22786
02/09/2020, 1:18 AMwitty-crayon-22786
02/09/2020, 1:18 AMParam(Address)
vs
@rule(pants.init.engine_initializer:435:single_address(Addresses) -> Address) for Addresseswitty-crayon-22786
02/09/2020, 1:19 AMhundreds-father-404
02/09/2020, 1:24 AMwitty-crayon-22786
02/09/2020, 1:24 AMwitty-crayon-22786
02/09/2020, 1:25 AMwitty-crayon-22786
02/09/2020, 1:30 AMResolveError ... i need to run, but @hundreds-father-404: i pushed to https://github.com/pantsbuild/pants/pull/9091hundreds-father-404
02/09/2020, 1:30 AMwitty-crayon-22786
02/09/2020, 1:30 AMhundreds-father-404
02/09/2020, 1:31 AMwitty-crayon-22786
02/09/2020, 1:31 AMResolveError lives right now... i think we should probably move it to base.exceptionswitty-crayon-22786
02/09/2020, 1:31 AMFile "/Users/stuhood/src/pants/src/python/pants/engine/addressable.py", line 12, in <module>
from pants.engine.mapper import ResolveError
File "/Users/stuhood/src/pants/src/python/pants/engine/mapper.py", line 10, in <module>
from pants.engine.parser import Parser
File "/Users/stuhood/src/pants/src/python/pants/engine/parser.py", line 8, in <module>
from pants.engine.struct import Struct
File "/Users/stuhood/src/pants/src/python/pants/engine/struct.py", line 8, in <module>
from pants.engine.addressable import addressable, addressable_list
Exception message: cannot import name 'addressable' from 'pants.engine.addressable' (/Users/stuhood/src/pants/src/python/pants/engine/addressable.py)hundreds-father-404
02/09/2020, 1:31 AMwitty-crayon-22786
02/09/2020, 1:31 AM