diff options
author | Caroline Tice <cmtice@google.com> | 2018-04-19 23:27:38 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-20 12:57:18 -0700 |
commit | feb442e92538196083a7bb9b19265c7dd65b84cd (patch) | |
tree | 204d8eba6bc9593a12fc5a660ecd8736b1b6b7e4 /buildbot_test_llvm.py | |
parent | e8ba054174b82201eb1b3994e1b93eaf6a5a2db7 (diff) | |
download | toolchain-utils-feb442e92538196083a7bb9b19265c7dd65b84cd.tar.gz |
[toolchain-utils] Update waterfall reports.
This CL updates the waterfall reports to use the results of
'cros buildresult' and the new URLS. It removes the attempts to
track individual test failures, as the new URL system no longer
allows that.
BUG=chromium:829648
TEST=launched reports from my directory. They worked fine.
Tested buildbot_test_llvm.py changes with mobiletc-prebuild
on chrotomation2.
Change-Id: I12cf97c7960b032ec3caca636fe349f564369378
Reviewed-on: https://chromium-review.googlesource.com/1021990
Commit-Ready: Caroline Tice <cmtice@chromium.org>
Tested-by: Caroline Tice <cmtice@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'buildbot_test_llvm.py')
-rwxr-xr-x | buildbot_test_llvm.py | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/buildbot_test_llvm.py b/buildbot_test_llvm.py index 13140c80..5b9e6944 100755 --- a/buildbot_test_llvm.py +++ b/buildbot_test_llvm.py @@ -34,6 +34,7 @@ MAIL_PROGRAM = '~/var/bin/mail-sheriff' VALIDATION_RESULT_DIR = os.path.join(CROSTC_ROOT, 'validation_result') START_DATE = datetime.date(2016, 1, 1) TEST_PER_DAY = 4 +DATA_DIR = '/google/data/rw/users/mo/mobiletc-prebuild/waterfall-report-data/' # Information about Rotating Boards # Board Arch Reference Platform Kernel @@ -124,14 +125,24 @@ class ToolchainVerifier(object): Launch trybot, get image names, create crosperf experiment file, run crosperf, and copy images into seven-day report directories. """ - _ = buildbot_utils.GetTrybotImage( + buildbucket_id, _ = buildbot_utils.GetTrybotImage( self._chromeos_root, self._build, self._patches, tryjob_flags=['--hwtest'], async=True) - return 0 + return buildbucket_id + + +def WriteRotatingReportsData(results_dict, date): + """Write data for waterfall report.""" + fname = '%d-%02d-%02d.builds' % (date.year, date.month, date.day) + filename = os.path.join(DATA_DIR, 'rotating-builders', fname) + with open(filename, 'w') as out_file: + for board in results_dict.keys(): + buildbucket_id = results_dict[board] + out_file.write('%s,%s\n' % (buildbucket_id, board)) def Main(argv): @@ -182,16 +193,20 @@ def Main(argv): days = delta.days start_board = (days * TEST_PER_DAY) % len(TEST_BOARD) + results_dict = dict() for i in range(TEST_PER_DAY): try: board = TEST_BOARD[(start_board + i) % len(TEST_BOARD)] fv = ToolchainVerifier(board, options.chromeos_root, options.weekday, options.patches, options.compiler) - fv.DoAll() + buildbucket_id = fv.DoAll() + if buildbucket_id: + results_dict[board] = buildbucket_id except SystemExit: logfile = os.path.join(VALIDATION_RESULT_DIR, options.compiler, board) with open(logfile, 'w') as f: f.write('Verifier got an exception, please check the log.\n') + WriteRotatingReportsData(results_dict, today) if __name__ == '__main__': |