Home
last modified time | relevance | path

Searched refs:afe (Results 1 – 25 of 217) sorted by relevance

123456789

/external/autotest/site_utils/deployment/
Dinstall.py173 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
[all …]
/external/autotest/site_utils/stable_images/
Dstable_version_unittest.py73 def _dispatch_command_success(self, afe, argv, name_called): argument
81 stable_version._dispatch_command(afe, arguments)
87 afe = object()
90 stable_version._dispatch_command(afe, arguments)
95 afe = object()
97 afe, argv, 'list_all_mappings')
98 called_mock.assert_called_once_with(afe, None)
103 afe = object()
105 afe, argv, 'list_all_mappings')
106 called_mock.assert_called_once_with(afe, argv[2])
[all …]
Dstable_version.py89 def __init__(self, afe, dry_run): argument
90 self._afe = afe
92 self._version_map = afe.get_stable_version_map(self.TYPE)
248 def _create_version_map_handler(image_type, afe, dry_run): argument
249 return _IMAGE_TYPE_HANDLERS[image_type](afe, dry_run)
252 def _requested_mapping_handlers(afe, image_type): argument
269 yield _create_version_map_handler(image_type, afe, True)
272 yield cls(afe, True)
275 def list_all_mappings(afe, image_type): argument
286 for handler in _requested_mapping_handlers(afe, image_type):
[all …]
Dassign_stable_images.py74 def __init__(self, afe, dry_run): argument
82 image_types = [afe.CROS_IMAGE_TYPE, afe.FIRMWARE_IMAGE_TYPE]
84 image_type: afe.get_stable_version_map(image_type)
87 self._cros_map = self._version_maps[afe.CROS_IMAGE_TYPE]
341 afe = frontend_wrappers.RetryingAFE(server=arguments.web)
342 updater = _VersionUpdater(afe, dry_run=arguments.dry_run)
344 cros_versions = updater.select_version_map(afe.CROS_IMAGE_TYPE)
348 lab_inventory.get_managed_boards(afe)))
353 fw_versions = updater.select_version_map(afe.FIRMWARE_IMAGE_TYPE)
/external/autotest/contrib/
Dfind_suite_tasks.py37 def GetSuiteHQEs(suite_job_id, look_past_seconds, afe=None, tko=None): argument
50 if afe is None:
51 afe = frontend.AFE()
79 child_jobs = afe.get_jobs(parent_job_id=suite_job_id)
81 hqes = afe.get_host_queue_entries(job_id__in=list(child_job_ids))
85 history = HostJobHistory.get_host_history(afe, hostname,
108 name_filter=None, status_filter=None, afe=None, tko=None): argument
125 afe=afe, tko=tko)
165 afe = None
166 if options.afe:
[all …]
Dmanage_powerunit_info.py55 def add_powerunit_info_to_host(afe, device, keyvals): argument
64 if not afe.get_hosts(hostname=device):
70 afe.set_host_attribute(key, val, hostname=device)
73 def add_from_csv(afe, csv_file): argument
91 add_powerunit_info_to_host(afe, device, keyvals)
94 def dump_to_csv(afe, csv_file): argument
103 hosts = afe.get_hosts()
112 def list_powerunit_info(afe, devices): argument
118 hosts = afe.get_hosts(hostname__in = devices)
173 afe = frontend_wrappers.RetryingAFE(timeout_min=5, delay_sec=10, variable
[all …]
/external/autotest/frontend/afe/
Ddirect_afe_unittest.py7 from autotest_lib.frontend.afe import direct_afe
12 afe = direct_afe.directAFE()
14 jobs = afe.get_jobs()
17 hosts = afe.get_hosts()
20 afe.create_host('a_host')
21 hosts = afe.get_hosts()
24 afe.create_job('job_name', hosts=['a_host'])
25 jobs = afe.get_jobs()
/external/autotest/server/
Dfrontend.py24 from autotest_lib.frontend.afe import rpc_client_lib
203 def __init__(self, afe): argument
204 self._afe = afe
740 def __init__(self, afe, hash): argument
741 self.afe = afe
774 return self.afe.run('label_add_hosts', id=self.name, hosts=hosts)
780 return self.afe.run('label_remove_hosts', id=self.name, hosts=hosts)
795 self.afe.log('Adding hosts %s to ACL %s' % (hosts, self.name))
796 return self.afe.run('acl_group_add_hosts', self.id, hosts)
800 self.afe.log('Removing hosts %s from ACL %s' % (hosts, self.name))
[all …]
Dsite_utils.py131 def get_labels_from_afe(hostname, label_prefix, afe): argument
145 labels = afe.get_labels(name__startswith=label_prefix,
151 def get_label_from_afe(hostname, label_prefix, afe): argument
164 labels = get_labels_from_afe(hostname, label_prefix, afe)
169 def get_board_from_afe(hostname, afe): argument
181 return get_label_from_afe(hostname, constants.BOARD_PREFIX, afe)
184 def get_build_from_afe(hostname, afe): argument
196 build = get_label_from_afe(hostname, prefix + ':', afe)
349 def lock_host_with_labels(afe, lock_manager, labels): argument
366 potential_hosts = afe.get_hosts(multiple_labels=labels)
[all …]
/external/autotest/site_utils/chromeos_proxy/
Dswarming_bot_manager.py80 def is_server_in_prod(server_name, afe): argument
90 afe = frontend_wrappers.RetryingAFE(timeout_min=5, delay_sec=10,
91 server=afe)
94 if afe.run('get_servers', hostname=server_name,
99 logging.warning('RPC get_servers failed on afe %s: %s', afe, str(e))
107 def tick(afe, bot_manager): argument
113 if ((afe and is_server_in_prod(socket.getfqdn(), afe)) or
114 (not afe)):
152 tick(args.afe, bot_manager)
/external/autotest/site_utils/admin/scripts/
Dcli2hbs.sh29 mkdir -p ${TARGET_DIR}/frontend/afe
31 touch ${TARGET_DIR}/frontend/afe/__init__.py
34 cp -fpruv ${AUTOTEST_DIR}/frontend/afe/json_rpc \
35 ${TARGET_DIR}/frontend/afe
36 cp -uv ${AUTOTEST_DIR}/frontend/afe/rpc_client_lib.py \
37 ${TARGET_DIR}/frontend/afe
39 ${AUTOTEST_TOOLS_DIR}/autotest/syncfiles/frontend/afe/site_rpc_client_lib.py \
40 ${TARGET_DIR}/frontend/afe
/external/autotest/server/cros/network/
Drf_switch_utils.py23 afe = frontend.AFE(
26 rf_switch_hosts = afe.get_hosts(label=RF_SWITCH_LABEL, locked=False)
30 if afe.lock_host(rf_switch.hostname, LOCK_REASON):
45 afe = frontend.AFE(
47 afe.unlock_hosts([rf_switch_host.hostname])
48 rf_switch = afe.get_hosts(hostnames=(rf_switch_host.hostname,))
/external/autotest/server/cros/
Dhost_lock_manager_unittest.py74 self.afe = self.mox.CreateMock(frontend.AFE)
75 self.manager = host_lock_manager.HostLockManager(self.afe)
80 self.afe.get_hosts(hostname=self.HOST1).AndReturn(None)
89 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
98 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
107 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
117 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
127 manager = self.MockHostLockManager(self.afe)
136 manager = self.MockHostLockManager(self.afe)
162 manager = self.MockHostLockManager(self.afe)
[all …]
/external/autotest/server/lib/
Dstatus_history.py45 from autotest_lib.frontend.afe import models as afe_models
223 def get_tasks(cls, afe, host_id, start_time, end_time): argument
241 tasks = afe.get_host_special_tasks(
250 def get_status_task(cls, afe, host_id, end_time): argument
266 task = afe.get_host_status_task(host_id, query_end)
332 def get_hqes(cls, afe, host_id, start_time, end_time): argument
350 hqelist = afe.get_host_queue_entries_by_insert_time(
433 def get_host_history(cls, afe, hostname, start_time, end_time): argument
449 afehost = afe.get_hosts(hostname=hostname)[0]
450 return cls(afe, afehost, start_time, end_time)
[all …]
Dsuite_report.py171 def generate_suite_report(suite_job_id, afe=None, tko=None, argument
183 if afe is None:
184 afe = frontend.AFE()
189 suite_job = afe.get_jobs(id=suite_job_id)[0]
196 child_jobs = afe.get_jobs(parent_job_id=suite_job_id)
211 hqes = afe.get_host_queue_entries(job_id__in=list(child_job_ids))
231 histories = [HostJobHistory.get_host_history(afe, hostname,
/external/autotest/frontend/client/src/autotest/afe/create/
DCreateJobViewDisplay.java1 package autotest.afe.create;
3 import autotest.afe.CheckBoxPanel;
4 import autotest.afe.CheckBoxPanelDisplay;
5 import autotest.afe.ControlTypeSelect;
6 import autotest.afe.ControlTypeSelectDisplay;
7 import autotest.afe.HostSelector;
8 import autotest.afe.HostSelectorDisplay;
9 import autotest.afe.IButton;
10 import autotest.afe.IButton.ButtonImpl;
11 import autotest.afe.ICheckBox;
[all …]
/external/autotest/site_utils/
Dadd_detected_host_labels.py40 def add_missing_labels(afe, hostname): argument
67 afe_host = afe.get_hosts(hostname=hostname)[0]
69 label_matches = afe.get_labels(name__in=labels)
82 afe_labels_to_delete = afe.get_labels(name__in=labels_to_delete)
125 afe = frontend.AFE()
130 hostnames = afe.get_hostnames()
132 lambda x: add_missing_labels(afe, x),
Dtest_runner_utils.py170 def fetch_local_suite(autotest_path, suite_predicate, afe, test_arg, remote, argument
207 devserver, fs_getter, afe=afe,
227 afe.get_labels(host__hostname=remote)]
381 from autotest_lib.frontend.afe import direct_afe
472 def _auto_detect_labels(afe, remote): argument
487 new_label = afe.create_label(label)
489 hosts = afe.get_hosts(hostname=remote)
497 def perform_local_run(afe, autotest_path, tests, remote, fast_mode, argument
544 build_label = afe.create_label(cros_version_label)
545 board_label = afe.create_label(constants.BOARD_PREFIX + board)
[all …]
Ddut_status.py259 def _get_host_histories(afe, arguments): argument
282 afe, hostname, arguments.since, arguments.until)
294 def _validate_host_list(afe, arguments): argument
326 afe, arguments.since, arguments.until, labels.getlabels())
328 histories = _get_host_histories(afe, arguments)
357 def _validate_command(afe, arguments): argument
379 return _validate_host_list(afe, arguments)
457 afe = frontend.AFE(server=arguments.web)
458 history_list = _validate_command(afe, arguments)
Dbalance_pools.py190 def __init__(self, afe, pool, labels, start_time, end_time): argument
199 self.total_hosts = self._get_hosts(afe, start_time, end_time)
202 def _get_hosts(self, afe, start_time, end_time): argument
204 afe, start_time, end_time, self.labels.getlabels())
374 def _balance_model(arguments, afe, pool, labels, start_time, end_time): argument
388 spare_pool = _DUTPool(afe, arguments.spare, labels, start_time, end_time)
389 main_pool = _DUTPool(afe, pool, labels, start_time, end_time)
610 def infer_balancer_targets(afe, arguments, pools): argument
625 inventory = lab_inventory.get_inventory(afe)
671 afe = frontend_wrappers.RetryingAFE(server=arguments.web)
[all …]
Dabort_suite.py54 def abort_suites(afe, substring): argument
67 hqe_info = afe.run('abort_host_queue_entries',
90 afe = frontend.AFE()
93 abort_suites(afe, name)
/external/autotest/frontend/client/src/autotest/afe/
DTestSelectorDisplay.java1 package autotest.afe;
3 import autotest.afe.ITextBox;
4 import autotest.afe.ITextBox.TextBoxImpl;
5 import autotest.afe.TestSelector.IDataTable;
6 import autotest.afe.TestSelector.IDataTable.DataTableImpl;
7 import autotest.afe.TestSelector.ISelectionManager;
8 import autotest.afe.TestSelector.ISelectionManager.SelectionManagerImpl;
DAfeClient.java1 package autotest.afe;
3 import autotest.afe.HostDetailView.HostDetailListener;
4 import autotest.afe.HostListView.HostListListener;
5 import autotest.afe.JobDetailView.JobDetailListener;
6 import autotest.afe.JobListView.JobSelectListener;
7 import autotest.afe.create.CreateJobViewPresenter.JobCreateListener;
8 import autotest.afe.create.CreateJobViewTab;
/external/autotest/server/hosts/
Dmoblab_host.py84 self.afe = frontend_wrappers.RetryingAFE(timeout_min=timeout_min,
175 self.afe.set_timeout(self.timeout_min)
197 existing_hosts = [host.hostname for host in self.afe.get_hosts()]
279 self.afe.get_hosts()
295 hosts = self.afe.reverify_hosts()
302 while (self.afe.get_special_tasks(is_complete=False) and
306 if not self.afe.get_hosts(status='Ready'):
307 for host in self.afe.get_hosts():
/external/autotest/apache/conf/
Ddjango-directives28 RewriteRule ^/afe/server/admin/.* - [R=404]
29 RewriteRule ^/afe/server/admin - [R=404]
37 … RewriteRule ^/(afe|new_tko)/server(.*) /usr/local/autotest/frontend/frontend.wsgi [H=wsgi-script]
40 …RewriteRule ^/(afe|new_tko)/server(.*) /usr/lib/python2.7/site-packages/autotest/frontend/frontend…
43 …RewriteRule ^/(afe|new_tko)/server(.*) /usr/lib/python2.6/site-packages/autotest/frontend/frontend…
46 …RewriteRule ^/(afe|new_tko)/server(.*) /usr/lib/python2.5/site-packages/autotest/frontend/frontend…
49 …RewriteRule ^/(afe|new_tko)/server(.*) /usr/lib/python2.4/site-packages/autotest/frontend/frontend…
51 <LocationMatch "/(afe|new_tko)/server(.*)">
75 <Location ~ "/(afe|new_tko)/server">

123456789