aboutsummaryrefslogtreecommitdiff
path: root/buildbot_test_toolchains.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2015-09-03 10:27:20 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-04 23:02:13 -0700
commitebbc3daf71bbf5e09425653e7d4cd7e811db0a87 (patch)
treea5f77d52788f6a3708d726ee5149112cc8f04df9 /buildbot_test_toolchains.py
parent5ea9f006b5de0d882d5b51da243806b7cac69938 (diff)
downloadtoolchain-utils-ebbc3daf71bbf5e09425653e7d4cd7e811db0a87.tar.gz
Start generating json archive files for nightly tests.
This turns on the option for the nightly tests to generate json files, which get stored in a pending archives directory and can later be picked up, converted to ColumnIO and stored on a colossus server. It also fixes a bug where the nightly test was looking for a .boto file in /home/mobiletc-prebuild instead of /usr/local/google/home/mobiletc-prebuild. BUG=None TEST=None Change-Id: Id413097686d8e72499d141ca7b8d2e131a993cb9 Reviewed-on: https://chrome-internal-review.googlesource.com/228860 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org>
Diffstat (limited to 'buildbot_test_toolchains.py')
-rwxr-xr-xbuildbot_test_toolchains.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index d931c908..d3ca176b 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -31,10 +31,13 @@ USE_LLVM_PATCH = "295217"
# The boards on which we run weekly reports
WEEKLY_REPORT_BOARDS = ["lumpy"]
-WEEKLY_REPORTS_ROOT = "/usr/local/google/crostc/weekly_test_data"
+CROSTC_ROOT = "/usr/local/google/crostc"
ROLE_ACCOUNT = "mobiletc-prebuild"
TOOLCHAIN_DIR = os.path.dirname(os.path.realpath(__file__))
MAIL_PROGRAM = "~/var/bin/mail-sheriff"
+WEEKLY_REPORTS_ROOT = os.path.join(CROSTC_ROOT, "weekly_test_data")
+PENDING_ARCHIVES_DIR = os.path.join(CROSTC_ROOT, "pending_archives")
+NIGHTLY_TESTS_DIR = os.path.join(CROSTC_ROOT, "nightly_test_reports")
class ToolchainComparator():
"""
@@ -59,8 +62,7 @@ class ToolchainComparator():
self._weekday = weekday
timestamp = datetime.datetime.strftime(datetime.datetime.now(),
"%Y-%m-%d_%H:%M:%S")
- self._reports_dir = os.path.join(
- os.path.expanduser("~/nightly_test_reports"),
+ self._reports_dir = os.path.join(NIGHTLY_TESTS_DIR,
"%s.%s" % (timestamp, board),
)
@@ -142,7 +144,7 @@ class ToolchainComparator():
"crosperf")
schedv2_opts = '--schedv2 --logging_level=verbose' if self._schedv2 else ''
command = ("{crosperf} --no_email=True --results_dir={r_dir} "
- "{schedv2_opts} {exp_file}").format(
+ "--json_report=True {schedv2_opts} {exp_file}").format(
crosperf=crosperf,
r_dir=self._reports_dir,
schedv2_opts=schedv2_opts,
@@ -151,6 +153,10 @@ class ToolchainComparator():
ret = self._ce.RunCommand(command)
if ret != 0:
raise RuntimeError("Couldn't run crosperf!")
+ else:
+ # Copy json report to pending archives directory.
+ command = "cp %s/*.json %s/." % (self._reports_dir, PENDING_ARCHIVES_DIR)
+ ret = self._ce.RunCommand(command)
return
def _CopyWeeklyReportFiles(self, trybot_image, vanilla_image):