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

Side by Side Diff: tools/bots/bot_utils.py

Issue 1704323002: Archive unstripped dart binaries on the sdk builders (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | tools/bots/dart_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import hashlib 7 import hashlib
8 import imp 8 import imp
9 import os 9 import os
10 import platform 10 import platform
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 self.editor_installer_filename(system, arch, extension)]) 108 self.editor_installer_filename(system, arch, extension)])
109 109
110 def editor_android_zipfilepath(self, revision): 110 def editor_android_zipfilepath(self, revision):
111 return '/'.join([self.editor_directory(revision), 111 return '/'.join([self.editor_directory(revision),
112 self.editor_android_zipfilename()]) 112 self.editor_android_zipfilename()])
113 113
114 def sdk_zipfilepath(self, revision, system, arch, mode): 114 def sdk_zipfilepath(self, revision, system, arch, mode):
115 return '/'.join([self.sdk_directory(revision), 115 return '/'.join([self.sdk_directory(revision),
116 self.sdk_zipfilename(system, arch, mode)]) 116 self.sdk_zipfilename(system, arch, mode)])
117 117
118 def unstripped_filepath(self, revision, system, arch):
119 return '/'.join([self._variant_directory('unstripped', revision),
120 system,
121 arch,
122 self.unstripped_filename(system)])
123
118 def dartium_variant_zipfilepath(self, revision, name, system, arch, mode): 124 def dartium_variant_zipfilepath(self, revision, name, system, arch, mode):
119 return '/'.join([self.dartium_directory(revision), 125 return '/'.join([self.dartium_directory(revision),
120 self.dartium_variant_zipfilename(name, system, arch, mode)]) 126 self.dartium_variant_zipfilename(name, system, arch, mode)])
121 127
122 def apidocs_zipfilepath(self, revision): 128 def apidocs_zipfilepath(self, revision):
123 return '/'.join([self.apidocs_directory(revision), 129 return '/'.join([self.apidocs_directory(revision),
124 self.dartdocs_zipfilename()]) 130 self.dartdocs_zipfilename()])
125 131
126 def dartium_android_apk_filepath(self, revision, name, arch, mode): 132 def dartium_android_apk_filepath(self, revision, name, arch, mode):
127 return '/'.join([self.dartium_android_directory(revision), 133 return '/'.join([self.dartium_android_directory(revision),
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 def editor_installer_filename(self, system, arch, extension): 185 def editor_installer_filename(self, system, arch, extension):
180 assert extension in ['dmg', 'msi'] 186 assert extension in ['dmg', 'msi']
181 return 'darteditor-installer-%s-%s.%s' % ( 187 return 'darteditor-installer-%s-%s.%s' % (
182 SYSTEM_RENAMES[system], ARCH_RENAMES[arch], extension) 188 SYSTEM_RENAMES[system], ARCH_RENAMES[arch], extension)
183 189
184 def sdk_zipfilename(self, system, arch, mode): 190 def sdk_zipfilename(self, system, arch, mode):
185 assert mode in Mode.ALL_MODES 191 assert mode in Mode.ALL_MODES
186 return 'dartsdk-%s-%s-%s.zip' % ( 192 return 'dartsdk-%s-%s-%s.zip' % (
187 SYSTEM_RENAMES[system], ARCH_RENAMES[arch], mode) 193 SYSTEM_RENAMES[system], ARCH_RENAMES[arch], mode)
188 194
195 def unstripped_filename(self, system):
196 return 'dart.exe' if system.startswith('win') else 'dart'
197
189 def dartium_variant_zipfilename(self, name, system, arch, mode): 198 def dartium_variant_zipfilename(self, name, system, arch, mode):
190 assert name in ['chromedriver', 'dartium', 'content_shell'] 199 assert name in ['chromedriver', 'dartium', 'content_shell']
191 assert mode in Mode.ALL_MODES 200 assert mode in Mode.ALL_MODES
192 return '%s-%s-%s-%s.zip' % ( 201 return '%s-%s-%s-%s.zip' % (
193 name, SYSTEM_RENAMES[system], ARCH_RENAMES[arch], mode) 202 name, SYSTEM_RENAMES[system], ARCH_RENAMES[arch], mode)
194 203
195 class GCSNamerApiDocs(object): 204 class GCSNamerApiDocs(object):
196 def __init__(self, channel=Channel.BLEEDING_EDGE): 205 def __init__(self, channel=Channel.BLEEDING_EDGE):
197 assert channel in Channel.ALL_CHANNELS 206 assert channel in Channel.ALL_CHANNELS
198 207
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 367
359 return checksum_filename 368 return checksum_filename
360 369
361 def GetChannelFromName(name): 370 def GetChannelFromName(name):
362 """Get the channel from the name. Bleeding edge builders don't 371 """Get the channel from the name. Bleeding edge builders don't
363 have a suffix.""" 372 have a suffix."""
364 channel_name = string.split(name, '-').pop() 373 channel_name = string.split(name, '-').pop()
365 if channel_name in Channel.ALL_CHANNELS: 374 if channel_name in Channel.ALL_CHANNELS:
366 return channel_name 375 return channel_name
367 return Channel.BLEEDING_EDGE 376 return Channel.BLEEDING_EDGE
OLDNEW
« no previous file with comments | « no previous file | tools/bots/dart_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698