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

Side by Side Diff: scripts/slave/recipes/syzygy/coverage.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, 3 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 # 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 """Buildbot recipe definition for the various Syzygy coverage builder. 5 """Buildbot recipe definition for the various Syzygy coverage builder.
6 6
7 To be tested using a command-line like: 7 To be tested using a command-line like:
8 8
9 /build/scripts/tools/run_recipe.py syzygy/continuous 9 /build/scripts/tools/run_recipe.py syzygy/continuous
10 revision=0e9f25b1098271be2b096fd1c095d6d907cf86f7 10 revision=0e9f25b1098271be2b096fd1c095d6d907cf86f7
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 47
48 def RunSteps(api, buildername): 48 def RunSteps(api, buildername):
49 """Generates the sequence of steps that will be run on the coverage bot.""" 49 """Generates the sequence of steps that will be run on the coverage bot."""
50 assert buildername in BUILDERS 50 assert buildername in BUILDERS
51 # Configure the build environment. 51 # Configure the build environment.
52 s = api.syzygy 52 s = api.syzygy
53 config, kwargs = BUILDERS[buildername] 53 config, kwargs = BUILDERS[buildername]
54 s.set_config(config, **kwargs) 54 s.set_config(config, **kwargs)
55 api.chromium.set_config(config, **kwargs) 55 api.chromium.set_config(config, **kwargs)
56 api.gclient.set_config(config, **kwargs) 56 api.gclient.set_config(config, GIT_MODE=True, **kwargs)
57 57
58 # Clean up any running processes on the slave. 58 # Clean up any running processes on the slave.
59 s.taskkill() 59 s.taskkill()
60 60
61 # Checkout and compile the project. 61 # Checkout and compile the project.
62 s.checkout() 62 s.checkout()
63 s.runhooks() 63 s.runhooks()
64 s.compile() 64 s.compile()
65 65
66 s.capture_unittest_coverage() 66 s.capture_unittest_coverage()
67 67
68 if not buildername.endswith('_try'): 68 if not buildername.endswith('_try'):
69 s.archive_coverage() 69 s.archive_coverage()
70 70
71 71
72 def GenTests(api): 72 def GenTests(api):
73 """Generates an end-to-end successful test for this builder.""" 73 """Generates an end-to-end successful test for this builder."""
74 for buildername in BUILDERS: 74 for buildername in BUILDERS:
75 yield api.syzygy.generate_test(api, buildername) 75 yield api.syzygy.generate_test(api, buildername)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698