9d35976700b9db72995fabdbf59a0719e53bc4bd,perfkitbenchmarker/windows_virtual_machine.py,WindowsMixin,WaitForBootCompletion,#WindowsMixin#,411

Before Change


    Waits until VM is has booted.
    // Test for listening on the port first, because this will happen strictly
    // first.
    if (FLAGS.cluster_boot_test_port_listening and
        self.port_listening_time is None):
      self.TestConnectRemoteAccessPort()
      self.port_listening_time = time.time()

    // Always wait for remote host command to succeed, because it is necessary to
    // run benchmarks.
    stdout, _ = self.RemoteCommand("hostname", suppress_warning=True)
    if self.bootable_time is None:
      self.bootable_time = time.time()
    if self.hostname is None:

After Change


    Waits until VM is has booted.
    to_wait_for = [self._WaitForWinRmCommand]
    if FLAGS.cluster_boot_test_rdp_port_listening:
      to_wait_for.append(self._WaitForRdpPort)
    vm_util.RunParallelThreads([(method, [], {}) for method in to_wait_for], 2)

  @vm_util.Retry(log_errors=False, poll_interval=1, timeout=2400)
  def _WaitForRdpPort(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9d35976700b9db72995fabdbf59a0719e53bc4bd
Time: 2019-11-06
Author: pclay@google.com
File Name: perfkitbenchmarker/windows_virtual_machine.py
Class Name: WindowsMixin
Method Name: WaitForBootCompletion


Project Name: scikit-optimize/scikit-optimize
Commit Name: b095f7a67d569d2ca3a4932e5ac1a8df613d6ce9
Time: 2016-08-08
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/dummy_opt.py
Class Name:
Method Name: dummy_minimize


Project Name: samuelclay/NewsBlur
Commit Name: 0d5eb96adeb12ecc2c2a1fd4554cc6a01c5c5b98
Time: 2014-04-22
Author: samuel@ofbrooklyn.com
File Name: apps/search/models.py
Class Name: MUserSearch
Method Name: index_subscriptions_for_search


Project Name: pantsbuild/pants
Commit Name: 937907d721b8e4e9628b6d13bb59423e4406a5f1
Time: 2015-04-20
Author: itay@twitter.com
File Name: src/python/pants/backend/python/tasks/pytest_run.py
Class Name: PytestRun
Method Name: _do_run_tests