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

Side by Side Diff: catapult_base/catapult_base/update_reference_build

Issue 3004533002: [catapult] Roll forward Chrome reference builds (Closed)
Patch Set: skip test Created 3 years, 4 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 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Updates the Chrome reference builds. 7 """Updates the Chrome reference builds.
8 8
9 Usage: 9 Usage:
10 $ /path/to/update_reference_build.py 10 $ /path/to/update_reference_build.py
(...skipping 28 matching lines...) Expand all
39 39
40 40
41 # Remove a platform name from this list to disable updating it. 41 # Remove a platform name from this list to disable updating it.
42 # Add one to enable updating it. (Must also update _PLATFORM_MAP.) 42 # Add one to enable updating it. (Must also update _PLATFORM_MAP.)
43 _PLATFORMS_TO_UPDATE = ['mac_x86_64', 'win_x86', 'win_AMD64', 'linux_x86_64', 43 _PLATFORMS_TO_UPDATE = ['mac_x86_64', 'win_x86', 'win_AMD64', 'linux_x86_64',
44 'android_k_armeabi-v7a', 'android_l_arm64-v8a', 44 'android_k_armeabi-v7a', 'android_l_arm64-v8a',
45 'android_l_armeabi-v7a'] 45 'android_l_armeabi-v7a']
46 46
47 # Remove a channal name from this list to disable updating it. 47 # Remove a channal name from this list to disable updating it.
48 # Add one to enable updating it. 48 # Add one to enable updating it.
49 _CHANNELS_TO_UPDATE = [#'canary', 'dev']#, 49 _CHANNELS_TO_UPDATE = ['canary', 'dev', 'stable']
50 'stable']
51 50
52 51
53 # Omaha is Chrome's autoupdate server. It reports the current versions used 52 # Omaha is Chrome's autoupdate server. It reports the current versions used
54 # by each platform on each channel. 53 # by each platform on each channel.
55 _OMAHA_PLATFORMS = { 'stable': ['mac', 'linux', 'win', 'android'], 54 _OMAHA_PLATFORMS = { 'stable': ['mac', 'linux', 'win', 'android'],
56 'dev': ['linux'], 'canary': ['mac', 'win']} 55 'dev': ['linux'], 'canary': ['mac', 'win']}
57 56
58 57
59 # All of the information we need to update each platform. 58 # All of the information we need to update each platform.
60 # omaha: name omaha uses for the plaftorms. 59 # omaha: name omaha uses for the plaftorms.
61 # zip_name: name of the zip file to be retrieved from cloud storage. 60 # zip_name: name of the zip file to be retrieved from cloud storage.
62 # gs_build: name of the Chrome build platform used in cloud storage. 61 # gs_build: name of the Chrome build platform used in cloud storage.
63 # destination: Name of the folder to download the reference build to. 62 # destination: Name of the folder to download the reference build to.
64 UpdateInfo = collections.namedtuple('UpdateInfo', 63 UpdateInfo = collections.namedtuple('UpdateInfo',
65 'omaha, gs_folder, gs_build, zip_name') 64 'omaha, gs_folder, gs_build, zip_name')
66 _PLATFORM_MAP = { 'mac_x86_64': UpdateInfo(omaha='mac', 65 _PLATFORM_MAP = { 'mac_x86_64': UpdateInfo(omaha='mac',
67 gs_folder='desktop-*', 66 gs_folder='desktop-*',
68 gs_build='mac64', 67 gs_build='mac64',
69 zip_name='chrome-mac.zip'), 68 zip_name='chrome-mac.zip'),
70 'win_x86': UpdateInfo(omaha='win', 69 'win_x86': UpdateInfo(omaha='win',
71 gs_folder='desktop-*', 70 gs_folder='desktop-*',
72 gs_build='win-pgo', 71 gs_build='win-pgo',
73 zip_name='chrome-win-pgo.zip'), 72 zip_name='chrome-win-pgo.zip'),
74 'win_AMD64': UpdateInfo(omaha='win', 73 'win_AMD64': UpdateInfo(omaha='win',
75 gs_folder='desktop-*', 74 gs_folder='desktop-*',
76 gs_build='win64-pgo', 75 gs_build='win64-pgo',
77 zip_name='chrome-win64-pgo.zip'), 76 zip_name='chrome-win64-pgo.zip'),
78 'linux_x86_64': UpdateInfo(omaha='linux', 77 'linux_x86_64': UpdateInfo(omaha='linux',
79 gs_folder='desktop-*', 78 gs_folder='desktop-*',
80 gs_build='precise64', 79 gs_build='linux64',
81 zip_name='chrome-precise64.zip'), 80 zip_name='chrome-linux64.zip'),
82 'android_k_armeabi-v7a': UpdateInfo(omaha='android', 81 'android_k_armeabi-v7a': UpdateInfo(omaha='android',
83 gs_folder='android-*', 82 gs_folder='android-*',
84 gs_build='arm', 83 gs_build='arm',
85 zip_name='Chrome.apk'), 84 zip_name='Chrome.apk'),
86 'android_l_arm64-v8a': UpdateInfo(omaha='android', 85 'android_l_arm64-v8a': UpdateInfo(omaha='android',
87 gs_folder='android-*', 86 gs_folder='android-*',
88 gs_build='arm_64', 87 gs_build='arm_64',
89 zip_name='ChromeModern.apk') , 88 zip_name='ChromeModern.apk') ,
90 'android_l_armeabi-v7a': UpdateInfo(omaha='android', 89 'android_l_armeabi-v7a': UpdateInfo(omaha='android',
91 gs_folder='android-*', 90 gs_folder='android-*',
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 172
174 def main(): 173 def main():
175 logging.getLogger().setLevel(logging.DEBUG) 174 logging.getLogger().setLevel(logging.DEBUG)
176 #TODO(aiolos): alert sheriffs via email when an error is seen. 175 #TODO(aiolos): alert sheriffs via email when an error is seen.
177 #This should be added when alerts are added when updating the build. 176 #This should be added when alerts are added when updating the build.
178 UpdateBuilds() 177 UpdateBuilds()
179 # TODO(aiolos): Add --commit flag. crbug.com/547229 178 # TODO(aiolos): Add --commit flag. crbug.com/547229
180 179
181 if __name__ == '__main__': 180 if __name__ == '__main__':
182 main() 181 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698