73c3c787abbe1ca71b900f11bb880e1de09c6d2a,src/python/pants/engine/process.py,,find_binary,#Any#,376

Before Change


        CreateDigest([FileContent(script_path, script_content.encode(), is_executable=True)]),
    )

    paths = []
    search_path = create_path_env_var(request.search_path)
    result = await Get(
        FallibleProcessResult,
        // We use a volatile process to force re-run since any binary found on the host system today

After Change


    if not request.test_args:
        return dataclasses.replace(binary_paths, paths=[BinaryPath(path) for path in found_paths])

    results = await MultiGet(
        Get(
            FallibleProcessResult,
            UncacheableProcess(
                Process(argv=[path, *request.test_args], description=f"Test binary {path}.")
            ),
        )
        for path in found_paths
    )
    return dataclasses.replace(
        binary_paths,
        paths=[
            BinaryPath.fingerprinted(path, result.stdout)
            for path, result in zip(found_paths, results)
            if result.exit_code == 0
        ],
    )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 73c3c787abbe1ca71b900f11bb880e1de09c6d2a
Time: 2020-09-13
Author: john.sirois@gmail.com
File Name: src/python/pants/engine/process.py
Class Name:
Method Name: find_binary


Project Name: pantsbuild/pants
Commit Name: 9d02f990f080bedb99d4fc10fdb9dea72e02fc1b
Time: 2021-02-16
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/typecheck/mypy/rules.py
Class Name:
Method Name: mypy_typecheck_partition


Project Name: pantsbuild/pants
Commit Name: 82be0c568fe0a74393cd1cda95e702b51b888394
Time: 2020-06-17
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/pytest_coverage.py
Class Name:
Method Name: generate_coverage_report