f6dc5a24788bb3ff9b151e84d618ae776a48a006,src/python/pants/backend/python/rules/pytest_runner.py,,setup_pytest_for_target,#Any#Any#Any#Any#,68

Before Change


    // TODO: factor this up? It"s mostly duplicated with pex_from_targets.py.
    python_targets = []
    resource_targets = []
    for tgt in all_targets:
        if tgt.has_field(PythonSources):
            python_targets.append(tgt)
        // NB: PythonRequirementsFileSources is a subclass of FilesSources. We filter it out so that
        // requirements.txt is not included in the PEX and so that irrelevant changes to it (e.g.
        // whitespace changes) do not invalidate the PEX.
        if tgt.has_field(ResourcesSources) or (
            tgt.has_field(FilesSources) and not tgt.has_field(PythonRequirementsFileSources)
        ):
            resource_targets.append(tgt)

    interpreter_constraints = PexInterpreterConstraints.create_from_compatibility_fields(
        (tgt.get(PythonInterpreterCompatibility) for tgt in python_targets), python_setup
    )

After Change


        requests.append(
            Get[CoverageConfig](
                CoverageConfigRequest(
                    Targets((tgt for tgt in all_targets if tgt.has_field(PythonSources))),
                    is_test_time=True,
                )
            ),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: pantsbuild/pants
Commit Name: f6dc5a24788bb3ff9b151e84d618ae776a48a006
Time: 2020-04-27
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/pytest_runner.py
Class Name:
Method Name: setup_pytest_for_target


Project Name: pantsbuild/pants
Commit Name: f6dc5a24788bb3ff9b151e84d618ae776a48a006
Time: 2020-04-27
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/pytest_runner.py
Class Name:
Method Name: setup_pytest_for_target


Project Name: pantsbuild/pants
Commit Name: f6dc5a24788bb3ff9b151e84d618ae776a48a006
Time: 2020-04-27
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/pex_from_targets.py
Class Name:
Method Name: pex_from_targets


Project Name: pantsbuild/pants
Commit Name: c5c3285c1e9afa1b29eecbc2ff00bb6fde65d986
Time: 2020-11-21
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/util_rules/pex.py
Class Name: PexInterpreterConstraints
Method Name: create_from_targets