Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/test/chromedriver/run_buildbot_steps.py

Issue 1884943004: [chromedriver] Prefix server logs with chromedriver_log_. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Runs all the buildbot steps for ChromeDriver except for update/compile.""" 6 """Runs all the buildbot steps for ChromeDriver except for update/compile."""
7 7
8 import bisect 8 import bisect
9 import csv 9 import csv
10 import datetime 10 import datetime
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 if slave_utils.GSUtilCopy( 60 if slave_utils.GSUtilCopy(
61 zip_path, 61 zip_path,
62 '%s/%s' % (GS_PREBUILTS_URL, 'r%s.zip' % commit_position)): 62 '%s/%s' % (GS_PREBUILTS_URL, 'r%s.zip' % commit_position)):
63 util.MarkBuildStepError() 63 util.MarkBuildStepError()
64 64
65 65
66 def _ArchiveServerLogs(): 66 def _ArchiveServerLogs():
67 """Uploads chromedriver server logs to google storage.""" 67 """Uploads chromedriver server logs to google storage."""
68 util.MarkBuildStepStart('archive chromedriver server logs') 68 util.MarkBuildStepStart('archive chromedriver server logs')
69 for server_log in glob.glob(os.path.join(tempfile.gettempdir(), 69 for server_log in glob.glob(os.path.join(tempfile.gettempdir(),
70 'chromedriver_*')): 70 'chromedriver_log_*')):
71 base_name = os.path.basename(server_log) 71 if os.path.isfile(server_log):
72 util.AddLink(base_name, '%s/%s' % (SERVER_LOGS_LINK, base_name)) 72 base_name = os.path.basename(server_log)
73 slave_utils.GSUtilCopy( 73 util.AddLink(base_name, '%s/%s' % (SERVER_LOGS_LINK, base_name))
74 server_log, 74 slave_utils.GSUtilCopy(
75 '%s/%s' % (GS_SERVER_LOGS_URL, base_name), 75 server_log,
76 mimetype='text/plain') 76 '%s/%s' % (GS_SERVER_LOGS_URL, base_name),
77 mimetype='text/plain')
77 78
78 79
79 def _DownloadPrebuilts(): 80 def _DownloadPrebuilts():
80 """Downloads the most recent prebuilts from google storage.""" 81 """Downloads the most recent prebuilts from google storage."""
81 util.MarkBuildStepStart('Download latest chromedriver') 82 util.MarkBuildStepStart('Download latest chromedriver')
82 83
83 zip_path = os.path.join(util.MakeTempDir(), 'build.zip') 84 zip_path = os.path.join(util.MakeTempDir(), 'build.zip')
84 if gsutil_download.DownloadLatestFile(GS_PREBUILTS_URL, 85 if gsutil_download.DownloadLatestFile(GS_PREBUILTS_URL,
85 GS_PREBUILTS_URL + '/r', 86 GS_PREBUILTS_URL + '/r',
86 zip_path): 87 zip_path):
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 util.MarkBuildStepStart('run_all_tests.py') 549 util.MarkBuildStepStart('run_all_tests.py')
549 util.MarkBuildStepError() 550 util.MarkBuildStepError()
550 551
551 # Add a "cleanup" step so that errors from runtest.py or bb_device_steps.py 552 # Add a "cleanup" step so that errors from runtest.py or bb_device_steps.py
552 # (which invoke this script) are kept in their own build step. 553 # (which invoke this script) are kept in their own build step.
553 util.MarkBuildStepStart('cleanup') 554 util.MarkBuildStepStart('cleanup')
554 555
555 556
556 if __name__ == '__main__': 557 if __name__ == '__main__':
557 main() 558 main()
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome_launcher.cc ('k') | chrome/test/chromedriver/test/run_all_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698