9cde7c0f67be8c8c4aba71315d8875171d939992,src/python/pants/bin/local_pants_runner.py,LocalPantsRunner,_get_workunits_callbacks,#LocalPantsRunner#,238

Before Change


        // the new WorkunitsCallbackFactories method.
        // NB: When the `--streaming-workunits-handlers` deprecation triggers, the first method will be
        // removed.
        streaming_handlers = self.options.for_global_scope().streaming_workunits_handlers
        callbacks = list(Subsystem.get_streaming_workunit_callbacks(streaming_handlers))
        (workunits_callback_factories,) = self.graph_session.scheduler_session.product_request(
            WorkunitsCallbackFactories, [self.union_membership]
        )
        for wcf in workunits_callback_factories:
            callbacks.append(wcf.callback_factory())
        return tuple(callbacks)

    def run(self, start_time: float) -> ExitCode:
        run_tracker = RunTracker.global_instance(silent=True)
        self._start_run(run_tracker, start_time)

After Change


        (workunits_callback_factories,) = self.graph_session.scheduler_session.product_request(
            WorkunitsCallbackFactories, [self.union_membership]
        )
        return tuple(wcf.callback_factory() for wcf in workunits_callback_factories)

    def run(self, start_time: float) -> ExitCode:
        self._start_run(start_time)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 9cde7c0f67be8c8c4aba71315d8875171d939992
Time: 2021-01-07
Author: stuhood@gmail.com
File Name: src/python/pants/bin/local_pants_runner.py
Class Name: LocalPantsRunner
Method Name: _get_workunits_callbacks


Project Name: pantsbuild/pants
Commit Name: 5bfd6cdef169103f539a092920f0004bfa5fb6f4
Time: 2018-12-06
Author: stuhood@twitter.com
File Name: src/python/pants/option/options_bootstrapper.py
Class Name: OptionsBootstrapper
Method Name: get_full_options


Project Name: pantsbuild/pants
Commit Name: 5bfd6cdef169103f539a092920f0004bfa5fb6f4
Time: 2018-12-06
Author: stuhood@twitter.com
File Name: tests/python/pants_test/test_base.py
Class Name: TestBase
Method Name: get_bootstrap_options