fc3fbd5d49556987f670fa71dc5a06c54d2f2d47,src/python/pants/engine/legacy/graph.py,,transitive_hydrated_targets,#Any#,450
Before Change
roots, their structure will be shared.
transitive_hydrated_targets = yield [Get(TransitiveHydratedTarget, Address, a)
for a in build_file_addresses.addresses]
closure = OrderedSet()
to_visit = deque(transitive_hydrated_targets)
while to_visit:
tht = to_visit.popleft()
if tht.root in closure:
continue
closure.add(tht.root)
to_visit.extend(tht.dependencies)
yield TransitiveHydratedTargets(tuple(tht.root for tht in transitive_hydrated_targets), closure)
@rule
def transitive_hydrated_target(root: HydratedTarget) -> TransitiveHydratedTarget:
After Change
roots, their structure will be shared.
transitive_hydrated_targets = await MultiGet(
Get(TransitiveHydratedTarget, Address, a) for a in build_file_addresses.addresses
)
closure = OrderedSet()
to_visit = deque(transitive_hydrated_targets)
while to_visit:
tht = to_visit.popleft()
if tht.root in closure:
continue
closure.add(tht.root)
to_visit.extend(tht.dependencies)
return TransitiveHydratedTargets(tuple(tht.root for tht in transitive_hydrated_targets), closure)
@rule
async def transitive_hydrated_target(root: HydratedTarget) -> TransitiveHydratedTarget:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: pantsbuild/pants
Commit Name: fc3fbd5d49556987f670fa71dc5a06c54d2f2d47
Time: 2019-11-21
Author: ericarellano@me.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name:
Method Name: transitive_hydrated_targets
Project Name: pantsbuild/pants
Commit Name: fc3fbd5d49556987f670fa71dc5a06c54d2f2d47
Time: 2019-11-21
Author: ericarellano@me.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name:
Method Name: transitive_hydrated_target
Project Name: pantsbuild/pants
Commit Name: fbe99a1693a85459db2dec4795c730ea602904eb
Time: 2019-11-23
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/python_test_runner.py
Class Name:
Method Name: run_python_test
Project Name: pantsbuild/pants
Commit Name: fbe99a1693a85459db2dec4795c730ea602904eb
Time: 2019-11-23
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: tests/python/pants_test/engine/test_mapper.py
Class Name:
Method Name: unhydrated_structs