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

Side by Side Diff: client/tools/buildbot_annotated_steps.py

Issue 8372083: Small fix to buildbot_annotated_steps.py to find correctly the latest version of (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 #!/usr/bin/python 5 #!/usr/bin/python
6 6
7 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 7 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
8 # Use of this source code is governed by a BSD-style license that can be 8 # Use of this source code is governed by a BSD-style license that can be
9 # found in the LICENSE file. 9 # found in the LICENSE file.
10 10
11 """Dart client buildbot steps 11 """Dart client buildbot steps
12 12
13 Compiles dart client apps with dartc, and run the client tests both in headless 13 Compiles dart client apps with dartc, and run the client tests both in headless
14 chromium and headless dartium. 14 chromium and headless dartium.
15 """ 15 """
16 16
17 import os 17 import os
18 import re 18 import re
19 import socket 19 import socket
20 import subprocess 20 import subprocess
21 import sys 21 import sys
22 import shutil 22 import shutil
23 import glob 23 import glob
24 24
25 BUILDER_NAME = 'BUILDBOT_BUILDERNAME' 25 BUILDER_NAME = 'BUILDBOT_BUILDERNAME'
26 REVISION = 'BUILDBOT_REVISION' 26 REVISION = 'BUILDBOT_REVISION'
27 27
28 # latest dartium location 28 # latest dartium location
29 DARTIUM_VERSION_FILE = 'tests/drt/LAST_VERSION' 29 DARTIUM_VERSION_FILE = 'client/tests/drt/LAST_VERSION'
30 DARTIUM_V_MATCHER = ( 30 DARTIUM_V_MATCHER = (
31 'gs://dartium-archive/[^/]*/dartium-\w*-inc-([0-9]*).([0-9]*).zip') 31 'gs://dartium-archive/[^/]*/dartium-\w*-inc-([0-9]*).([0-9]*).zip')
32 32
33 # Patterns are of the form "dart_client-linux-ia32-debug" 33 # Patterns are of the form "dart_client-linux-ia32-debug"
34 BUILDER_PATTERN = r'dart_client-(\w+)-(\w+)-(\w+)' 34 BUILDER_PATTERN = r'dart_client-(\w+)-(\w+)-(\w+)'
35 35
36 36
37 def GetBuildInfo(): 37 def GetBuildInfo():
38 """Returns a tuple (name, version, arch, mode, platform) where: 38 """Returns a tuple (name, version, arch, mode, platform) where:
39 - name: A name for the build - the buildbot host if a buildbot. 39 - name: A name for the build - the buildbot host if a buildbot.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 print ('@@@BUILD_STEP dartc dart clients: %s@@@' % name) 126 print ('@@@BUILD_STEP dartc dart clients: %s@@@' % name)
127 127
128 utils = GetUtils() 128 utils = GetUtils()
129 outdir = GetOutDir(utils, mode) 129 outdir = GetOutDir(utils, mode)
130 status = RunDartcCompiler(mode, outdir) 130 status = RunDartcCompiler(mode, outdir)
131 if status != 0: 131 if status != 0:
132 return status 132 return status
133 133
134 if component == 'dartium': 134 if component == 'dartium':
135 if os.path.exists(DARTIUM_VERSION_FILE): 135 if os.path.exists(DARTIUM_VERSION_FILE):
136 latest = open(version_file, 'r').read() 136 latest = open(DARTIUM_VERSION_FILE, 'r').read()
137 match = re.match(DARTIUM_V_MATCHER, latest) 137 match = re.match(DARTIUM_V_MATCHER, latest)
138 if match: 138 if match:
139 print '@@@BUILD_STEP vm r%s (dartium r%s)@@@' % ( 139 print '@@@BUILD_STEP vm r%s (dartium r%s)@@@' % (
140 match.group(2), match.group(1)) 140 match.group(2), match.group(1))
141 print '@@@BUILD_STEP browser unit tests@@@' 141 print '@@@BUILD_STEP browser unit tests@@@'
142 return RunBrowserTests(component, mode, platform) 142 return RunBrowserTests(component, mode, platform)
143 143
144 def ProcessTools(mode, name, version): 144 def ProcessTools(mode, name, version):
145 ''' 145 '''
146 build and test the tools 146 build and test the tools
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 status = ProcessDartClientTests(component, mode, platform, name) 196 status = ProcessDartClientTests(component, mode, platform, name)
197 197
198 if status: 198 if status:
199 print '@@@STEP_FAILURE@@@' 199 print '@@@STEP_FAILURE@@@'
200 200
201 return status 201 return status
202 202
203 203
204 if __name__ == '__main__': 204 if __name__ == '__main__':
205 sys.exit(main()) 205 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698