1[
2  {
3    "cmd": [
4      "python",
5      "-u",
6      "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n  if os.path.exists(path):\n    print \"%s exists but is not a dir\" % path\n    sys.exit(1)\n  os.makedirs(path, mode)\n",
7      "[CUSTOM_/_B_WORK]",
8      "511"
9    ],
10    "infra_step": true,
11    "name": "makedirs checkout_path",
12    "~followup_annotations": [
13      "@@@STEP_LOG_LINE@python.inline@@@@",
14      "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
15      "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
16      "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
17      "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
18      "@@@STEP_LOG_LINE@python.inline@  if os.path.exists(path):@@@",
19      "@@@STEP_LOG_LINE@python.inline@    print \"%s exists but is not a dir\" % path@@@",
20      "@@@STEP_LOG_LINE@python.inline@    sys.exit(1)@@@",
21      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(path, mode)@@@",
22      "@@@STEP_LOG_END@python.inline@@@"
23    ]
24  },
25  {
26    "cmd": [
27      "python",
28      "-u",
29      "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
30      "--spec",
31      "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]",
32      "--patch_root",
33      "skia",
34      "--revision_mapping_file",
35      "{\"skia\": \"got_revision\"}",
36      "--git-cache-dir",
37      "[CUSTOM_/_B_CACHE]",
38      "--output_json",
39      "/path/to/tmp/json",
40      "--revision",
41      "skia@abc123",
42      "--output_manifest"
43    ],
44    "cwd": "[CUSTOM_/_B_WORK]",
45    "env": {
46      "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
47      "GIT_HTTP_LOW_SPEED_TIME": "300",
48      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
49    },
50    "infra_step": true,
51    "name": "bot_update",
52    "~followup_annotations": [
53      "@@@STEP_TEXT@Some step text@@@",
54      "@@@STEP_LOG_LINE@json.output@{@@@",
55      "@@@STEP_LOG_LINE@json.output@  \"did_run\": true, @@@",
56      "@@@STEP_LOG_LINE@json.output@  \"fixed_revisions\": {@@@",
57      "@@@STEP_LOG_LINE@json.output@    \"skia\": \"abc123\"@@@",
58      "@@@STEP_LOG_LINE@json.output@  }, @@@",
59      "@@@STEP_LOG_LINE@json.output@  \"manifest\": {@@@",
60      "@@@STEP_LOG_LINE@json.output@    \"skia\": {@@@",
61      "@@@STEP_LOG_LINE@json.output@      \"repository\": \"https://fake.org/skia.git\", @@@",
62      "@@@STEP_LOG_LINE@json.output@      \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
63      "@@@STEP_LOG_LINE@json.output@    }@@@",
64      "@@@STEP_LOG_LINE@json.output@  }, @@@",
65      "@@@STEP_LOG_LINE@json.output@  \"patch_failure\": false, @@@",
66      "@@@STEP_LOG_LINE@json.output@  \"patch_root\": \"skia\", @@@",
67      "@@@STEP_LOG_LINE@json.output@  \"properties\": {@@@",
68      "@@@STEP_LOG_LINE@json.output@    \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
69      "@@@STEP_LOG_LINE@json.output@    \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
70      "@@@STEP_LOG_LINE@json.output@  }, @@@",
71      "@@@STEP_LOG_LINE@json.output@  \"root\": \"skia\", @@@",
72      "@@@STEP_LOG_LINE@json.output@  \"step_text\": \"Some step text\"@@@",
73      "@@@STEP_LOG_LINE@json.output@}@@@",
74      "@@@STEP_LOG_END@json.output@@@",
75      "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
76      "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
77    ]
78  },
79  {
80    "cmd": [
81      "go",
82      "get",
83      "-u",
84      "-t",
85      "go.skia.org/infra/..."
86    ],
87    "env": {
88      "BUILDTYPE": "Release",
89      "CHROME_HEADLESS": "1",
90      "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
91      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
92      "SKIA_OUT": "[START_DIR]/out"
93    },
94    "name": "update go pkgs",
95    "~followup_annotations": [
96      "step returned non-zero exit code: 1",
97      "@@@STEP_FAILURE@@@"
98    ]
99  },
100  {
101    "cmd": [
102      "go",
103      "get",
104      "-u",
105      "-t",
106      "go.skia.org/infra/..."
107    ],
108    "env": {
109      "BUILDTYPE": "Release",
110      "CHROME_HEADLESS": "1",
111      "GOPATH": "[CUSTOM_/_B_WORK]/gopath",
112      "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
113      "SKIA_OUT": "[START_DIR]/out"
114    },
115    "name": "update go pkgs (attempt 2)"
116  },
117  {
118    "cmd": [
119      "python",
120      "[CUSTOM_/_B_WORK]/skia/infra/bots/infra_tests.py"
121    ],
122    "cwd": "[CUSTOM_/_B_WORK]/skia",
123    "env": {
124      "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
125    },
126    "name": "infra_tests"
127  },
128  {
129    "name": "$result",
130    "recipe_result": null,
131    "status_code": 0
132  }
133]