happy-kitchen-89482
07/19/2024, 6:23 AMawait Get(ProcessResult, VenvPexProcess(...))
completes in a few seconds as expected.
await process_request_to_process_result(VenvPexProcess(...))
spins indefinitely.
process = await Get(Process, VenvPexProcess(...))
await process_request_to_process_result(process)
completes in a few seconds as expected.happy-kitchen-89482
07/19/2024, 6:26 AMhappy-kitchen-89482
07/19/2024, 6:32 AMhappy-kitchen-89482
07/19/2024, 6:35 AMawait process_request_to_process_result(
**implicitly(VenvPexProcess(...)))happy-kitchen-89482
07/19/2024, 6:35 AMwide-midnight-78598
07/19/2024, 11:42 AMwide-midnight-78598
07/19/2024, 11:45 AMVenvPexProcess with implicitly
That example is almost exactly a test case:
https://github.com/pantsbuild/pants/blob/f151aaae081886a1c409127fcca23daa84b76d20/src/python/pants/goal/migrate_call_by_name_test.py#L181
"process_request_to_process_result(VenvPexProcess(arg1, arg2, arg3), **implicitly())",
"async def process_request_to_process_result(process: Process, process_execution_environment: ProcessExecutionEnvironment) -> FallibleProcessResult: ...",
"process_request_to_process_result(**implicitly(VenvPexProcess(arg1, arg2, arg3)))",
),wide-midnight-78598
07/19/2024, 11:47 AMimplictly pseudo-fixer (which will eventually be pulled out into a flake8 or whatever) to try to clean up the aggressive implicitly usage (remove unneeded, modify other usage)happy-kitchen-89482
07/19/2024, 1:54 PMwide-midnight-78598
07/19/2024, 2:29 PMwide-midnight-78598
07/19/2024, 2:30 PM