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

Side by Side Diff: scripts/slave/recipes/mojo.py

Issue 733203003: Modify mojo recipe to upload to the flakiness dashboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | scripts/slave/recipes/mojo.expected/mojo_linux.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 DEPS = [ 5 DEPS = [
6 'gclient', 6 'gclient',
7 'path', 7 'path',
8 'platform', 8 'platform',
9 'properties', 9 'properties',
10 'python', 10 'python',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 args=['gn', build_type] + args, 51 args=['gn', build_type] + args,
52 cwd=api.path['checkout'], 52 cwd=api.path['checkout'],
53 env=env) 53 env=env)
54 api.python('mojob build', 54 api.python('mojob build',
55 mojob_path, 55 mojob_path,
56 args=['build', build_type] + args, 56 args=['build', build_type] + args,
57 env = env) 57 env = env)
58 58
59 def _RunTests(api, build_type): 59 def _RunTests(api, build_type):
60 mojob_path = api.path['checkout'].join('mojo', 'tools', 'mojob.py') 60 mojob_path = api.path['checkout'].join('mojo', 'tools', 'mojob.py')
61 api.python('mojob test', mojob_path, args=['test', build_type]) 61 api.python('mojob test', mojob_path, args=[
62 'test', build_type,
63 '--master-name', api.properties.get('mastername'),
64 '--builder-name', api.properties.get('buildername'),
65 '--build-number', api.properties.get('buildnumber'),
66 '--test-results-server', 'test-results.appspot.com',
agable 2014/11/17 21:16:13 Might be nice to have a way to override this when
ojan 2014/11/17 21:20:01 Good idea. Done.
67 ])
62 68
63 def _UploadShell(api): 69 def _UploadShell(api):
64 upload_path = api.path['checkout'].join('mojo', 'tools', 70 upload_path = api.path['checkout'].join('mojo', 'tools',
65 'upload_shell_binary.py') 71 'upload_shell_binary.py')
66 api.python('upload shell binary', upload_path) 72 api.python('upload shell binary', upload_path)
67 73
68 def GenSteps(api): 74 def GenSteps(api):
69 buildername = api.properties.get('buildername') 75 buildername = api.properties.get('buildername')
70 _CheckoutSteps(api, buildername) 76 _CheckoutSteps(api, buildername)
71 build_type = '--debug' if 'dbg' in buildername else '--release' 77 build_type = '--debug' if 'dbg' in buildername else '--release'
72 _BuildSteps(api, buildername, build_type) 78 _BuildSteps(api, buildername, build_type)
73 if 'Linux' in buildername or 'Win' in buildername: 79 if 'Linux' in buildername or 'Win' in buildername:
74 _RunTests(api, build_type) 80 _RunTests(api, build_type)
75 if 'Linux' in buildername and build_type == '--release': 81 if 'Linux' in buildername and build_type == '--release':
76 _UploadShell(api) 82 _UploadShell(api)
77 83
78 def GenTests(api): 84 def GenTests(api):
79 tests = [['mojo_linux', 'Mojo Linux'], 85 tests = [['mojo_linux', 'Mojo Linux'],
80 ['mojo_linux_dbg', 'Mojo Linux (dbg)'], 86 ['mojo_linux_dbg', 'Mojo Linux (dbg)'],
81 ['mojo_android_dbg', 'Mojo Android (dbg)'], 87 ['mojo_android_dbg', 'Mojo Android (dbg)'],
82 ['mojo_chromeos_dbg', 'Mojo ChromeOS (dbg)'], 88 ['mojo_chromeos_dbg', 'Mojo ChromeOS (dbg)'],
83 ['mojo_win_dbg', 'Mojo Win (dbg)']] 89 ['mojo_win_dbg', 'Mojo Win (dbg)']]
84 for t in tests: 90 for t in tests:
85 yield(api.test(t[0]) + api.properties.generic(buildername=t[1])) 91 yield(api.test(t[0]) + api.properties.generic(buildername=t[1]))
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/mojo.expected/mojo_linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698