blob: 36ebdc81918f4dda0690abbb457a42c13b1a41cf [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 ],
Eric Borena1590852017-03-20 12:48:31 -040010 "infra_step": true,
borenet61013b22016-10-20 11:38:30 -070011 "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",
borenet8fa74702016-10-25 05:26:14 -070029 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
borenet61013b22016-10-20 11:38:30 -070030 "--spec",
borenet8fa74702016-10-25 05:26:14 -070031 "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"
borenet61013b22016-10-20 11:38:30 -070043 ],
44 "cwd": "[CUSTOM_/_B_WORK]",
45 "env": {
46 "BUILDTYPE": "Release",
47 "CHROME_HEADLESS": "1",
Eric Boren1b5b9442017-02-21 09:43:05 -050048 "GIT_HTTP_LOW_SPEED_LIMIT": "1000",
49 "GIT_HTTP_LOW_SPEED_TIME": "300",
borenet61013b22016-10-20 11:38:30 -070050 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
Ravi Mistry9bcca6a2016-11-21 16:06:19 -050051 "SKIA_OUT": "[START_DIR]/out"
borenet61013b22016-10-20 11:38:30 -070052 },
Eric Borena1590852017-03-20 12:48:31 -040053 "infra_step": true,
borenet8fa74702016-10-25 05:26:14 -070054 "name": "bot_update",
borenet61013b22016-10-20 11:38:30 -070055 "~followup_annotations": [
borenet8fa74702016-10-25 05:26:14 -070056 "@@@STEP_TEXT@Some step text@@@",
borenet61013b22016-10-20 11:38:30 -070057 "@@@STEP_LOG_LINE@json.output@{@@@",
borenet8fa74702016-10-25 05:26:14 -070058 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
59 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
60 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
61 "@@@STEP_LOG_LINE@json.output@ }, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
64 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/skia.git\", @@@",
borenet61013b22016-10-20 11:38:30 -070065 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
66 "@@@STEP_LOG_LINE@json.output@ }@@@",
borenet8fa74702016-10-25 05:26:14 -070067 "@@@STEP_LOG_LINE@json.output@ }, @@@",
68 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
69 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@",
70 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
71 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@",
72 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@",
73 "@@@STEP_LOG_LINE@json.output@ }, @@@",
74 "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@",
75 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
borenet61013b22016-10-20 11:38:30 -070076 "@@@STEP_LOG_LINE@json.output@}@@@",
77 "@@@STEP_LOG_END@json.output@@@",
borenet8fa74702016-10-25 05:26:14 -070078 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
79 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
borenet61013b22016-10-20 11:38:30 -070080 ]
81 },
82 {
83 "cmd": [
borenet61013b22016-10-20 11:38:30 -070084 "go",
85 "get",
86 "-u",
Eric Boren58bf6932016-11-16 10:49:52 -050087 "-t",
borenet61013b22016-10-20 11:38:30 -070088 "go.skia.org/infra/..."
89 ],
90 "env": {
91 "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
92 },
93 "name": "update go pkgs",
94 "~followup_annotations": [
95 "step returned non-zero exit code: 1",
96 "@@@STEP_FAILURE@@@"
97 ]
98 },
99 {
100 "cmd": [
101 "go",
102 "get",
103 "-u",
Eric Boren58bf6932016-11-16 10:49:52 -0500104 "-t",
borenet61013b22016-10-20 11:38:30 -0700105 "go.skia.org/infra/..."
106 ],
107 "env": {
108 "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
109 },
110 "name": "update go pkgs (attempt 2)"
111 },
112 {
113 "cmd": [
114 "python",
115 "[CUSTOM_/_B_WORK]/skia/infra/bots/infra_tests.py"
116 ],
117 "cwd": "[CUSTOM_/_B_WORK]/skia",
118 "env": {
119 "GOPATH": "[CUSTOM_/_B_WORK]/gopath"
120 },
121 "name": "infra_tests"
122 },
123 {
124 "name": "$result",
125 "recipe_result": null,
126 "status_code": 0
127 }
128]