History log of /external/autotest/tko/utils.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
498226873a2a0eb865c505fe775b9dbb2ee589e7 22-Oct-2014 Fang Deng <fdeng@chromium.org> [autotest] Record time spent on parsing

Add a flag --record-duration.
When set, record the time spent on parsing.
The time accounts for pure execution time spent on tko/parser.py.
so it excludes any scheduling overhead.

CQ-DEPEND=CL:224464,CL:225236
BUG=chromium:422581
TEST=1)run parser, observe the duration was sent to metadata db.
/tko/parse -l 2 -r --record-duration -o
/usr/local/autotest/results/4830-fdeng/chromeos1-fdeng1.cros
2) Ran dummy suite using run_suite.

Change-Id: Ia65cb04dfc53584a5200838aa9234f90bc96f830
Reviewed-on: https://chromium-review.googlesource.com/225123
Tested-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
/external/autotest/tko/utils.py
dee7d01f7a48b2a9bf0458b61a629d0c7f725e39 12-Feb-2013 Aviv Keshet <akeshet@chromium.org> [autotest] pull job id from job tag in dynamic_suite

This commit adds code in dynamic_suite.reimage_and_run to determine the
afe job id of the suite being run. Eventually, this job id will be
passed along to all child jobs, to set their parent id. For now, the id
is simply debug logged. The tko_index is also logged, to investigate
under what circumstances these two indices might get out of sync.

I've cherry picked this commit back before the database modifications,
so it should be perfectly safe to pull and test locally on any autotest
instance.

BUG=chromium-os:38253
TEST=Kick of a suite with run_suite.py. my_job_id gets correctly
reported in suite's debug log.
Change-Id: I4202814fe5ed2f2bb7057875b797c8afe999d117
Reviewed-on: https://gerrit.chromium.org/gerrit/42839
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
/external/autotest/tko/utils.py
a12b8a0058a3513da009ae251ce5c4fbe609f2a4 17-Jun-2010 jamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4> Added more fields to support all the field in the test view.

Signed-off-by: Darren Kuo <darrenkuo@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@4624 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/tko/utils.py
1f99f6708091ae5f68749c05f371abb6b01211b2 01-Jul-2009 jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> Make some changes to the parser so that when multiple reasons are
logged not only are duplicates discarded, but also reason strings which
are subsets of one another.

So for example if a test logs X and then X,Y and then X,Y,Z then the
final reason will only include X,Y,Z.

Risk: Low
Visibility: Should reduce the amount of duplication in final reasons
for multi-reason failures.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3346 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/tko/utils.py
a8e302a2131a7e0b0d1e0ad746df264a99f01e8b 25-Sep-2008 jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> Change the job keyval loading code to do a search up the filesystem
for the "real" job keyval file.

Risk: Medium
Visibility: Multi-machine server jobs will pull in all job attributes.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2197 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/tko/utils.py
0afbb6369aa5aa9a75ea67dd9e95ec4b21c0c181 06-Jun-2008 jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> Convert all python code to use four-space indents instead of eight-space tabs.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1658 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/tko/utils.py
2895ce5646e363187205a4e6dae37d603ca44382 17-Apr-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Add more missing files from previous commits. Did I mention I hate svn?

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1451 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/tko/utils.py