| [ |
| { |
| "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_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "clone", |
| "https://chromium.googlesource.com/chromium/src", |
| "[CACHE]/codesearch_update_submodules_mirror/src/" |
| ], |
| "cwd": "[CACHE]/codesearch_update_submodules_mirror", |
| "infra_step": true, |
| "name": "git clone" |
| }, |
| { |
| "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 />0 commits fetched@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"log\": []@@@", |
| "@@@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", |
| "update-index", |
| "--add", |
| "--cacheinfo", |
| "160000,4ad2459561d76217c9b7aff412c5c086b491078a,v8", |
| "--cacheinfo", |
| "160000,13a00f110ef910a25763346d6538b60f12845656,buildtools" |
| ], |
| "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\n[submodule \"buildtools\"]\n\tpath = buildtools\n\turl = https://chromium.googlesource.com/chromium/buildtools.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_LINE@.gitmodules@[submodule \"buildtools\"]@@@", |
| "@@@STEP_LOG_LINE@.gitmodules@\tpath = buildtools@@@", |
| "@@@STEP_LOG_LINE@.gitmodules@\turl = https://chromium.googlesource.com/chromium/buildtools.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" |
| } |
| ] |