[autotest] Deprecate the use of site_parse
Some digging through the git history shows that
site_parse was introduced to generate a json file about the test results
and crash reports, which was later included in an email sent out
by the old dashboard (see crbug.com/196118). Since we've completedly
deprecated the old dashboard (crosreview.com/220690), there is no
point to call site_parse any more.
And since around Nov, 2013, we actually has stopped calling site_parser
anyway because the import_site_function has been failing to
load site_parser. Search scheduler logs you'll see tko/parser is called
currently. So it won't harm to just remove the dead code
that is trying to call site_parser.
This will also simplify the measuring of duration of parsing (no need
to take care of site_parser)
BUG=chromium:422581
TEST=run scheduler locally. run run_suite.
DEPLOY=scheduler
Change-Id: I2232f245ab9e532c18bce723fb559617e6dab121
Reviewed-on: https://chromium-review.googlesource.com/224844
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index c811985..2e4f7e5 100755
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -23,7 +23,7 @@
from autotest_lib.client.common_lib import utils
from autotest_lib.client.common_lib.cros.graphite import stats
from autotest_lib.frontend.afe import models, rpc_utils
-from autotest_lib.scheduler import agent_task, drone_manager, drones
+from autotest_lib.scheduler import agent_task, drone_manager
from autotest_lib.scheduler import email_manager, gc_stats, host_scheduler
from autotest_lib.scheduler import monitor_db_cleanup, prejob_task
from autotest_lib.scheduler import postjob_task
@@ -69,14 +69,6 @@
default=True)
-def _parser_path_default(install_dir):
- return os.path.join(install_dir, 'tko', 'parse')
-_parser_path_func = utils.import_site_function(
- __file__, 'autotest_lib.scheduler.site_monitor_db',
- 'parser_path', _parser_path_default)
-_parser_path = _parser_path_func(drones.AUTOTEST_INSTALL_DIR)
-
-
def _site_init_monitor_db_dummy():
return {}