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

Side by Side Diff: scripts/slave/recipes/skia/infra.py

Issue 1917243002: Revert "build: roll infra_paths changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 5
6 # Recipe for Skia Infra. 6 # Recipe for Skia Infra.
7 7
8 8
9 import re 9 import re
10 10
11 11
12 DEPS = [ 12 DEPS = [
13 'depot_tools/infra_paths',
14 'file', 13 'file',
15 'recipe_engine/path', 14 'recipe_engine/path',
16 'recipe_engine/platform', 15 'recipe_engine/platform',
17 'recipe_engine/properties', 16 'recipe_engine/properties',
18 'recipe_engine/python', 17 'recipe_engine/python',
19 'recipe_engine/raw_io', 18 'recipe_engine/raw_io',
20 'depot_tools/rietveld', 19 'depot_tools/rietveld',
21 'recipe_engine/step', 20 'recipe_engine/step',
22 ] 21 ]
23 22
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 api.path['checkout'] = dest 55 api.path['checkout'] = dest
57 56
58 # Maybe apply a patch. 57 # Maybe apply a patch.
59 if (api.properties.get('rietveld') and 58 if (api.properties.get('rietveld') and
60 api.properties.get('issue') and 59 api.properties.get('issue') and
61 api.properties.get('patchset')): 60 api.properties.get('patchset')):
62 api.rietveld.apply_issue() 61 api.rietveld.apply_issue()
63 62
64 63
65 def RunSteps(api): 64 def RunSteps(api):
66 go_dir = api.infra_paths['slave_build'].join('go') 65 go_dir = api.path['slave_build'].join('go')
67 go_src = go_dir.join('src') 66 go_src = go_dir.join('src')
68 api.file.makedirs('makedirs go/src', go_src) 67 api.file.makedirs('makedirs go/src', go_src)
69 infra_dir = go_src.join(INFRA_GO) 68 infra_dir = go_src.join(INFRA_GO)
70 69
71 # Check out the infra repo. 70 # Check out the infra repo.
72 git_checkout( 71 git_checkout(
73 api, 72 api,
74 INFRA_GIT_URL, 73 INFRA_GIT_URL,
75 dest=infra_dir, 74 dest=infra_dir,
76 ref=api.properties.get('revision', 'origin/master')) 75 ref=api.properties.get('revision', 'origin/master'))
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 karma_port = '9876' 118 karma_port = '9876'
120 if m and len(m.groups()) > 0: 119 if m and len(m.groups()) > 0:
121 karma_port = '15%s' % m.groups()[0] 120 karma_port = '15%s' % m.groups()[0]
122 env['KARMA_PORT'] = karma_port 121 env['KARMA_PORT'] = karma_port
123 api.python('run_unittests', 'run_unittests', cwd=infra_dir, env=env) 122 api.python('run_unittests', 'run_unittests', cwd=infra_dir, env=env)
124 123
125 124
126 def GenTests(api): 125 def GenTests(api):
127 yield ( 126 yield (
128 api.test('Infra-PerCommit') + 127 api.test('Infra-PerCommit') +
129 api.infra_paths.exists( 128 api.path.exists(api.path['slave_build'].join('go', 'src', INFRA_GO,
130 api.infra_paths['slave_build'].join('go', 'src', INFRA_GO, '.git')) + 129 '.git')) +
131 api.properties(slavename='skiabot-linux-infra-001') 130 api.properties(slavename='skiabot-linux-infra-001')
132 ) 131 )
133 yield ( 132 yield (
134 api.test('Infra-PerCommit_initialcheckout') + 133 api.test('Infra-PerCommit_initialcheckout') +
135 api.properties(slavename='skiabot-linux-infra-001') 134 api.properties(slavename='skiabot-linux-infra-001')
136 ) 135 )
137 yield ( 136 yield (
138 api.test('Infra-PerCommit_try') + 137 api.test('Infra-PerCommit_try') +
139 api.properties(rietveld='https://codereview.chromium.org', 138 api.properties(rietveld='https://codereview.chromium.org',
140 issue=1234, 139 issue=1234,
141 patchset=1, 140 patchset=1,
142 revision=REF_HEAD, 141 revision=REF_HEAD,
143 slavename='skiabot-linux-infra-001') 142 slavename='skiabot-linux-infra-001')
144 ) 143 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698