blob: 96deb695f989796dd8f457fbb9f4f095f26a73e0 [file] [log] [blame]
[
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/codesearch_update_submodules_mirror"
],
"infra_step": true,
"name": "Create checkout parent dir"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"glob",
"[CACHE]/codesearch_update_submodules_mirror",
"src/"
],
"infra_step": true,
"name": "Check for existing source checkout dir",
"~followup_annotations": [
"@@@STEP_LOG_LINE@glob@[CACHE]/codesearch_update_submodules_mirror/src@@@",
"@@@STEP_LOG_END@glob@@@"
]
},
{
"cmd": [
"git",
"fetch",
"-t"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "git fetch"
},
{
"cmd": [],
"name": "Process refs/heads/master"
},
{
"cmd": [],
"name": "Process refs/heads/master.Check for new commits",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[depot_tools::gitiles]/resources/gerrit_client.py",
"--json-file",
"/path/to/tmp/json",
"--url",
"https://chromium.googlesource.com/codesearch/src_mirror/+log/refs/heads/master",
"--format",
"json",
"--log-limit",
"2"
],
"name": "Process refs/heads/master.Check for new commits.Find latest commit to target repo",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_TEXT@<br />1 commits fetched@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"log\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"author\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"Someone else\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"commit\": \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"git",
"checkout",
"refs/remotes/origin/master"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "Process refs/heads/master.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_REPO[depot_tools]/gclient.py",
"revinfo",
"--deps",
"all",
"--ignore-dep-type=cipd",
"--spec",
"solutions=[{'managed':False,'name':'src/','url':'https://chromium.googlesource.com/chromium/src','deps_file':'DEPS'}]",
"--output-json=-"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror",
"env_suffixes": {
"PATH": [
"RECIPE_REPO[depot_tools]"
]
},
"infra_step": true,
"name": "Process refs/heads/master.gclient evaluate DEPS",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"ls-remote",
"https://chromium.googlesource.com/v8/v8.git",
"master"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "Process refs/heads/master.git ls-remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"update-index",
"--add",
"--cacheinfo",
"160000,91c13923c1d136dc688527fa39583ef61a3277f7,v8"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "Process refs/heads/master.Add gitlinks",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[submodule \"v8\"]\n\tpath = v8\n\turl = https://chromium.googlesource.com/v8/v8.git",
"[CACHE]/codesearch_update_submodules_mirror/src/.gitmodules"
],
"infra_step": true,
"name": "Process refs/heads/master.Write .gitmodules file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@.gitmodules@[submodule \"v8\"]@@@",
"@@@STEP_LOG_LINE@.gitmodules@\tpath = v8@@@",
"@@@STEP_LOG_LINE@.gitmodules@\turl = https://chromium.googlesource.com/v8/v8.git@@@",
"@@@STEP_LOG_END@.gitmodules@@@"
]
},
{
"cmd": [
"git",
"add",
".gitmodules"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "Process refs/heads/master.git add",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"-c",
"user.name=Submodules bot",
"-c",
"user.email=infra-codesearch@chops-service-accounts.iam.gserviceaccount.com",
"commit",
"-m",
"Synthetic commit for submodules"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "Process refs/heads/master.git commit",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"push",
"https://chromium.googlesource.com/codesearch/src_mirror",
"HEAD:refs/heads/master",
"--push-option=skip-validation",
"--force"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "Process refs/heads/master.git push refs/heads/master",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"push",
"https://chromium.googlesource.com/codesearch/src_mirror",
"refs/remotes/origin/master:refs/heads/master-original"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "git push"
},
{
"cmd": [
"git",
"push",
"--tags",
"https://chromium.googlesource.com/codesearch/src_mirror"
],
"cwd": "[CACHE]/codesearch_update_submodules_mirror/src/",
"infra_step": true,
"name": "git push --tags"
},
{
"name": "$result"
}
]