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

Side by Side Diff: infra/tools/bot_setup/start/chrome.py

Issue 2099333002: Ensure ccompute buildbot checkouts remain managed (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 5 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 | 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 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 """Sets up and starts a Chrome slave.""" 5 """Sets up and starts a Chrome slave."""
6 6
7 import httplib 7 import httplib
8 import httplib2 8 import httplib2
9 import json 9 import json
10 import os 10 import os
(...skipping 10 matching lines...) Expand all
21 21
22 22
23 DEPOT_TOOLS_URL = ( 23 DEPOT_TOOLS_URL = (
24 'https://chromium.googlesource.com/chromium/tools/depot_tools.git') 24 'https://chromium.googlesource.com/chromium/tools/depot_tools.git')
25 SLAVE_DEPS_URL = ( 25 SLAVE_DEPS_URL = (
26 'https://chrome-internal.googlesource.com/chrome/tools/build/slave.DEPS') 26 'https://chrome-internal.googlesource.com/chrome/tools/build/slave.DEPS')
27 INTERNAL_DEPS_URL = ( 27 INTERNAL_DEPS_URL = (
28 'https://chrome-internal.googlesource.com/chrome/tools/build/internal.DEPS') 28 'https://chrome-internal.googlesource.com/chrome/tools/build/internal.DEPS')
29 GCLIENT_FILE = """ 29 GCLIENT_FILE = """
30 solutions = [ 30 solutions = [
31 { "name" : "%s.DEPS", 31 {
32 "name" : "%s.DEPS",
32 "url" : "%s", 33 "url" : "%s",
33 "deps_file" : ".DEPS.git", 34 "deps_file" : ".DEPS.git",
35 "managed" : True,
34 }, 36 },
35 ] 37 ]
36 """ 38 """
37 39
38 40
39 # TODO(hinoka): Make this an infra virtualenv. crbug.com/426099. 41 # TODO(hinoka): Make this an infra virtualenv. crbug.com/426099.
40 # Because of various issues (eg. pywin32 not installed in the infra virtualenv) 42 # Because of various issues (eg. pywin32 not installed in the infra virtualenv)
41 # We can't use the virtualenv for running buildbot :(. 43 # We can't use the virtualenv for running buildbot :(.
42 if IS_WINDOWS: 44 if IS_WINDOWS:
43 PYTHON = 'c:\\setup\\depot_tools\\python276_bin\\python.exe' 45 PYTHON = 'c:\\setup\\depot_tools\\python276_bin\\python.exe'
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 if IS_WINDOWS: 200 if IS_WINDOWS:
199 # depot_tools msysgit can't find ~/.gitconfig unless we explicitly set HOME 201 # depot_tools msysgit can't find ~/.gitconfig unless we explicitly set HOME
200 os.environ['HOME'] = '%s%s' % ( 202 os.environ['HOME'] = '%s%s' % (
201 os.environ.get('HOMEDRIVE'), os.environ.get('HOMEPATH')) 203 os.environ.get('HOMEDRIVE'), os.environ.get('HOMEPATH'))
202 bot_entry = get_botmap_entry(slave_name) 204 bot_entry = get_botmap_entry(slave_name)
203 is_internal = bot_entry.get('internal', False) 205 is_internal = bot_entry.get('internal', False)
204 ensure_checkout(root_dir, depot_tools, is_internal) 206 ensure_checkout(root_dir, depot_tools, is_internal)
205 if password_file: 207 if password_file:
206 seed_passwords(root_dir, password_file) 208 seed_passwords(root_dir, password_file)
207 run_slave(root_dir, slave_name) 209 run_slave(root_dir, slave_name)
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