Autotest TKO parser inserts perf measurements into the tko_iteration_perf_value database table.
This change is part of a series of changes in which we're modifying how
autotest handles/stores perf test measurements, to better align with chrome
team's perf dashboard.
Previously, the autotest TKO parser was taught how to parse the
perf_measurements output files produced by chromeOS perf tests. In the
current CL, this parsed perf information is now inserted into the
autotest results database (table tko_iteration_perf_value). Situations in
which autotest may need to delete information from this table are also
handled (mirrored off of how autotest handles perf keyvals).
Note that tko_iteration_perf_value is not yet exposed through the TKO RPC
interface. This is because the scripts that upload to the perf dashboard
currently extract perf values from the database directly. In the future,
those scripts may change to use the RPC interface, at which point the
RPC interface will need to be enhanced to expose data from
tko_iteration_perf_value.
BUG=chromium:258230
TEST=Verified using a local AFE and device that platform_GesturesRegressionTest
runs successfully with these changes, and the outputted perf measurements
are properly stored into the local results database. Also verified that
job_serializer_unittest.py passes with these changes (assuming that
tko/tko.proto is compiled, which the unittests require as a pre-requisite).
Change-Id: I00799f2b96c9b45f5acdd5949c8f3dea0cc0821e
Reviewed-on: https://gerrit.chromium.org/gerrit/63232
Commit-Queue: Dennis Jeffrey <dennisjeffrey@chromium.org>
Reviewed-by: Dennis Jeffrey <dennisjeffrey@chromium.org>
Tested-by: Dennis Jeffrey <dennisjeffrey@chromium.org>
diff --git a/tko/parse.py b/tko/parse.py
index 90a7501..1bf0217 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -131,6 +131,7 @@
for test_idx in old_tests.itervalues():
where = {'test_idx' : test_idx}
db.delete('tko_iteration_result', where)
+ db.delete('tko_iteration_perf_value', where)
db.delete('tko_iteration_attributes', where)
db.delete('tko_test_attributes', where)
db.delete('tko_test_labels_tests', {'test_id': test_idx})