Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: recipes/recipes/recipe_autoroller_public.expected/nontrivial.json

Issue 2212353002: recipe_autoroller: use git cache (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: recipes/recipes/recipe_autoroller_public.expected/nontrivial.json
diff --git a/recipes/recipes/recipe_autoroller_public.expected/nontrivial.json b/recipes/recipes/recipe_autoroller_public.expected/nontrivial.json
index f679471e0922d1a488a72d00e7ff2893a0634d12..f9c66f8f75f85e92004aaad28fedbf6091250aba 100644
--- a/recipes/recipes/recipe_autoroller_public.expected/nontrivial.json
+++ b/recipes/recipes/recipe_autoroller_public.expected/nontrivial.json
@@ -81,6 +81,62 @@
"cmd": [
"git",
"retry",
+ "cache",
+ "populate",
+ "-c",
+ "[GIT_CACHE]",
+ "https://repo.repo/build"
+ ],
+ "cwd": "[TMP_BASE]/roll_build_tmp_2",
+ "env": {
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
+ },
+ "name": "build.populate cache",
+ "~followup_annotations": [
+ "@@@STEP_NEST_LEVEL@1@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "git",
+ "cache",
+ "exists",
+ "--quiet",
+ "--cache-dir",
+ "[GIT_CACHE]",
+ "https://repo.repo/build"
+ ],
+ "cwd": "[TMP_BASE]/roll_build_tmp_2",
+ "env": {
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
+ },
+ "name": "build.git cache",
+ "stdout": "/path/to/tmp/",
+ "~followup_annotations": [
+ "@@@STEP_NEST_LEVEL@1@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "git",
+ "remote",
+ "set-url",
+ "origin",
+ "mirror_dir"
+ ],
+ "cwd": "[TMP_BASE]/roll_build_tmp_2",
+ "env": {
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
+ },
+ "name": "build.git remote",
+ "~followup_annotations": [
+ "@@@STEP_NEST_LEVEL@1@@@"
+ ]
+ },
+ {
+ "cmd": [
+ "git",
+ "retry",
"fetch",
"origin",
"master"

Powered by Google App Engine
This is Rietveld 408576698