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  },
96  {
97    "cmd": [
98      "python",
99      "[CUSTOM_/_B_WORK]/skia/infra/bots/infra_tests.py"
100    ],
101    "cwd": "[CUSTOM_/_B_WORK]/skia",
102    "env": {
103      "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
104    },
105    "name": "infra_tests"
106  },
107  {
108    "name": "$result",
109    "recipe_result": null,
110    "status_code": 0
111  }
112]