blob: 1bf15b8ba063142bace78b8362ec9ba6f826c48d [file] [log] [blame]
borenet61013b22016-10-20 11:38:30 -07001[
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 "name": "makedirs checkout_path",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
21 "@@@STEP_LOG_END@python.inline@@@"
22 ]
23 },
24 {
25 "cmd": [
26 "python",
27 "-u",
borenet8fa74702016-10-25 05:26:14 -070028 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
borenet61013b22016-10-20 11:38:30 -070029 "--spec",
borenet8fa74702016-10-25 05:26:14 -070030 "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]",
31 "--patch_root",
32 "skia",
33 "--revision_mapping_file",
34 "{\"skia\": \"got_revision\"}",
35 "--git-cache-dir",
36 "[CUSTOM_/_B_CACHE]",
37 "--output_json",
38 "/path/to/tmp/json",
39 "--revision",
40 "skia@abc123",
41 "--output_manifest"
borenet61013b22016-10-20 11:38:30 -070042 ],
43 "cwd": "[CUSTOM_/_B_WORK]",
44 "env": {
45 "BUILDTYPE": "Release",
46 "CHROME_HEADLESS": "1",
47 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
48 "SKIA_OUT": "[SLAVE_BUILD]/out"
49 },
borenet8fa74702016-10-25 05:26:14 -070050 "name": "bot_update",
borenet61013b22016-10-20 11:38:30 -070051 "~followup_annotations": [
borenet8fa74702016-10-25 05:26:14 -070052 "@@@STEP_TEXT@Some step text@@@",
borenet61013b22016-10-20 11:38:30 -070053 "@@@STEP_LOG_LINE@json.output@{@@@",
borenet8fa74702016-10-25 05:26:14 -070054 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
55 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
56 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
57 "@@@STEP_LOG_LINE@json.output@ }, @@@",
58 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
59 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
60 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/skia.git\", @@@",
borenet61013b22016-10-20 11:38:30 -070061 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
62 "@@@STEP_LOG_LINE@json.output@ }@@@",
borenet8fa74702016-10-25 05:26:14 -070063 "@@@STEP_LOG_LINE@json.output@ }, @@@",
64 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
65 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@",
66 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
67 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
68 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
69 "@@@STEP_LOG_LINE@json.output@ }, @@@",
70 "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@",
71 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
borenet61013b22016-10-20 11:38:30 -070072 "@@@STEP_LOG_LINE@json.output@}@@@",
73 "@@@STEP_LOG_END@json.output@@@",
borenet8fa74702016-10-25 05:26:14 -070074 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
75 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
borenet61013b22016-10-20 11:38:30 -070076 ]
77 },
78 {
79 "cmd": [
borenet61013b22016-10-20 11:38:30 -070080 "go",
81 "get",
82 "-u",
Eric Boren58bf6932016-11-16 10:49:52 -050083 "-t",
borenet61013b22016-10-20 11:38:30 -070084 "go.skia.org/infra/..."
85 ],
86 "env": {
87 "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
88 },
89 "name": "update go pkgs",
90 "~followup_annotations": [
91 "step returned non-zero exit code: 1",
92 "@@@STEP_FAILURE@@@"
93 ]
94 },
95 {
96 "cmd": [
97 "go",
98 "get",
99 "-u",
Eric Boren58bf6932016-11-16 10:49:52 -0500100 "-t",
borenet61013b22016-10-20 11:38:30 -0700101 "go.skia.org/infra/..."
102 ],
103 "env": {
104 "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
105 },
106 "name": "update go pkgs (attempt 2)"
107 },
108 {
109 "cmd": [
110 "python",
111 "[CUSTOM_/_B_WORK]/skia/infra/bots/infra_tests.py"
112 ],
113 "cwd": "[CUSTOM_/_B_WORK]/skia",
114 "env": {
115 "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
116 },
117 "name": "infra_tests"
118 },
119 {
120 "name": "$result",
121 "recipe_result": null,
122 "status_code": 0
123 }
124]