• Home
  • Raw
  • Download

Lines Matching refs:afe

173 def _update_build(afe, report_log, arguments):  argument
204 cros_version_map = afe.get_stable_version_map(afe.CROS_IMAGE_TYPE)
205 fw_version_map = afe.get_stable_version_map(afe.FIRMWARE_IMAGE_TYPE)
257 def _create_host(hostname, afe, afe_host): argument
271 'host_info_store': afe_store.AfeStore(hostname, afe),
315 def _update_host_attributes(afe, hostname, host_attrs): argument
325 afe.set_host_attribute(servo_host.SERVO_HOST_ATTR,
328 afe.set_host_attribute(servo_host.SERVO_PORT_ATTR,
332 afe.set_host_attribute(servo_host.SERVO_SERIAL_ATTR,
355 def _wait_for_idle(afe, host_id): argument
365 afe_host = afe.get_hosts(id=host_id)[0]
372 def _ensure_host_idle(afe, afe_host): argument
394 afe = frontend.AFE(server=afe_host.shard)
395 afe_host = afe.get_hosts(id=afe_host.id)[0]
398 afe.run('abort_special_tasks', host_id=afe_host.id, is_active=1)
399 return not retry.timeout(_wait_for_idle, (afe, afe_host.id),
403 def _get_afe_host(afe, hostname, host_attrs, arguments): argument
422 hostlist = afe.get_hosts([hostname])
431 if not _ensure_host_idle(afe, afe_host):
439 _update_host_attributes(afe, hostname, host_attrs)
441 afe_host = afe.create_host(hostname,
444 _update_host_attributes(afe, hostname, host_attrs)
451 afe_host = afe.get_hosts([hostname])[0]
541 def _install_and_update_afe(afe, hostname, host_attrs, arguments): argument
558 afe_host, unlock_on_failure = _get_afe_host(afe, hostname, host_attrs,
562 host = _create_host(hostname, afe, afe_host)
568 platform_labels = afe.get_labels(
572 new_labels = afe.get_labels(name=platform)
574 afe.create_label(platform, platform=True)
616 afe = frontend.AFE(server=arguments.web)
618 _install_and_update_afe(afe, hostname,
651 def _report_results(afe, report_log, hostnames, results): argument
674 afe.repair_hosts(hostnames=successful_hosts)
675 for h in afe.get_hosts(hostnames=successful_hosts):
715 def _get_used_servo_ports(servo_hostname, afe): argument
725 host_list = afe.get_hosts_by_attribute(
728 afe_host = afe.get_hosts(hostname=host)
736 def _get_free_servo_port(servo_hostname, used_servo_ports, afe): argument
760 used_ports = _get_used_servo_ports(servo_hostname, afe)
778 def _get_afe_servo_port(host_info, afe): argument
790 afe_hosts = afe.get_hosts(hostname=host_info.hostname)
805 def _get_host_attributes(host_info_list, afe): argument
825 host_info, afe)
829 afe)
879 afe = frontend.AFE(server=arguments.web)
883 current_build = _update_build(afe, report_log, arguments)
884 host_attr_dict = _get_host_attributes(arguments.host_info_list, afe)
889 _report_results(afe, report_log, arguments.hostnames, results_list)