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

Side by Side Diff: scripts/slave/recipe_modules/syzygy/example.py

Issue 2275603003: Make syzygy recipes explicitly set GIT_MODE (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/syzygy/example.expected/full_master_client_syzygy_Syzygy_Coverage.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 """Example of using the Syzygy recipe module.""" 5 """Example of using the Syzygy recipe module."""
6 6
7 # Recipe module dependencies. 7 # Recipe module dependencies.
8 DEPS = [ 8 DEPS = [
9 'chromium', 9 'chromium',
10 'depot_tools/gclient', 10 'depot_tools/gclient',
11 'recipe_engine/platform', 11 'recipe_engine/platform',
12 'recipe_engine/properties', 12 'recipe_engine/properties',
13 'syzygy', 13 'syzygy',
14 ] 14 ]
15 15
16 16
17 from recipe_engine.recipe_api import Property 17 from recipe_engine.recipe_api import Property
18 18
19 PROPERTIES = { 19 PROPERTIES = {
20 'buildername': Property(), 20 'buildername': Property(),
21 } 21 }
22 22
23 23
24 def RunSteps(api, buildername): 24 def RunSteps(api, buildername):
25 # Configure the build environment. 25 # Configure the build environment.
26 if buildername == 'Syzygy Debug': 26 if buildername == 'Syzygy Debug':
27 api.syzygy.set_config('syzygy', BUILD_CONFIG='Debug') 27 api.syzygy.set_config('syzygy', BUILD_CONFIG='Debug')
28 api.chromium.set_config('syzygy', BUILD_CONFIG='Debug') 28 api.chromium.set_config('syzygy', BUILD_CONFIG='Debug')
29 api.gclient.set_config('syzygy', BUILD_CONFIG='Debug') 29 api.gclient.set_config('syzygy', BUILD_CONFIG='Debug', GIT_MODE=True)
30 elif buildername == 'Syzygy Coverage': 30 elif buildername == 'Syzygy Coverage':
31 api.syzygy.set_config('syzygy', BUILD_CONFIG='Coverage') 31 api.syzygy.set_config('syzygy', BUILD_CONFIG='Coverage')
32 api.chromium.set_config('syzygy', BUILD_CONFIG='Coverage') 32 api.chromium.set_config('syzygy', BUILD_CONFIG='Coverage')
33 api.gclient.set_config('syzygy', BUILD_CONFIG='Coverage') 33 api.gclient.set_config('syzygy', BUILD_CONFIG='Coverage', GIT_MODE=True)
34 else: 34 else:
35 assert buildername == 'Syzygy Official' 35 assert buildername == 'Syzygy Official'
36 api.syzygy.set_config('syzygy_official') 36 api.syzygy.set_config('syzygy_official')
37 api.chromium.set_config('syzygy_official') 37 api.chromium.set_config('syzygy_official')
38 api.gclient.set_config('syzygy_official') 38 api.gclient.set_config('syzygy_official', GIT_MODE=True)
39 39
40 # Clean up any running processes on the slave. 40 # Clean up any running processes on the slave.
41 api.syzygy.taskkill() 41 api.syzygy.taskkill()
42 42
43 # Checkout and compile the project. 43 # Checkout and compile the project.
44 api.syzygy.checkout() 44 api.syzygy.checkout()
45 api.syzygy.runhooks() 45 api.syzygy.runhooks()
46 api.syzygy.compile() 46 api.syzygy.compile()
47 47
48 # Run every possible test. Most builders also run a subset of these. 48 # Run every possible test. Most builders also run a subset of these.
(...skipping 20 matching lines...) Expand all
69 69
70 70
71 def GenTests(api): 71 def GenTests(api):
72 """Generates an end-to-end successful test for this builder.""" 72 """Generates an end-to-end successful test for this builder."""
73 yield api.syzygy.generate_test(api, 'Syzygy Debug') 73 yield api.syzygy.generate_test(api, 'Syzygy Debug')
74 74
75 # Use 'fake_slave' as a slave name to ensure that we get coverage of the 75 # Use 'fake_slave' as a slave name to ensure that we get coverage of the
76 # alternate code paths in Coverage and Official specific commands builds. 76 # alternate code paths in Coverage and Official specific commands builds.
77 yield api.syzygy.generate_test(api, 'Syzygy Coverage', slavename='fake_slave') 77 yield api.syzygy.generate_test(api, 'Syzygy Coverage', slavename='fake_slave')
78 yield api.syzygy.generate_test(api, 'Syzygy Official', slavename='fake_slave') 78 yield api.syzygy.generate_test(api, 'Syzygy Official', slavename='fake_slave')
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/syzygy/example.expected/full_master_client_syzygy_Syzygy_Coverage.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698