Add support to migrate docs production tests.

Change-Id: I88ae0fbd9034df96bb4b8da3c47cd96f1e23efc8
Bug: https://github.com/flutter/flutter/issues/60646
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/6880
Reviewed-by: Christopher Fujino <fujino@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
diff --git a/recipe_modules/flutter_deps/examples/full.expected/basic.json b/recipe_modules/flutter_deps/examples/full.expected/basic.json
index 70b9286..bd2bafd 100644
--- a/recipe_modules/flutter_deps/examples/full.expected/basic.json
+++ b/recipe_modules/flutter_deps/examples/full.expected/basic.json
@@ -230,9 +230,9 @@
         "[CACHE]/chrome/chrome",
         "[CACHE]/chrome/drivers",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path"
+        "[CLEANUP]/go_path/bin"
       ]
     },
     "name": "Install dashing"
@@ -528,6 +528,48 @@
     ]
   },
   {
+    "cmd": [
+      "vpython",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0777",
+      "[START_DIR]/firebase"
+    ],
+    "infra_step": true,
+    "name": "ensure directory"
+  },
+  {
+    "cmd": [],
+    "name": "Install firebase"
+  },
+  {
+    "cmd": [
+      "curl",
+      "-Lo",
+      "[START_DIR]/firebase/firebase",
+      "https://firebase.tools/bin/linux/latest"
+    ],
+    "name": "Install firebase.Install firebase bin",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "chmod",
+      "755",
+      "[START_DIR]/firebase/firebase"
+    ],
+    "name": "Install firebase.Set execute permission",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
     "name": "$result"
   }
 ]
\ No newline at end of file
diff --git a/recipe_modules/flutter_deps/examples/full.expected/flutter_engine.json b/recipe_modules/flutter_deps/examples/full.expected/flutter_engine.json
index e42ef75..4a1e9bd 100644
--- a/recipe_modules/flutter_deps/examples/full.expected/flutter_engine.json
+++ b/recipe_modules/flutter_deps/examples/full.expected/flutter_engine.json
@@ -230,9 +230,9 @@
         "[CACHE]/chrome/chrome",
         "[CACHE]/chrome/drivers",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path"
+        "[CLEANUP]/go_path/bin"
       ]
     },
     "name": "Install dashing"
@@ -595,6 +595,48 @@
     ]
   },
   {
+    "cmd": [
+      "vpython",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0777",
+      "[START_DIR]/firebase"
+    ],
+    "infra_step": true,
+    "name": "ensure directory"
+  },
+  {
+    "cmd": [],
+    "name": "Install firebase"
+  },
+  {
+    "cmd": [
+      "curl",
+      "-Lo",
+      "[START_DIR]/firebase/firebase",
+      "https://firebase.tools/bin/linux/latest"
+    ],
+    "name": "Install firebase.Install firebase bin",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "chmod",
+      "755",
+      "[START_DIR]/firebase/firebase"
+    ],
+    "name": "Install firebase.Set execute permission",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
     "name": "$result"
   }
 ]
\ No newline at end of file
diff --git a/recipe_modules/flutter_deps/examples/full.expected/goldTryjob.json b/recipe_modules/flutter_deps/examples/full.expected/goldTryjob.json
index 70b9286..bd2bafd 100644
--- a/recipe_modules/flutter_deps/examples/full.expected/goldTryjob.json
+++ b/recipe_modules/flutter_deps/examples/full.expected/goldTryjob.json
@@ -230,9 +230,9 @@
         "[CACHE]/chrome/chrome",
         "[CACHE]/chrome/drivers",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path"
+        "[CLEANUP]/go_path/bin"
       ]
     },
     "name": "Install dashing"
@@ -528,6 +528,48 @@
     ]
   },
   {
+    "cmd": [
+      "vpython",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0777",
+      "[START_DIR]/firebase"
+    ],
+    "infra_step": true,
+    "name": "ensure directory"
+  },
+  {
+    "cmd": [],
+    "name": "Install firebase"
+  },
+  {
+    "cmd": [
+      "curl",
+      "-Lo",
+      "[START_DIR]/firebase/firebase",
+      "https://firebase.tools/bin/linux/latest"
+    ],
+    "name": "Install firebase.Install firebase bin",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "chmod",
+      "755",
+      "[START_DIR]/firebase/firebase"
+    ],
+    "name": "Install firebase.Set execute permission",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
     "name": "$result"
   }
 ]
