[git] Stop using git-retry wrapper on LUCI.
The LUCI environment alreadly does `git retry` style retries by virtue of it's Go git-wrapper program. No need to put an extra python interpreter in the middle. R=hinoka@chromium.org, nodir@chromium.org Recipe-Nontrivial-Roll: infra Recipe-Nontrivial-Roll: build Change-Id: I2918d7f413dde667fccd45c83ad6f4b96c2afe2e Reviewed-on: https://chromium-review.googlesource.com/c/1292236 Commit-Queue: Robbie Iannucci <iannucci@chromium.org> Reviewed-by: Ryan Tseng <hinoka@chromium.org>changes/36/1292236/4
parent
93277a7fc8
commit
98f1e59b41
@ -1,10 +1,12 @@
|
||||
DEPS = [
|
||||
'infra_paths',
|
||||
'recipe_engine/context',
|
||||
'recipe_engine/runtime',
|
||||
'recipe_engine/path',
|
||||
'recipe_engine/platform',
|
||||
'recipe_engine/properties',
|
||||
'recipe_engine/python',
|
||||
'recipe_engine/raw_io',
|
||||
'recipe_engine/step',
|
||||
|
||||
'infra_paths',
|
||||
]
|
||||
|
@ -0,0 +1,223 @@
|
||||
[
|
||||
{
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
|
||||
"--path",
|
||||
"[START_DIR]/src",
|
||||
"--url",
|
||||
"https://chromium.googlesource.com/chromium/src.git"
|
||||
],
|
||||
"name": "git setup"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"fetch",
|
||||
"origin",
|
||||
"master",
|
||||
"--recurse-submodules",
|
||||
"--progress"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"env": {
|
||||
"PATH": "RECIPE_PACKAGE_REPO[depot_tools]:<PATH>"
|
||||
},
|
||||
"infra_step": true,
|
||||
"name": "git fetch"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"checkout",
|
||||
"-f",
|
||||
"FETCH_HEAD"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git checkout"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"rev-parse",
|
||||
"HEAD"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "read revision",
|
||||
"stdout": "/path/to/tmp/",
|
||||
"~followup_annotations": [
|
||||
"@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"clean",
|
||||
"-f",
|
||||
"-d",
|
||||
"-x"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git clean"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"submodule",
|
||||
"sync"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "submodule sync"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"submodule",
|
||||
"update",
|
||||
"--init",
|
||||
"--recursive"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "submodule update"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"-c",
|
||||
"foo=bar",
|
||||
"count-objects",
|
||||
"-v"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "count-objects",
|
||||
"stdout": "/path/to/tmp/"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"config",
|
||||
"--get",
|
||||
"remote.origin.url"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git config remote.origin.url",
|
||||
"stdout": "/path/to/tmp/",
|
||||
"~followup_annotations": [
|
||||
"@@@STEP_TEXT@foo@@@"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"show",
|
||||
"HEAD",
|
||||
"--format=%at",
|
||||
"-s"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git show",
|
||||
"stdout": "/path/to/tmp/"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"fetch",
|
||||
"origin",
|
||||
"--tags"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git fetch tags"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"status"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git status"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"status"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git status can_fail_build"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"status"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git status cannot_fail_build"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"new-branch",
|
||||
"refactor"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"env": {
|
||||
"PATH": "RECIPE_PACKAGE_REPO[depot_tools]:<PATH>"
|
||||
},
|
||||
"infra_step": true,
|
||||
"name": "git new-branch refactor"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"new-branch",
|
||||
"feature",
|
||||
"--upstream",
|
||||
"refactor"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"env": {
|
||||
"PATH": "RECIPE_PACKAGE_REPO[depot_tools]:<PATH>"
|
||||
},
|
||||
"infra_step": true,
|
||||
"name": "git new-branch feature"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"rebase",
|
||||
"origin/master"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "my repo rebase"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"git",
|
||||
"bundle",
|
||||
"create",
|
||||
"[START_DIR]/all.bundle",
|
||||
"--all"
|
||||
],
|
||||
"cwd": "[START_DIR]/src",
|
||||
"infra_step": true,
|
||||
"name": "git bundle"
|
||||
},
|
||||
{
|
||||
"name": "$result",
|
||||
"recipe_result": null,
|
||||
"status_code": 0
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue