c1a81e55c53729df443180f1763423218dbb5706 |
|
02-Oct-2015 |
Dan Shi <dshi@chromium.org> |
[autotest] Remove unnecessary time.sleep. Also increase the thread count to 16 for better performance. BUG=None TEST=local run Change-Id: Ib47af433f2dd170e945f7f5b7520dfdc90140d64 Reviewed-on: https://chromium-review.googlesource.com/303536 Commit-Ready: Dan Shi <dshi@chromium.org> Tested-by: Dan Shi <dshi@chromium.org> Reviewed-by: Mungyung Ryu <mkryu@google.com>
/external/autotest/site_utils/host_history.py
|
17ecbbf63319dabd5514827a34f04b5a0b724352 |
|
06-Oct-2014 |
Dan Shi <dshi@chromium.org> |
[autotest] Redesign how host history is queried to avoid any DB access The host list is retrieved from metaDB for given board and label. BUG=chromium:419043 TEST=local run host_history.py --board peppy -l 240 host_history.py -l 240 --hosts 172.27.213.193 Change-Id: I63595534f167b1676f62e03e0c1643479e1e1f12 Reviewed-on: https://chromium-review.googlesource.com/221743 Tested-by: Dan Shi <dshi@chromium.org> Reviewed-by: Fang Deng <fdeng@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/site_utils/host_history.py
|
1ccb65208c26615096985b5f8b52368f7342a077 |
|
20-Sep-2014 |
Dan Shi <dshi@chromium.org> |
[autotest] add a utility to calculate machine stats and report to graphite reference doc about machine stats: https://docs.google.com/a/google.com/document/d/1N8Fk5Ey08y7OdYctmAxTQTyc1KjIpy14Y7WUpI-anUI/edit#heading=h.2vvien6shony A cron job will be created in one of the lab server to collect the stats daily. BUG=chromium:394451 TEST=local run site_utils/collect_host_stats.py Change-Id: I935bb3431bf5064898a9e54a3204827a63e05701 Reviewed-on: https://chromium-review.googlesource.com/219167 Tested-by: Dan Shi <dshi@chromium.org> Reviewed-by: Prashanth B <beeps@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/site_utils/host_history.py
|
dfea368e5c830b1d7950ced5ee7b191e3b141ca3 |
|
11-Aug-2014 |
Dan Shi <dshi@chromium.org> |
[autotest] Add RPC get_host_history to get host history. The RPC takes in arguments like board, pool or a list of hosts, and return the history of specified hosts. The history is a dictionary of each host and its history of status. For example: {'172.22.33.51': [{'status': 'Resetting' 'start_time': '2014-08-07 10:02:16', 'end_time': '2014-08-07 10:03:16', 'log_url': 'http://autotest/reset-546546/debug', 'task_id': 19441991}, {'status': 'Running' 'start_time': '2014-08-07 10:03:18', 'end_time': '2014-08-07 10:13:00', 'log_url': 'http://autotest/reset-546546/debug', 'job_id': 14995562} ] } Add a client util module time_utils to handle common task to do time string and epoch time conversion. BUG=chromium:394451 TEST=local setup from autotest_lib.client.common_lib import global_config from autotest_lib.server.cros.dynamic_suite import frontend_wrappers instance_server = global_config.global_config.get_config_value( 'SERVER', 'hostname', type=str) afe = frontend_wrappers.RetryingAFE( server=instance_server, timeout_min=60, delay_sec=0) result = afe.run('get_host_history', board='lumpy', pool='bvt', start_time='2014-08-05 14:00:00', end_time='2014-08-06 14:00:00') import pprint pprint.pprint(result) rebuild local afe, test run_suite and create job from afe. Change-Id: I66ecc5bb69a4a1fdb33437520288ed08e562ed00 Reviewed-on: https://chromium-review.googlesource.com/211772 Tested-by: Dan Shi <dshi@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Prashanth B <beeps@chromium.org> Commit-Queue: Dan Shi <dshi@chromium.org>
/external/autotest/site_utils/host_history.py
|
9e0be9d048fecdf06a525bd4c31d272715494653 |
|
07-Aug-2014 |
Michael Liang <michaelliang@chromium.org> |
[autotest] Migrate host history to site_utils, fix bugs Move from contrib/ to site_utils/ host_history{_utils}.py Fixed a bug where value of --index is not passed into query to elasticsearch. BUG=None TEST=python host_history.py --index=cautotest -n 10000 \ -l 24 --board=daisy Change-Id: If1f4133335dae6f4416eb3ab31df94c1f70a0bcc Reviewed-on: https://chromium-review.googlesource.com/211336 Commit-Queue: Michael Liang <michaelliang@chromium.org> Tested-by: Michael Liang <michaelliang@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org>
/external/autotest/site_utils/host_history.py
|