\ No newline at end of file
diff --git a/recipe_modules/flutter_deps/examples/full.expected/mac.json b/recipe_modules/flutter_deps/examples/full.expected/mac.json
index 1f2f874..b4f9b75 100644
--- a/recipe_modules/flutter_deps/examples/full.expected/mac.json
+++ b/recipe_modules/flutter_deps/examples/full.expected/mac.json
@@ -230,9 +230,9 @@
         "[CACHE]/chrome/chrome",
         "[CACHE]/chrome/drivers",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path"
+        "[CLEANUP]/go_path/bin"
       ]
     },
     "name": "Install dashing"
@@ -622,6 +622,48 @@
     ]
   },
   {
+    "cmd": [
+      "vpython",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0777",
+      "[START_DIR]/firebase"
+    ],
+    "infra_step": true,
+    "name": "ensure directory"
+  },
+  {
+    "cmd": [],
+    "name": "Install firebase"
+  },
+  {
+    "cmd": [
+      "curl",
+      "-Lo",
+      "[START_DIR]/firebase/firebase",
+      "https://firebase.tools/bin/linux/latest"
+    ],
+    "name": "Install firebase.Install firebase bin",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "chmod",
+      "755",
+      "[START_DIR]/firebase/firebase"
+    ],
+    "name": "Install firebase.Set execute permission",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
     "name": "$result"
   }
 ]
\ No newline at end of file
diff --git a/recipe_modules/flutter_deps/examples/full.expected/with-gems.json b/recipe_modules/flutter_deps/examples/full.expected/with-gems.json
index b4a992a..9de0706 100644
--- a/recipe_modules/flutter_deps/examples/full.expected/with-gems.json
+++ b/recipe_modules/flutter_deps/examples/full.expected/with-gems.json
@@ -230,9 +230,9 @@
         "[CACHE]/chrome/chrome",
         "[CACHE]/chrome/drivers",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path"
+        "[CLEANUP]/go_path/bin"
       ]
     },
     "name": "Install dashing"
@@ -579,16 +579,17 @@
       "CHROME_NO_SANDBOX": "true",
       "GEM_HOME": "[START_DIR]/gems",
       "GOPATH": "[CLEANUP]/go_path",
-      "GRADLE_OPTS": "-Dorg.gradle.daemon=false"
+      "GRADLE_OPTS": "-Dorg.gradle.daemon=false",
+      "GRADLE_USER_HOME": "[CACHE]/gradle"
     },
     "env_prefixes": {
       "PATH": [
         "[CACHE]/chrome/chrome",
         "[CACHE]/chrome/drivers",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/vpython",
         "[CACHE]/android/platform-tools",
         "[CACHE]/android/tools",
@@ -613,16 +614,17 @@
       "CHROME_NO_SANDBOX": "true",
       "GEM_HOME": "[START_DIR]/gems",
       "GOPATH": "[CLEANUP]/go_path",
-      "GRADLE_OPTS": "-Dorg.gradle.daemon=false"
+      "GRADLE_OPTS": "-Dorg.gradle.daemon=false",
+      "GRADLE_USER_HOME": "[CACHE]/gradle"
     },
     "env_prefixes": {
       "PATH": [
         "[CACHE]/chrome/chrome",
         "[CACHE]/chrome/drivers",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/go/bin",
-        "[CLEANUP]/go_path",
+        "[CLEANUP]/go_path/bin",
         "[CACHE]/vpython",
         "[CACHE]/android/platform-tools",
         "[CACHE]/android/tools",
@@ -653,6 +655,48 @@
     ]
   },
   {
+    "cmd": [
+      "vpython",
+      "-u",
+      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
+      "--json-output",
+      "/path/to/tmp/json",
+      "ensure-directory",
+      "--mode",
+      "0777",
+      "[START_DIR]/firebase"
+    ],
+    "infra_step": true,
+    "name": "ensure directory"
+  },
+  {
+    "cmd": [],
+    "name": "Install firebase"
+  },
+  {
+    "cmd": [
+      "curl",
+      "-Lo",
+      "[START_DIR]/firebase/firebase",
+      "https://firebase.tools/bin/linux/latest"
+    ],
+    "name": "Install firebase.Install firebase bin",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
+    "cmd": [
+      "chmod",
+      "755",
+      "[START_DIR]/firebase/firebase"
+    ],
+    "name": "Install firebase.Set execute permission",
+    "~followup_annotations": [
+      "@@@STEP_NEST_LEVEL@1@@@"
+    ]
+  },
+  {
     "name": "$result"
   }
 ]
\ No newline at end of file