happy-kitchen-89482
05/28/2024, 11:14 PMwide-midnight-78598
05/28/2024, 11:40 PMconcurrently is just an alias to MultiGet - but I haven't QA'd the call-by-name migrations, as it's waiting on the intrinsics piecewide-midnight-78598
05/28/2024, 11:41 PMhappy-kitchen-89482
05/29/2024, 1:35 PMgather, a la asyncio.gather.happy-kitchen-89482
05/29/2024, 1:35 PMwide-midnight-78598
05/29/2024, 1:49 PMasyncio.gather even? But I wasn't sure if that was the case, having never looked under the hoodhappy-kitchen-89482
05/29/2024, 2:03 PMhappy-kitchen-89482
05/29/2024, 2:05 PMasyncio.gather - wait for all the awaitables concurrently, and return when they are all donehappy-kitchen-89482
05/29/2024, 2:05 PMhappy-kitchen-89482
05/29/2024, 2:06 PMconcurrently() but I have since done a whole bunch of non-Pants-related python asyncio work, and so am used to gather() )wide-midnight-78598
05/29/2024, 2:08 PMgather is shadowing the actual gather. BUT, if we're not using Python's asyncio in any of our files, then it's a nonissuehappy-kitchen-89482
05/29/2024, 2:08 PMgather() is itself an awaitable so you can compose them. Not sure if that is true of MultiGet.happy-kitchen-89482
05/29/2024, 2:09 PMasyncio.gather(), so they wouldn't collide even if we did have python asynciowide-midnight-78598
05/29/2024, 2:10 PMhappy-kitchen-89482
05/29/2024, 2:11 PMhappy-kitchen-89482
05/29/2024, 2:12 PMwide-midnight-78598
05/29/2024, 2:13 PMwide-midnight-78598
05/29/2024, 2:13 PMasyncio isn't importedhappy-kitchen-89482
05/29/2024, 2:17 PMhappy-kitchen-89482
05/29/2024, 2:18 PMhappy-kitchen-89482
05/29/2024, 2:18 PMTypeError: get_optional_source_root() got multiple values for argument 'source_root_request'happy-kitchen-89482
05/29/2024, 2:18 PMhappy-kitchen-89482
05/29/2024, 2:19 PMsource_roots = await concurrently(
[get_optional_source_root(SourceRootRequest(Path("zzz")), **implicitly()),
get_optional_source_root(SourceRootRequest(Path("yyy")), **implicitly())]
)happy-kitchen-89482
05/29/2024, 2:20 PMhappy-kitchen-89482
05/29/2024, 2:20 PMwide-midnight-78598
05/29/2024, 2:21 PMwide-midnight-78598
05/29/2024, 2:21 PMwide-midnight-78598
05/29/2024, 2:22 PMhappy-kitchen-89482
05/29/2024, 2:52 PMhappy-kitchen-89482
05/29/2024, 3:07 PMwitty-crayon-22786
05/29/2024, 3:16 PMhappy-kitchen-89482
05/29/2024, 3:17 PMwitty-crayon-22786
05/29/2024, 3:33 PMhappy-kitchen-89482
05/29/2024, 3:34 PMwitty-crayon-22786
05/29/2024, 3:34 PMwitty-crayon-22786
05/31/2024, 4:59 AMwitty-crayon-22786
05/31/2024, 5:17 AM@rules. Woot.wide-midnight-78598
05/31/2024, 12:17 PMwide-midnight-78598
05/31/2024, 12:19 PMhappy-kitchen-89482
05/31/2024, 4:30 PMwide-midnight-78598
05/31/2024, 4:44 PMhappy-kitchen-89482
05/31/2024, 4:47 PMhappy-kitchen-89482
05/31/2024, 4:48 PMhappy-kitchen-89482
05/31/2024, 4:48 PMhappy-kitchen-89482
05/31/2024, 4:48 PMwide-midnight-78598
05/31/2024, 4:55 PMwide-midnight-78598
05/31/2024, 4:55 PMwide-midnight-78598
05/31/2024, 5:05 PMwide-midnight-78598
05/31/2024, 5:05 PMhappy-kitchen-89482
06/01/2024, 4:40 PMhappy-kitchen-89482
06/01/2024, 4:41 PMhappy-kitchen-89482
06/01/2024, 4:42 PMwide-midnight-78598
06/05/2024, 12:50 AMmultiple values issue?wide-midnight-78598
06/05/2024, 12:57 AMconcurrently
This gives me a multiple values error (I think because implicitly is passing the request object, even though that's the first arg in line 1. (map_short_form_get_to_new_syntax in migrate_call_by_name.py)
explicitly_provided_deps = await determine_explicitly_provided_dependencies(DependenciesRequest(request.field_set.dependencies), **implicitly())
hydrated_sources = await hydrate_sources(HydrateSourcesRequest(request.field_set.sources), **implicitly())
This version of call-by-name works. (map_long_form_get_to_new_syntax in migrate_call_by_name.py)
explicitly_provided_deps = await determine_explicitly_provided_dependencies(**implicitly(DependenciesRequest(request.field_set.dependencies)))
hydrated_sources = await hydrate_sources(**implicitly(HydrateSourcesRequest(request.field_set.sources)))happy-kitchen-89482
06/05/2024, 12:58 AMimplicitly() incorrectly. I'm not actually sure what its arguments should be?wide-midnight-78598
06/05/2024, 1:00 AMwide-midnight-78598
06/05/2024, 1:00 AMwide-midnight-78598
06/05/2024, 1:03 AMwide-midnight-78598
06/05/2024, 1:10 AMimplicitly if everything can be marked by positional args. The migration tool doesn't read out function types, so it indiscriminately has implicitly in every migrated callwide-midnight-78598
06/05/2024, 1:12 AMwide-midnight-78598
06/05/2024, 5:43 AMasync def determine_explicitly_provided_dependencies(
request: ExplicitlyProvidedDependenciesRequest,
union_membership: UnionMembership,
registered_target_types: RegisteredTargetTypes,
subproject_roots: SubprojectRoots,
...
foo = await determine_explicitly_provided_dependencies(DependenciesRequest(request.field_set.dependencies), **implicitly())
In the rust code func.call(args, Some(kwargs)) - I'm seeing a kwargs of:
"request": UnionMembership<>,
"union_membership": RegisteredTargetTypes<>,
"registered_target_types": SubprojectRoots
which is causing the multiple values of "request" error.
I think we're missing a .skip(explicit_args_arity) kinda thing on the self.tasks.args.iter()?witty-crayon-22786
06/06/2024, 6:08 AMwide-midnight-78598
06/06/2024, 12:34 PMhappy-kitchen-89482
06/09/2024, 8:45 AMhappy-kitchen-89482
06/09/2024, 8:56 AMwide-midnight-78598
06/09/2024, 10:57 AM