History log of /external/autotest/site_utils/devserver_history.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b72f4fbcf1583da27f09f4abb9d8162530bf4559 21-Jan-2015 Gabe Black <gabeblack@chromium.org> graphite: Reorganize the elastic search code so we can put it in chromite.

This change reorganizes the elastic search integration code so that it's
separate from the code that, for instance, reads config information from the
autotest global config. That way, it can be moved from chromite without
breaking any dependencies.

BUG=chromium:446291
TEST=Ran stats_es_functionaltest.py. Ran unit tests. Ran a butterfly-paladin
tryjob with --hwtest.

Change-Id: I0dbf135c4f1732d633e5fc9d5edb9e1f4f7199d5
Reviewed-on: https://chromium-review.googlesource.com/242701
Reviewed-by: Dan Shi <dshi@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
/external/autotest/site_utils/devserver_history.py
55bfe14a6c2cc2710593ecf4d461af64181915c0 05-Jan-2015 Gabe Black <gabeblack@chromium.org> graphite: Factor time_utils out of the es_utils module.

We're planning to move the graphite support code into chromite so it can be
used by autotest and by other infrastructure bits. To do that, we have to
remove dependencies on other bits of autotest, specifically time_utils and the
global configuration.

The time_utils module is used in essentially one spot where it converts a
function parameter into a particular format. To remove that use, the conversion
is pushed out to the callers. That's a bit clunky and cumbersome, but once the
code has been moved we can add a little wrapper function which will centralize
that again. I don't want to add the wrapper now because I'd want to put it
where the other code is currently.

BUG=chromium:446291
TEST=Ran a trybot for butterfly-paladin with --hwtest.

Change-Id: Iaf2ee2e664ff8040f4e143dfd32119c471d0bc43
Reviewed-on: https://chromium-review.googlesource.com/238526
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Trybot-Ready: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
/external/autotest/site_utils/devserver_history.py
f8b71d1c0d37ed681b1fc129468a9c2e2d0ecbdb 03-Sep-2014 Dan Shi <dshi@chromium.org> [autotest] Add a utility to query devserver requests and load.

Add a script to check the history of stage calls made to devserver.
Following are some sample use cases:

1. Find all stage request for autotest and image nyan_big-release/R38-6055.0.0
in the last 10 days across all devservers.
./site_utils/devserver_history.py --image_filters nyan_big 39 6260 -l 240 \
--artifact_filters autotest -v
output:
================================================================================
172.19.140.2
================================================================================
Number of calls: 140
Number of unique images: 1
2014-09-12 14:06:29 nyan_big-release/R39-6260.0.0 autotest, test_suites
2014-09-12 14:06:44 nyan_big-release/R39-6260.0.0 autotest, test_suites

2. Find all duplicated stage request for the last 10 days.
./site_utils/devserver_history.py -d -l 240
output:
Detecting artifacts staged in multiple devservers.
==============================================================================
nyan_big-release/R38-6055.0.0
==============================================================================
170.21.64.22: 23 requests 2014-09-04 22:44:28 -- 2014-09-05 00:03:23
170.21.64.23: 6 requests 2014-09-04 22:48:58 -- 2014-09-04 22:49:42

Count of images with duplicated stages on each devserver:
170.21.64.22 : 22
170.21.64.23 : 11

BUG=chromium:404475
TEST=local setup

Change-Id: Ic8eb35c4239ca08663a28ad5410596b2dcdbac62
Reviewed-on: https://chromium-review.googlesource.com/216282
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/site_utils/devserver_history.py