Commit d34c9060 authored by tandrii@chromium.org's avatar tandrii@chromium.org

Reland of depot_tools: add infra_paths recipe module for infra-specific paths...

Reland of depot_tools: add infra_paths recipe module for infra-specific paths (patchset #1 id:1 of https://codereview.chromium.org/1917263002/ )

Reason for revert:
re-landing because wrong order of reverts :(

Original issue's description:
> Revert of depot_tools: add infra_paths recipe module for infra-specific paths (patchset #2 id:20001 of https://codereview.chromium.org/1915463002/ )
> 
> Reason for revert:
> breaks skia bots :(
> 
> Original issue's description:
> > depot_tools: add infra_paths recipe module for infra-specific paths
> > 
> > Depends on https://codereview.chromium.org/1906323003
> > 
> > BUG=chromium:605919
> > 
> > Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=300184
> 
> TBR=iannucci@chromium.org,martiniss@chromium.org,phajdan.jr@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=chromium:605919
> 
> Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=300199

TBR=iannucci@chromium.org,martiniss@chromium.org,phajdan.jr@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=chromium:605919

Review URL: https://codereview.chromium.org/1921373002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@300200 0039d316-1c4b-4281-b951-d872f2087c98
parent 54e0d263
...@@ -5,5 +5,5 @@ deps { ...@@ -5,5 +5,5 @@ deps {
project_id: "recipe_engine" project_id: "recipe_engine"
url: "https://chromium.googlesource.com/external/github.com/luci/recipes-py.git" url: "https://chromium.googlesource.com/external/github.com/luci/recipes-py.git"
branch: "master" branch: "master"
revision: "633abf8d47e44241203369a7e4eb926b832c6dff" revision: "f712a9271eb999e8b43c48ea9404f4bef393e486"
} }
DEPS = [ DEPS = [
'gclient', 'gclient',
'infra_paths',
'recipe_engine/json', 'recipe_engine/json',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/platform', 'recipe_engine/platform',
......
...@@ -119,9 +119,9 @@ class BotUpdateApi(recipe_api.RecipeApi): ...@@ -119,9 +119,9 @@ class BotUpdateApi(recipe_api.RecipeApi):
# Point to the oauth2 auth files if specified. # Point to the oauth2 auth files if specified.
# These paths are where the bots put their credential files. # These paths are where the bots put their credential files.
if patch_oauth2: if patch_oauth2:
email_file = self.m.path['build'].join( email_file = self.m.infra_paths['build'].join(
'site_config', '.rietveld_client_email') 'site_config', '.rietveld_client_email')
key_file = self.m.path['build'].join( key_file = self.m.infra_paths['build'].join(
'site_config', '.rietveld_secret_key') 'site_config', '.rietveld_secret_key')
else: else:
email_file = key_file = None email_file = key_file = None
...@@ -276,7 +276,7 @@ class BotUpdateApi(recipe_api.RecipeApi): ...@@ -276,7 +276,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
# first solution. # first solution.
if step_result.json.output['did_run']: if step_result.json.output['did_run']:
co_root = step_result.json.output['root'] co_root = step_result.json.output['root']
cwd = kwargs.get('cwd', self.m.path['slave_build']) cwd = kwargs.get('cwd', self.m.infra_paths['slave_build'])
if 'checkout' not in self.m.path: if 'checkout' not in self.m.path:
self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep)) self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep))
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
"--revision", "--revision",
"src@abc" "src@abc"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"src@HEAD", "src@HEAD",
"--output_manifest" "--output_manifest"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"src@HEAD", "src@HEAD",
"--with_branch_heads" "--with_branch_heads"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"src@HEAD", "src@HEAD",
"--clobber" "--clobber"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"src@HEAD", "src@HEAD",
"--force" "--force"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"src@HEAD", "src@HEAD",
"--gerrit_no_reset" "--gerrit_no_reset"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"src@HEAD", "src@HEAD",
"--no_shallow" "--no_shallow"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
"--revision", "--revision",
"src@HEAD" "src@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
"--revision", "--revision",
"src@revision" "src@revision"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
"src@HEAD", "src@HEAD",
"--force" "--force"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
"--refs", "--refs",
"+refs/change/1/2/333" "+refs/change/1/2/333"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -19,15 +19,14 @@ ...@@ -19,15 +19,14 @@
"--git-cache-dir", "--git-cache-dir",
"[GIT_CACHE]", "[GIT_CACHE]",
"--apply_issue_email_file", "--apply_issue_email_file",
"[BUILD]/site_config/.rietveld_client_email", "[ROOT]/b/build/site_config/.rietveld_client_email",
"--apply_issue_key_file", "--apply_issue_key_file",
"[BUILD]/site_config/.rietveld_secret_key", "[ROOT]/b/build/site_config/.rietveld_secret_key",
"--output_json", "--output_json",
"/path/to/tmp/json", "/path/to/tmp/json",
"--revision", "--revision",
"src@HEAD" "src@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
"--revision", "--revision",
"src@HEAD" "src@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
"--revision", "--revision",
"src@HEAD" "src@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
"--revision", "--revision",
"src@HEAD" "src@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -67,7 +66,6 @@ ...@@ -67,7 +66,6 @@
"-u", "-u",
"import sys; sys.exit(1)" "import sys; sys.exit(1)"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "Patch failure", "name": "Patch failure",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
"--revision", "--revision",
"src@HEAD" "src@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -66,7 +65,6 @@ ...@@ -66,7 +65,6 @@
"-u", "-u",
"import sys;print \"Patch download failed. See bot_update step for details\";sys.exit(1)" "import sys;print \"Patch download failed. See bot_update step for details\";sys.exit(1)"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "Patch failure", "name": "Patch failure",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
"--revision", "--revision",
"src/third_party/angle@HEAD" "src/third_party/angle@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
"--revision", "--revision",
"src/v8@abc" "src/v8@abc"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
"--revision", "--revision",
"src/v8@HEAD" "src/v8@HEAD"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
DEPS = [ DEPS = [
'infra_paths',
'recipe_engine/json', 'recipe_engine/json',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/platform', 'recipe_engine/platform',
......
...@@ -134,7 +134,7 @@ class GclientApi(recipe_api.RecipeApi): ...@@ -134,7 +134,7 @@ class GclientApi(recipe_api.RecipeApi):
def get_config_defaults(self): def get_config_defaults(self):
return { return {
'USE_MIRROR': self.use_mirror, 'USE_MIRROR': self.use_mirror,
'CACHE_DIR': self.m.path['git_cache'], 'CACHE_DIR': self.m.infra_paths['git_cache'],
} }
@staticmethod @staticmethod
...@@ -276,7 +276,7 @@ class GclientApi(recipe_api.RecipeApi): ...@@ -276,7 +276,7 @@ class GclientApi(recipe_api.RecipeApi):
self(name, ['recurse', 'git', 'config', var, val], **kwargs) self(name, ['recurse', 'git', 'config', var, val], **kwargs)
finally: finally:
cwd = kwargs.get('cwd', self.m.path['slave_build']) cwd = kwargs.get('cwd', self.m.infra_paths['slave_build'])
if 'checkout' not in self.m.path: if 'checkout' not in self.m.path:
self.m.path['checkout'] = cwd.join( self.m.path['checkout'] = cwd.join(
*cfg.solutions[0].name.split(self.m.path.sep)) *cfg.solutions[0].name.split(self.m.path.sep))
...@@ -290,9 +290,13 @@ class GclientApi(recipe_api.RecipeApi): ...@@ -290,9 +290,13 @@ class GclientApi(recipe_api.RecipeApi):
prefix = '%sgclient ' % (('[spec: %s] ' % alias) if alias else '') prefix = '%sgclient ' % (('[spec: %s] ' % alias) if alias else '')
return self.m.python(prefix + 'revert', return self.m.python(prefix + 'revert',
self.m.path['build'].join('scripts', 'slave', 'gclient_safe_revert.py'), self.m.infra_paths['build'].join(
['.', self.m.path['depot_tools'].join('gclient', 'scripts', 'slave', 'gclient_safe_revert.py'),
platform_ext={'win': '.bat'})], [
'.',
self.m.infra_paths['depot_tools'].join(
'gclient', platform_ext={'win': '.bat'})
],
infra_step=True, infra_step=True,
**kwargs **kwargs
) )
...@@ -334,7 +338,7 @@ class GclientApi(recipe_api.RecipeApi): ...@@ -334,7 +338,7 @@ class GclientApi(recipe_api.RecipeApi):
print 'deleting %s' % path_to_file print 'deleting %s' % path_to_file
os.remove(path_to_file) os.remove(path_to_file)
""", """,
args=[self.m.path['slave_build']], args=[self.m.infra_paths['slave_build']],
infra_step=True, infra_step=True,
) )
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
"--spec", "--spec",
"cache_dir = '[ROOT]/git_cache'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]" "cache_dir = '[ROOT]/git_cache'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -32,7 +31,6 @@ ...@@ -32,7 +31,6 @@
"--output-json", "--output-json",
"/path/to/tmp/json" "/path/to/tmp/json"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -59,7 +57,6 @@ ...@@ -59,7 +57,6 @@
"user.name", "user.name",
"local_bot" "local_bot"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -76,7 +73,6 @@ ...@@ -76,7 +73,6 @@
"user.email", "user.email",
"local_bot@example.com" "local_bot@example.com"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -89,9 +85,9 @@ ...@@ -89,9 +85,9 @@
"RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
"config", "config",
"--spec", "--spec",
"cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]" "cache_dir = '[ROOT]/b/build/slave/cache_dir'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
], ],
"cwd": "[SLAVE_BUILD]/src/third_party", "cwd": "[CWD]/src/third_party",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -113,7 +109,7 @@ ...@@ -113,7 +109,7 @@
"--output-json", "--output-json",
"/path/to/tmp/json" "/path/to/tmp/json"
], ],
"cwd": "[SLAVE_BUILD]/src/third_party", "cwd": "[CWD]/src/third_party",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -138,9 +134,8 @@ ...@@ -138,9 +134,8 @@
"python", "python",
"-u", "-u",
"\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_path):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.join(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove(path_to_file)\n", "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_path):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.join(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove(path_to_file)\n",
"[SLAVE_BUILD]" "[CWD]"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "cleanup index.lock", "name": "cleanup index.lock",
"~followup_annotations": [ "~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@", "@@@STEP_LOG_LINE@python.inline@@@@",
...@@ -164,7 +159,6 @@ ...@@ -164,7 +159,6 @@
"RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
"runhooks" "runhooks"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
"--spec", "--spec",
"cache_dir = '[ROOT]/git_cache'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]" "cache_dir = '[ROOT]/git_cache'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
"--output-json", "--output-json",
"/path/to/tmp/json" "/path/to/tmp/json"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -61,7 +59,6 @@ ...@@ -61,7 +59,6 @@
"user.name", "user.name",
"local_bot" "local_bot"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -78,7 +75,6 @@ ...@@ -78,7 +75,6 @@
"user.email", "user.email",
"local_bot@example.com" "local_bot@example.com"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -91,9 +87,9 @@ ...@@ -91,9 +87,9 @@
"RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
"config", "config",
"--spec", "--spec",
"cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]" "cache_dir = '[ROOT]/b/build/slave/cache_dir'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
], ],
"cwd": "[SLAVE_BUILD]/src/third_party", "cwd": "[CWD]/src/third_party",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -115,7 +111,7 @@ ...@@ -115,7 +111,7 @@
"--output-json", "--output-json",
"/path/to/tmp/json" "/path/to/tmp/json"
], ],
"cwd": "[SLAVE_BUILD]/src/third_party", "cwd": "[CWD]/src/third_party",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -140,9 +136,8 @@ ...@@ -140,9 +136,8 @@
"python", "python",
"-u", "-u",
"\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_path):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.join(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove(path_to_file)\n", "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_path):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.join(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove(path_to_file)\n",
"[SLAVE_BUILD]" "[CWD]"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "cleanup index.lock", "name": "cleanup index.lock",
"~followup_annotations": [ "~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@", "@@@STEP_LOG_LINE@python.inline@@@@",
...@@ -166,7 +161,6 @@ ...@@ -166,7 +161,6 @@
"RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
"runhooks" "runhooks"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
"--spec", "--spec",
"cache_dir = '[ROOT]/git_cache'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]" "cache_dir = '[ROOT]/git_cache'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
"--output-json", "--output-json",
"/path/to/tmp/json" "/path/to/tmp/json"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -61,7 +59,6 @@ ...@@ -61,7 +59,6 @@
"user.name", "user.name",
"local_bot" "local_bot"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -78,7 +75,6 @@ ...@@ -78,7 +75,6 @@
"user.email", "user.email",
"local_bot@example.com" "local_bot@example.com"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -91,9 +87,9 @@ ...@@ -91,9 +87,9 @@
"RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
"config", "config",
"--spec", "--spec",
"cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]" "cache_dir = '[ROOT]/b/build/slave/cache_dir'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
], ],
"cwd": "[SLAVE_BUILD]/src/third_party", "cwd": "[CWD]/src/third_party",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -103,11 +99,11 @@ ...@@ -103,11 +99,11 @@
"cmd": [ "cmd": [
"python", "python",
"-u", "-u",
"[BUILD]/scripts/slave/gclient_safe_revert.py", "[ROOT]/b/build/scripts/slave/gclient_safe_revert.py",
".", ".",
"[DEPOT_TOOLS]/gclient" "[ROOT]/b/depot_tools/gclient"
], ],
"cwd": "[SLAVE_BUILD]/src/third_party", "cwd": "[CWD]/src/third_party",
"name": "[spec: WebKit] gclient revert" "name": "[spec: WebKit] gclient revert"
}, },
{ {
...@@ -126,7 +122,7 @@ ...@@ -126,7 +122,7 @@
"--output-json", "--output-json",
"/path/to/tmp/json" "/path/to/tmp/json"
], ],
"cwd": "[SLAVE_BUILD]/src/third_party", "cwd": "[CWD]/src/third_party",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
...@@ -151,9 +147,8 @@ ...@@ -151,9 +147,8 @@
"python", "python",
"-u", "-u",
"\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_path):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.join(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove(path_to_file)\n", "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_path):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.join(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove(path_to_file)\n",
"[SLAVE_BUILD]" "[CWD]"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "cleanup index.lock", "name": "cleanup index.lock",
"~followup_annotations": [ "~followup_annotations": [
"@@@STEP_LOG_LINE@python.inline@@@@", "@@@STEP_LOG_LINE@python.inline@@@@",
...@@ -177,7 +172,6 @@ ...@@ -177,7 +172,6 @@
"RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
"runhooks" "runhooks"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
DEPS = [ DEPS = [
'gclient', 'gclient',
'infra_paths',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/properties', 'recipe_engine/properties',
] ]
...@@ -81,7 +82,7 @@ def RunSteps(api): ...@@ -81,7 +82,7 @@ def RunSteps(api):
api.gclient.checkout( api.gclient.checkout(
gclient_config=bl_cfg, gclient_config=bl_cfg,
with_branch_heads=True, with_branch_heads=True,
cwd=api.path['slave_build'].join('src', 'third_party')) cwd=api.infra_paths['slave_build'].join('src', 'third_party'))
api.gclient.break_locks() api.gclient.break_locks()
......
DEPS = [ DEPS = [
'infra_paths',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/platform', 'recipe_engine/platform',
'recipe_engine/properties', 'recipe_engine/properties',
......
...@@ -175,7 +175,7 @@ class GitApi(recipe_api.RecipeApi): ...@@ -175,7 +175,7 @@ class GitApi(recipe_api.RecipeApi):
# ex: ssh://host:repo/foobar/.git # ex: ssh://host:repo/foobar/.git
dir_path = dir_path or dir_path.rsplit('/', 1)[-1] dir_path = dir_path or dir_path.rsplit('/', 1)[-1]
dir_path = self.m.path['slave_build'].join(dir_path) dir_path = self.m.infra_paths['slave_build'].join(dir_path)
if 'checkout' not in self.m.path: if 'checkout' not in self.m.path:
self.m.path['checkout'] = dir_path self.m.path['checkout'] = dir_path
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -112,7 +111,7 @@ ...@@ -112,7 +111,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -123,7 +122,7 @@ ...@@ -123,7 +122,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -131,7 +130,7 @@ ...@@ -131,7 +130,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -147,7 +146,7 @@ ...@@ -147,7 +146,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -164,10 +163,10 @@ ...@@ -164,10 +163,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"testing", "testing",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -112,7 +111,7 @@ ...@@ -112,7 +111,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -123,7 +122,7 @@ ...@@ -123,7 +122,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -131,7 +130,7 @@ ...@@ -131,7 +130,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -147,7 +146,7 @@ ...@@ -147,7 +146,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -164,10 +163,10 @@ ...@@ -164,10 +163,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -33,7 +32,7 @@ ...@@ -33,7 +32,7 @@
"--", "--",
"DEPS" "DEPS"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -42,7 +41,7 @@ ...@@ -42,7 +41,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -57,7 +56,7 @@ ...@@ -57,7 +56,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -66,7 +65,7 @@ ...@@ -66,7 +65,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -77,7 +76,7 @@ ...@@ -77,7 +76,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -88,7 +87,7 @@ ...@@ -88,7 +87,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -99,7 +98,7 @@ ...@@ -99,7 +98,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -114,7 +113,7 @@ ...@@ -114,7 +113,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -125,7 +124,7 @@ ...@@ -125,7 +124,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -133,7 +132,7 @@ ...@@ -133,7 +132,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -141,7 +140,7 @@ ...@@ -141,7 +140,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -149,7 +148,7 @@ ...@@ -149,7 +148,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -158,7 +157,7 @@ ...@@ -158,7 +157,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -166,10 +165,10 @@ ...@@ -166,10 +165,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -20,7 +19,7 @@ ...@@ -20,7 +19,7 @@
"origin", "origin",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -30,7 +29,7 @@ ...@@ -30,7 +29,7 @@
"-f", "-f",
"abcdef0123456789abcdef0123456789abcdef01" "abcdef0123456789abcdef0123456789abcdef01"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -39,7 +38,7 @@ ...@@ -39,7 +38,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -54,7 +53,7 @@ ...@@ -54,7 +53,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -63,7 +62,7 @@ ...@@ -63,7 +62,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -74,7 +73,7 @@ ...@@ -74,7 +73,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -85,7 +84,7 @@ ...@@ -85,7 +84,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -96,7 +95,7 @@ ...@@ -96,7 +95,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -111,7 +110,7 @@ ...@@ -111,7 +110,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -122,7 +121,7 @@ ...@@ -122,7 +121,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -130,7 +129,7 @@ ...@@ -130,7 +129,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -138,7 +137,7 @@ ...@@ -138,7 +137,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -146,7 +145,7 @@ ...@@ -146,7 +145,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -155,7 +154,7 @@ ...@@ -155,7 +154,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -163,10 +162,10 @@ ...@@ -163,10 +162,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"refs/foo/bar", "refs/foo/bar",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -112,7 +111,7 @@ ...@@ -112,7 +111,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -123,7 +122,7 @@ ...@@ -123,7 +122,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -131,7 +130,7 @@ ...@@ -131,7 +130,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -147,7 +146,7 @@ ...@@ -147,7 +146,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -164,10 +163,10 @@ ...@@ -164,10 +163,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -76,7 +75,7 @@ ...@@ -76,7 +75,7 @@
"--recursive", "--recursive",
"--force" "--force"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -87,7 +86,7 @@ ...@@ -87,7 +86,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -98,7 +97,7 @@ ...@@ -98,7 +97,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -113,7 +112,7 @@ ...@@ -113,7 +112,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -124,7 +123,7 @@ ...@@ -124,7 +123,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -132,7 +131,7 @@ ...@@ -132,7 +131,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -140,7 +139,7 @@ ...@@ -140,7 +139,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -148,7 +147,7 @@ ...@@ -148,7 +147,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -157,7 +156,7 @@ ...@@ -157,7 +156,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -165,10 +164,10 @@ ...@@ -165,10 +164,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -112,7 +111,7 @@ ...@@ -112,7 +111,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -123,7 +122,7 @@ ...@@ -123,7 +122,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -131,7 +130,7 @@ ...@@ -131,7 +130,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build", "name": "git status can_fail_build",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -112,7 +111,7 @@ ...@@ -112,7 +111,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -123,7 +122,7 @@ ...@@ -123,7 +122,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -131,7 +130,7 @@ ...@@ -131,7 +130,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -147,7 +146,7 @@ ...@@ -147,7 +146,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build", "name": "git status cannot_fail_build",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
...@@ -160,7 +159,7 @@ ...@@ -160,7 +159,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -168,10 +167,10 @@ ...@@ -168,10 +167,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"abcdef12345", "abcdef12345",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -112,7 +111,7 @@ ...@@ -112,7 +111,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -123,7 +122,7 @@ ...@@ -123,7 +122,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -131,7 +130,7 @@ ...@@ -131,7 +130,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -147,7 +146,7 @@ ...@@ -147,7 +146,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -166,7 +165,7 @@ ...@@ -166,7 +165,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags (2)", "name": "git fetch tags (2)",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -177,7 +176,7 @@ ...@@ -177,7 +176,7 @@
"blob", "blob",
"abcdef12345:TestFile" "abcdef12345:TestFile"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git cat-file abcdef12345:TestFile", "name": "git cat-file abcdef12345:TestFile",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -186,10 +185,10 @@ ...@@ -186,10 +185,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -18,7 +17,7 @@ ...@@ -18,7 +17,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects before git fetch", "name": "count-objects before git fetch",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -42,7 +41,7 @@ ...@@ -42,7 +41,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -51,7 +50,7 @@ ...@@ -51,7 +50,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects after git fetch", "name": "count-objects after git fetch",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -104,7 +103,7 @@ ...@@ -104,7 +103,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -113,7 +112,7 @@ ...@@ -113,7 +112,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -128,7 +127,7 @@ ...@@ -128,7 +127,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -137,7 +136,7 @@ ...@@ -137,7 +136,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -148,7 +147,7 @@ ...@@ -148,7 +147,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -159,7 +158,7 @@ ...@@ -159,7 +158,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -170,7 +169,7 @@ ...@@ -170,7 +169,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -185,7 +184,7 @@ ...@@ -185,7 +184,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -196,7 +195,7 @@ ...@@ -196,7 +195,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -204,7 +203,7 @@ ...@@ -204,7 +203,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -212,7 +211,7 @@ ...@@ -212,7 +211,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -220,7 +219,7 @@ ...@@ -220,7 +219,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -229,7 +228,7 @@ ...@@ -229,7 +228,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -237,10 +236,10 @@ ...@@ -237,10 +236,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -101,7 +100,7 @@ ...@@ -101,7 +100,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -116,7 +115,7 @@ ...@@ -116,7 +115,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -127,7 +126,7 @@ ...@@ -127,7 +126,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -135,7 +134,7 @@ ...@@ -135,7 +134,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -143,7 +142,7 @@ ...@@ -143,7 +142,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -151,7 +150,7 @@ ...@@ -151,7 +150,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -160,7 +159,7 @@ ...@@ -160,7 +159,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -168,10 +167,10 @@ ...@@ -168,10 +167,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -102,7 +101,7 @@ ...@@ -102,7 +101,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -117,7 +116,7 @@ ...@@ -117,7 +116,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -128,7 +127,7 @@ ...@@ -128,7 +127,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -136,7 +135,7 @@ ...@@ -136,7 +135,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -144,7 +143,7 @@ ...@@ -144,7 +143,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -152,7 +151,7 @@ ...@@ -152,7 +151,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -161,7 +160,7 @@ ...@@ -161,7 +160,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -169,10 +168,10 @@ ...@@ -169,10 +168,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,12 +20,12 @@ ...@@ -21,12 +20,12 @@
"refs/foo/bar", "refs/foo/bar",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"env": { "env": {
"GIT_CURL_VERBOSE": "1" "GIT_CURL_VERBOSE": "1"
}, },
"name": "git fetch", "name": "git fetch",
"stderr": "[SLAVE_BUILD]/curl_trace.log" "stderr": "[CWD]/curl_trace.log"
}, },
{ {
"cmd": [ "cmd": [
...@@ -35,7 +34,7 @@ ...@@ -35,7 +34,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -44,7 +43,7 @@ ...@@ -44,7 +43,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -59,7 +58,7 @@ ...@@ -59,7 +58,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -68,7 +67,7 @@ ...@@ -68,7 +67,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -79,7 +78,7 @@ ...@@ -79,7 +78,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -90,7 +89,7 @@ ...@@ -90,7 +89,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -101,7 +100,7 @@ ...@@ -101,7 +100,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -116,7 +115,7 @@ ...@@ -116,7 +115,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -127,7 +126,7 @@ ...@@ -127,7 +126,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -135,7 +134,7 @@ ...@@ -135,7 +134,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -143,7 +142,7 @@ ...@@ -143,7 +142,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -151,7 +150,7 @@ ...@@ -151,7 +150,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -160,7 +159,7 @@ ...@@ -160,7 +159,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -168,10 +167,10 @@ ...@@ -168,10 +167,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -12,13 +12,12 @@ ...@@ -12,13 +12,12 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]\\resources\\git_setup.py", "RECIPE_MODULE[depot_tools::git]\\resources\\git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]\\src", "[CWD]\\src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git", "https://chromium.googlesource.com/chromium/src.git",
"--git_cmd_path", "--git_cmd_path",
"RECIPE_PACKAGE_REPO[depot_tools]\\git.bat" "RECIPE_PACKAGE_REPO[depot_tools]\\git.bat"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -30,7 +29,7 @@ ...@@ -30,7 +29,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -49,7 +48,7 @@ ...@@ -49,7 +48,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -84,7 +83,7 @@ ...@@ -84,7 +83,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -95,7 +94,7 @@ ...@@ -95,7 +94,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -106,7 +105,7 @@ ...@@ -106,7 +105,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -121,7 +120,7 @@ ...@@ -121,7 +120,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -132,7 +131,7 @@ ...@@ -132,7 +131,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -140,7 +139,7 @@ ...@@ -140,7 +139,7 @@
"RECIPE_PACKAGE_REPO[depot_tools]\\git.bat", "RECIPE_PACKAGE_REPO[depot_tools]\\git.bat",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -148,7 +147,7 @@ ...@@ -148,7 +147,7 @@
"RECIPE_PACKAGE_REPO[depot_tools]\\git.bat", "RECIPE_PACKAGE_REPO[depot_tools]\\git.bat",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
"RECIPE_PACKAGE_REPO[depot_tools]\\git.bat", "RECIPE_PACKAGE_REPO[depot_tools]\\git.bat",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -165,7 +164,7 @@ ...@@ -165,7 +164,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -173,10 +172,10 @@ ...@@ -173,10 +172,10 @@
"RECIPE_PACKAGE_REPO[depot_tools]\\git.bat", "RECIPE_PACKAGE_REPO[depot_tools]\\git.bat",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]\\all.bundle", "[CWD]\\all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]\\src", "cwd": "[CWD]\\src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -55,7 +54,7 @@ ...@@ -55,7 +54,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -64,7 +63,7 @@ ...@@ -64,7 +63,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -75,7 +74,7 @@ ...@@ -75,7 +74,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -112,7 +111,7 @@ ...@@ -112,7 +111,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -123,7 +122,7 @@ ...@@ -123,7 +122,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -131,7 +130,7 @@ ...@@ -131,7 +130,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -147,7 +146,7 @@ ...@@ -147,7 +146,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -156,7 +155,7 @@ ...@@ -156,7 +155,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase", "name": "my repo rebase",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
...@@ -169,7 +168,7 @@ ...@@ -169,7 +168,7 @@
"rebase", "rebase",
"--abort" "--abort"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase abort" "name": "my repo rebase abort"
}, },
{ {
......
...@@ -5,13 +5,12 @@ ...@@ -5,13 +5,12 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git", "https://chromium.googlesource.com/chromium/src.git",
"--remote", "--remote",
"not_origin" "not_origin"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -23,7 +22,7 @@ ...@@ -23,7 +22,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -33,7 +32,7 @@ ...@@ -33,7 +32,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -42,7 +41,7 @@ ...@@ -42,7 +41,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -57,7 +56,7 @@ ...@@ -57,7 +56,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -66,7 +65,7 @@ ...@@ -66,7 +65,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -77,7 +76,7 @@ ...@@ -77,7 +76,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -88,7 +87,7 @@ ...@@ -88,7 +87,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -99,7 +98,7 @@ ...@@ -99,7 +98,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -114,7 +113,7 @@ ...@@ -114,7 +113,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -125,7 +124,7 @@ ...@@ -125,7 +124,7 @@
"not_origin", "not_origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -133,7 +132,7 @@ ...@@ -133,7 +132,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -141,7 +140,7 @@ ...@@ -141,7 +140,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -149,7 +148,7 @@ ...@@ -149,7 +148,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -158,7 +157,7 @@ ...@@ -158,7 +157,7 @@
"rebase", "rebase",
"not_origin/master" "not_origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -166,10 +165,10 @@ ...@@ -166,10 +165,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
"-u", "-u",
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
"--path", "--path",
"[SLAVE_BUILD]/src", "[CWD]/src",
"--url", "--url",
"https://chromium.googlesource.com/chromium/src.git" "https://chromium.googlesource.com/chromium/src.git"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "git setup" "name": "git setup"
}, },
{ {
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
"master", "master",
"--recurse-submodules" "--recurse-submodules"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch" "name": "git fetch"
}, },
{ {
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git checkout" "name": "git checkout"
}, },
{ {
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
"rev-parse", "rev-parse",
"HEAD" "HEAD"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "read revision", "name": "read revision",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -56,7 +55,7 @@ ...@@ -56,7 +55,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git clean" "name": "git clean"
}, },
{ {
...@@ -65,7 +64,7 @@ ...@@ -65,7 +64,7 @@
"submodule", "submodule",
"sync" "sync"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule sync" "name": "submodule sync"
}, },
{ {
...@@ -76,7 +75,7 @@ ...@@ -76,7 +75,7 @@
"--init", "--init",
"--recursive" "--recursive"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "submodule update" "name": "submodule update"
}, },
{ {
...@@ -87,7 +86,7 @@ ...@@ -87,7 +86,7 @@
"count-objects", "count-objects",
"-v" "-v"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "count-objects", "name": "count-objects",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -98,7 +97,7 @@ ...@@ -98,7 +97,7 @@
"--get", "--get",
"remote.origin.url" "remote.origin.url"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git config remote.origin.url", "name": "git config remote.origin.url",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -113,7 +112,7 @@ ...@@ -113,7 +112,7 @@
"--format=%at", "--format=%at",
"-s" "-s"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git show", "name": "git show",
"stdout": "/path/to/tmp/" "stdout": "/path/to/tmp/"
}, },
...@@ -124,7 +123,7 @@ ...@@ -124,7 +123,7 @@
"origin", "origin",
"--tags" "--tags"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git fetch tags" "name": "git fetch tags"
}, },
{ {
...@@ -132,7 +131,7 @@ ...@@ -132,7 +131,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status" "name": "git status"
}, },
{ {
...@@ -140,7 +139,7 @@ ...@@ -140,7 +139,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status can_fail_build" "name": "git status can_fail_build"
}, },
{ {
...@@ -148,7 +147,7 @@ ...@@ -148,7 +147,7 @@
"git", "git",
"status" "status"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git status cannot_fail_build" "name": "git status cannot_fail_build"
}, },
{ {
...@@ -157,7 +156,7 @@ ...@@ -157,7 +156,7 @@
"rebase", "rebase",
"origin/master" "origin/master"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "my repo rebase" "name": "my repo rebase"
}, },
{ {
...@@ -165,10 +164,10 @@ ...@@ -165,10 +164,10 @@
"git", "git",
"bundle", "bundle",
"create", "create",
"[SLAVE_BUILD]/all.bundle", "[CWD]/all.bundle",
"--all" "--all"
], ],
"cwd": "[SLAVE_BUILD]/src", "cwd": "[CWD]/src",
"name": "git bundle" "name": "git bundle"
}, },
{ {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
DEPS = [ DEPS = [
'git', 'git',
'infra_paths',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/platform', 'recipe_engine/platform',
'recipe_engine/properties', 'recipe_engine/properties',
...@@ -19,7 +20,7 @@ def RunSteps(api): ...@@ -19,7 +20,7 @@ def RunSteps(api):
# useful for debugging git access issues that are reproducible only on bots. # useful for debugging git access issues that are reproducible only on bots.
curl_trace_file = None curl_trace_file = None
if api.properties.get('use_curl_trace'): if api.properties.get('use_curl_trace'):
curl_trace_file = api.path['slave_build'].join('curl_trace.log') curl_trace_file = api.infra_paths['slave_build'].join('curl_trace.log')
submodule_update_force = api.properties.get('submodule_update_force', False) submodule_update_force = api.properties.get('submodule_update_force', False)
submodule_update_recursive = api.properties.get('submodule_update_recursive', submodule_update_recursive = api.properties.get('submodule_update_recursive',
...@@ -80,7 +81,7 @@ def RunSteps(api): ...@@ -80,7 +81,7 @@ def RunSteps(api):
# Bundle the repository. # Bundle the repository.
api.git.bundle_create( api.git.bundle_create(
api.path['slave_build'].join('all.bundle')) api.infra_paths['slave_build'].join('all.bundle'))
def GenTests(api): def GenTests(api):
......
DEPS = [
'recipe_engine/path',
'recipe_engine/platform',
'recipe_engine/properties',
]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine import recipe_api
class InfraPathsApi(recipe_api.RecipeApi):
def get_config_defaults(self):
return {
'PLATFORM': self.m.platform.name,
'CURRENT_WORKING_DIR': self.m.path['cwd'],
'ROOT': self.m.path['root'],
}
def __init__(self, **kwargs):
super(InfraPathsApi, self).__init__(**kwargs)
self._config_set = False
def _lazy_set_config(self):
if self._config_set:
return
self._config_set = True
path_config = self.m.properties.get('path_config')
if path_config in ('kitchen',):
self.set_config(path_config)
else:
self.set_config('buildbot')
def __getitem__(self, name):
self._lazy_set_config()
return self.c.paths[name]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine.config import config_item_context, ConfigGroup, Dict, Static
from recipe_engine.config_types import Path
def BaseConfig(PLATFORM, CURRENT_WORKING_DIR, ROOT, **_kwargs):
return ConfigGroup(
paths = Dict(value_type=Path),
PLATFORM = Static(PLATFORM),
CURRENT_WORKING_DIR = Static(CURRENT_WORKING_DIR),
ROOT = Static(ROOT),
)
config_ctx = config_item_context(BaseConfig)
@config_ctx()
def buildbot(c):
c.paths['root'] = c.ROOT.join('b')
c.paths['slave_build'] = c.CURRENT_WORKING_DIR
c.paths['cache'] = c.paths['root'].join(
'build', 'slave', 'cache')
c.paths['git_cache'] = c.paths['root'].join(
'build', 'slave', 'cache_dir')
c.paths['goma_cache'] = c.paths['root'].join(
'build', 'slave', 'goma_cache')
for token in ('build_internal', 'build', 'depot_tools'):
c.paths[token] = c.paths['root'].join(token,)
@config_ctx()
def kitchen(c):
c.paths['root'] = c.CURRENT_WORKING_DIR
c.paths['slave_build'] = c.CURRENT_WORKING_DIR
# TODO(phajdan.jr): have one cache dir, let clients append suffixes.
# TODO(phajdan.jr): set persistent cache path for remaining platforms.
# NOTE: do not use /b/swarm_slave here - it gets deleted on bot redeploy,
# and may happen even after a reboot.
if c.PLATFORM == 'linux':
c.paths['cache'] = c.ROOT.join(
'b', 'cache', 'chromium')
c.paths['git_cache'] = c.ROOT.join(
'b', 'cache', 'chromium', 'git_cache')
c.paths['goma_cache'] = c.ROOT.join(
'b', 'cache', 'chromium', 'goma_cache')
else:
c.paths['cache'] = c.paths['root'].join('cache')
c.paths['git_cache'] = c.paths['root'].join('cache_dir')
c.paths['goma_cache'] = c.paths['root'].join('goma_cache')
[
{
"cmd": [],
"cwd": "[CWD]",
"name": "step"
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
}
]
\ No newline at end of file
[
{
"cmd": [],
"cwd": "[CWD]",
"name": "step"
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
}
]
\ No newline at end of file
[
{
"cmd": [],
"cwd": "[CWD]",
"name": "step"
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
}
]
\ No newline at end of file
[
{
"cmd": [],
"cwd": "[CWD]",
"name": "step"
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
}
]
\ No newline at end of file
[
{
"cmd": [],
"cwd": "[CWD]",
"name": "step"
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
}
]
\ No newline at end of file
[
{
"cmd": [],
"cwd": "[CWD]",
"name": "step"
},
{
"name": "$result",
"recipe_result": null,
"status_code": 0
}
]
\ No newline at end of file
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'infra_paths',
'recipe_engine/platform',
'recipe_engine/properties',
'recipe_engine/step',
]
from recipe_engine.config_types import Path
def RunSteps(api):
api.step('step', [], cwd=api.infra_paths['slave_build'])
def GenTests(api):
for platform in ('linux', 'win', 'mac'):
yield (api.test(platform) + api.platform.name(platform))
yield (api.test('%s_kitchen' % platform) +
api.platform.name(platform) +
api.properties(path_config='kitchen'))
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
"-u", "-u",
"RECIPE_PACKAGE_REPO[depot_tools]/presubmit_support.py" "RECIPE_PACKAGE_REPO[depot_tools]/presubmit_support.py"
], ],
"cwd": "[SLAVE_BUILD]",
"env": { "env": {
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
}, },
......
DEPS = [ DEPS = [
'infra_paths',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/properties', 'recipe_engine/properties',
'recipe_engine/python', 'recipe_engine/python',
......
...@@ -67,22 +67,22 @@ class RietveldApi(recipe_api.RecipeApi): ...@@ -67,22 +67,22 @@ class RietveldApi(recipe_api.RecipeApi):
if authentication == 'oauth2': if authentication == 'oauth2':
step_result = self.m.python( step_result = self.m.python(
'apply_issue', 'apply_issue',
self.m.path['depot_tools'].join('apply_issue.py'), [ self.m.infra_paths['depot_tools'].join('apply_issue.py'), [
'-r', self.m.path['checkout'].join(*root_pieces), '-r', self.m.path['checkout'].join(*root_pieces),
'-i', issue_number, '-i', issue_number,
'-p', self.m.properties['patchset'], '-p', self.m.properties['patchset'],
'-s', rietveld_url, '-s', rietveld_url,
'-E', self.m.path['build'].join('site_config', '-E', self.m.infra_paths['build'].join(
'.rietveld_client_email'), 'site_config', '.rietveld_client_email'),
'-k', self.m.path['build'].join('site_config', '-k', self.m.infra_paths['build'].join(
'.rietveld_secret_key') 'site_config', '.rietveld_secret_key')
], ],
) )
else: else:
step_result = self.m.python( step_result = self.m.python(
'apply_issue', 'apply_issue',
self.m.path['depot_tools'].join('apply_issue.py'), [ self.m.infra_paths['depot_tools'].join('apply_issue.py'), [
'-r', self.m.path['checkout'].join(*root_pieces), '-r', self.m.path['checkout'].join(*root_pieces),
'-i', issue_number, '-i', issue_number,
'-p', self.m.properties['patchset'], '-p', self.m.properties['patchset'],
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
"cmd": [ "cmd": [
"python", "python",
"-u", "-u",
"[DEPOT_TOOLS]/apply_issue.py", "[ROOT]/b/depot_tools/apply_issue.py",
"-r", "-r",
"[SLAVE_BUILD]/foo/bar", "[CWD]/foo/bar",
"-i", "-i",
"1", "1",
"-p", "-p",
...@@ -13,11 +13,10 @@ ...@@ -13,11 +13,10 @@
"-s", "-s",
"http://review_tool.url", "http://review_tool.url",
"-E", "-E",
"[BUILD]/site_config/.rietveld_client_email", "[ROOT]/b/build/site_config/.rietveld_client_email",
"-k", "-k",
"[BUILD]/site_config/.rietveld_secret_key" "[ROOT]/b/build/site_config/.rietveld_secret_key"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "apply_issue", "name": "apply_issue",
"~followup_annotations": [ "~followup_annotations": [
"@@@STEP_LINK@Applied issue 1@http://review_tool.url/1@@@" "@@@STEP_LINK@Applied issue 1@http://review_tool.url/1@@@"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
DEPS = [ DEPS = [
'infra_paths',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/properties', 'recipe_engine/properties',
'recipe_engine/step', 'recipe_engine/step',
...@@ -10,7 +11,7 @@ DEPS = [ ...@@ -10,7 +11,7 @@ DEPS = [
] ]
def RunSteps(api): def RunSteps(api):
api.path['checkout'] = api.path['slave_build'] api.path['checkout'] = api.infra_paths['slave_build']
api.rietveld.apply_issue('foo', 'bar', authentication='oauth2') api.rietveld.apply_issue('foo', 'bar', authentication='oauth2')
api.rietveld.calculate_issue_root({'project': ['']}) api.rietveld.calculate_issue_root({'project': ['']})
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
DEPS = [ DEPS = [
'git', 'git',
'infra_paths',
'recipe_engine/json', 'recipe_engine/json',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/platform', 'recipe_engine/platform',
......
...@@ -100,7 +100,8 @@ class TryserverApi(recipe_api.RecipeApi): ...@@ -100,7 +100,8 @@ class TryserverApi(recipe_api.RecipeApi):
patch_ref = self.m.properties['patch_ref'] patch_ref = self.m.properties['patch_ref']
patch_dir = self.m.path.mkdtemp('patch') patch_dir = self.m.path.mkdtemp('patch')
git_setup_py = self.m.path['build'].join('scripts', 'slave', 'git_setup.py') git_setup_py = self.m.infra_paths['build'].join(
'scripts', 'slave', 'git_setup.py')
git_setup_args = ['--path', patch_dir, '--url', patch_repo_url] git_setup_args = ['--path', patch_dir, '--url', patch_repo_url]
patch_path = patch_dir.join('patch.diff') patch_path = patch_dir.join('patch.diff')
......
...@@ -3,13 +3,12 @@ ...@@ -3,13 +3,12 @@
"cmd": [ "cmd": [
"python", "python",
"-u", "-u",
"[BUILD]/scripts/slave/git_setup.py", "[ROOT]/b/build/scripts/slave/git_setup.py",
"--path", "--path",
"[TMP_BASE]/patch_tmp_1", "[TMP]/patch_tmp_1",
"--url", "--url",
"http://patch.url/" "http://patch.url/"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "patch git setup" "name": "patch git setup"
}, },
{ {
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
"origin", "origin",
"johndoe#123.diff" "johndoe#123.diff"
], ],
"cwd": "[TMP_BASE]/patch_tmp_1", "cwd": "[TMP]/patch_tmp_1",
"name": "patch fetch" "name": "patch fetch"
}, },
{ {
...@@ -30,7 +29,7 @@ ...@@ -30,7 +29,7 @@
"-d", "-d",
"-x" "-x"
], ],
"cwd": "[TMP_BASE]/patch_tmp_1", "cwd": "[TMP]/patch_tmp_1",
"name": "patch clean" "name": "patch clean"
}, },
{ {
...@@ -40,32 +39,30 @@ ...@@ -40,32 +39,30 @@
"-f", "-f",
"FETCH_HEAD" "FETCH_HEAD"
], ],
"cwd": "[TMP_BASE]/patch_tmp_1", "cwd": "[TMP]/patch_tmp_1",
"name": "patch git checkout" "name": "patch git checkout"
}, },
{ {
"cmd": [ "cmd": [
"patch", "patch",
"--dir", "--dir",
"[SLAVE_BUILD]", "[CWD]",
"--force", "--force",
"--forward", "--forward",
"--remove-empty-files", "--remove-empty-files",
"--strip", "--strip",
"0", "0",
"--input", "--input",
"[TMP_BASE]/patch_tmp_1/patch.diff" "[TMP]/patch_tmp_1/patch.diff"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "apply patch" "name": "apply patch"
}, },
{ {
"cmd": [ "cmd": [
"rm", "rm",
"-rf", "-rf",
"[TMP_BASE]/patch_tmp_1" "[TMP]/patch_tmp_1"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "remove patch" "name": "remove patch"
}, },
{ {
...@@ -75,7 +72,7 @@ ...@@ -75,7 +72,7 @@
"--cached", "--cached",
"--name-only" "--name-only"
], ],
"cwd": "[SLAVE_BUILD]/v8", "cwd": "[CWD]/v8",
"name": "git diff to analyze patch", "name": "git diff to analyze patch",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -91,7 +88,6 @@ ...@@ -91,7 +88,6 @@
"-u", "-u",
"import sys; sys.exit(1)" "import sys; sys.exit(1)"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "fail", "name": "fail",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
"cmd": [ "cmd": [
"python", "python",
"-u", "-u",
"[DEPOT_TOOLS]/apply_issue.py", "[ROOT]/b/depot_tools/apply_issue.py",
"-r", "-r",
"[SLAVE_BUILD]", "[CWD]",
"-i", "-i",
"12853011", "12853011",
"-p", "-p",
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
"https://codereview.chromium.org", "https://codereview.chromium.org",
"--no-auth" "--no-auth"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "apply_issue", "name": "apply_issue",
"~followup_annotations": [ "~followup_annotations": [
"@@@STEP_LINK@Applied issue 12853011@https://codereview.chromium.org/12853011@@@" "@@@STEP_LINK@Applied issue 12853011@https://codereview.chromium.org/12853011@@@"
...@@ -27,7 +26,7 @@ ...@@ -27,7 +26,7 @@
"--cached", "--cached",
"--name-only" "--name-only"
], ],
"cwd": "[SLAVE_BUILD]", "cwd": "[CWD]",
"name": "git diff to analyze patch", "name": "git diff to analyze patch",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -43,7 +42,6 @@ ...@@ -43,7 +42,6 @@
"-u", "-u",
"import sys; sys.exit(1)" "import sys; sys.exit(1)"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "fail", "name": "fail",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
"svn://checkout.url", "svn://checkout.url",
"/path/to/tmp/diff" "/path/to/tmp/diff"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "download patch", "name": "download patch",
"~followup_annotations": [ "~followup_annotations": [
"@@@STEP_LOG_LINE@patch.diff@fake patch.diff content (line 1)@@@", "@@@STEP_LOG_LINE@patch.diff@fake patch.diff content (line 1)@@@",
...@@ -20,14 +19,13 @@ ...@@ -20,14 +19,13 @@
"cmd": [ "cmd": [
"patch", "patch",
"--dir", "--dir",
"[SLAVE_BUILD]", "[CWD]",
"--force", "--force",
"--forward", "--forward",
"--remove-empty-files", "--remove-empty-files",
"--strip", "--strip",
"0" "0"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "apply patch", "name": "apply patch",
"stdin": "fake patch.diff content (line 1)\nfake patch.diff content (line 2)\n" "stdin": "fake patch.diff content (line 1)\nfake patch.diff content (line 2)\n"
}, },
...@@ -38,7 +36,7 @@ ...@@ -38,7 +36,7 @@
"--cached", "--cached",
"--name-only" "--name-only"
], ],
"cwd": "[SLAVE_BUILD]", "cwd": "[CWD]",
"name": "git diff to analyze patch", "name": "git diff to analyze patch",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -54,7 +52,6 @@ ...@@ -54,7 +52,6 @@
"-u", "-u",
"import sys; sys.exit(1)" "import sys; sys.exit(1)"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "fail", "name": "fail",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"--cached", "--cached",
"--name-only" "--name-only"
], ],
"cwd": "[SLAVE_BUILD]", "cwd": "[CWD]",
"name": "git diff to analyze patch", "name": "git diff to analyze patch",
"stdout": "/path/to/tmp/", "stdout": "/path/to/tmp/",
"~followup_annotations": [ "~followup_annotations": [
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
"-u", "-u",
"import sys; sys.exit(1)" "import sys; sys.exit(1)"
], ],
"cwd": "[SLAVE_BUILD]",
"name": "fail", "name": "fail",
"~followup_annotations": [ "~followup_annotations": [
"step returned non-zero exit code: 1", "step returned non-zero exit code: 1",
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
DEPS = [ DEPS = [
'infra_paths',
'recipe_engine/path', 'recipe_engine/path',
'recipe_engine/platform', 'recipe_engine/platform',
'recipe_engine/properties', 'recipe_engine/properties',
...@@ -12,7 +13,7 @@ DEPS = [ ...@@ -12,7 +13,7 @@ DEPS = [
def RunSteps(api): def RunSteps(api):
api.path['checkout'] = api.path['slave_build'] api.path['checkout'] = api.infra_paths['slave_build']
api.tryserver.maybe_apply_issue() api.tryserver.maybe_apply_issue()
api.tryserver.get_files_affected_by_patch() api.tryserver.get_files_affected_by_patch()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment