Generalize patch_project to patch root conversion.
IMPORTANT: See bug http://crbug.com/605563#c3 for deployment and emergency roll-back plan. This patch is first of a series. It provides a cleaner and generic way to apply patches to non-root of first solution. R=phajdan.jr@chromium.org,machenbach@chromium.org BUG=605563 Review URL: https://codereview.chromium.org/1917433002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@300141 0039d316-1c4b-4281-b951-d872f2087c98changes/60/343160/1
parent
ff8ce0e5a0
commit
cb3fd431fd
@ -0,0 +1,59 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
|
"RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
|
||||||
|
"--master",
|
||||||
|
"tryserver.chromium.linux",
|
||||||
|
"--builder",
|
||||||
|
"linux_rel",
|
||||||
|
"--slave",
|
||||||
|
"totallyaslave-c4",
|
||||||
|
"--spec",
|
||||||
|
"cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
|
||||||
|
"--root",
|
||||||
|
"src",
|
||||||
|
"--revision_mapping_file",
|
||||||
|
"{\"src\": \"got_cr_revision\"}",
|
||||||
|
"--git-cache-dir",
|
||||||
|
"[GIT_CACHE]",
|
||||||
|
"--patch_url",
|
||||||
|
"http://src.chromium.org/foo/bar",
|
||||||
|
"--output_json",
|
||||||
|
"/path/to/tmp/json",
|
||||||
|
"--revision",
|
||||||
|
"src@HEAD"
|
||||||
|
],
|
||||||
|
"cwd": "[SLAVE_BUILD]",
|
||||||
|
"env": {
|
||||||
|
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
|
||||||
|
},
|
||||||
|
"name": "bot_update",
|
||||||
|
"~followup_annotations": [
|
||||||
|
"@@@STEP_TEXT@Some step text@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@{@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"src\": \"HEAD\"@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"got_cr_revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\", @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"got_cr_revision_cp\": \"refs/heads/master@{#170242}\"@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@}@@@",
|
||||||
|
"@@@STEP_LOG_END@json.output@@@",
|
||||||
|
"@@@SET_BUILD_PROPERTY@got_cr_revision@\"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
|
||||||
|
"@@@SET_BUILD_PROPERTY@got_cr_revision_cp@\"refs/heads/master@{#170242}\"@@@"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$result",
|
||||||
|
"recipe_result": null,
|
||||||
|
"status_code": 0
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,50 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
|
"RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
|
||||||
|
"--master",
|
||||||
|
"chromium.testing.master",
|
||||||
|
"--builder",
|
||||||
|
"TestBuilder",
|
||||||
|
"--slave",
|
||||||
|
"TestSlavename",
|
||||||
|
"--spec",
|
||||||
|
"cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
|
||||||
|
"--root",
|
||||||
|
"src/third_party/angle",
|
||||||
|
"--revision_mapping_file",
|
||||||
|
"{\"src\": \"got_cr_revision\"}",
|
||||||
|
"--git-cache-dir",
|
||||||
|
"[GIT_CACHE]",
|
||||||
|
"--gerrit_repo",
|
||||||
|
"https://chromium.googlesource.com/angle/angle",
|
||||||
|
"--gerrit_ref",
|
||||||
|
"refs/changes/11/338811/3",
|
||||||
|
"--output_json",
|
||||||
|
"/path/to/tmp/json",
|
||||||
|
"--revision",
|
||||||
|
"src@HEAD",
|
||||||
|
"--revision",
|
||||||
|
"src/third_party/angle@HEAD"
|
||||||
|
],
|
||||||
|
"cwd": "[SLAVE_BUILD]",
|
||||||
|
"env": {
|
||||||
|
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
|
||||||
|
},
|
||||||
|
"name": "bot_update",
|
||||||
|
"~followup_annotations": [
|
||||||
|
"@@@STEP_LOG_LINE@json.output@{@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"did_run\": false, @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@}@@@",
|
||||||
|
"@@@STEP_LOG_END@json.output@@@"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$result",
|
||||||
|
"recipe_result": null,
|
||||||
|
"status_code": 0
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,52 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"python",
|
||||||
|
"-u",
|
||||||
|
"RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
|
||||||
|
"--master",
|
||||||
|
"chromium.testing.master",
|
||||||
|
"--builder",
|
||||||
|
"TestBuilder",
|
||||||
|
"--slave",
|
||||||
|
"TestSlavename",
|
||||||
|
"--spec",
|
||||||
|
"cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]",
|
||||||
|
"--root",
|
||||||
|
"src/v8",
|
||||||
|
"--revision_mapping_file",
|
||||||
|
"{\"src\": \"got_cr_revision\"}",
|
||||||
|
"--git-cache-dir",
|
||||||
|
"[GIT_CACHE]",
|
||||||
|
"--issue",
|
||||||
|
"12853011",
|
||||||
|
"--patchset",
|
||||||
|
"1",
|
||||||
|
"--rietveld_server",
|
||||||
|
"https://codereview.chromium.org",
|
||||||
|
"--output_json",
|
||||||
|
"/path/to/tmp/json",
|
||||||
|
"--revision",
|
||||||
|
"src@HEAD",
|
||||||
|
"--revision",
|
||||||
|
"src/v8@HEAD"
|
||||||
|
],
|
||||||
|
"cwd": "[SLAVE_BUILD]",
|
||||||
|
"env": {
|
||||||
|
"PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
|
||||||
|
},
|
||||||
|
"name": "bot_update",
|
||||||
|
"~followup_annotations": [
|
||||||
|
"@@@STEP_LOG_LINE@json.output@{@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"did_run\": false, @@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false@@@",
|
||||||
|
"@@@STEP_LOG_LINE@json.output@}@@@",
|
||||||
|
"@@@STEP_LOG_END@json.output@@@"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "$result",
|
||||||
|
"recipe_result": null,
|
||||||
|
"status_code": 0
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue