blob: 1f573f5424ff5e8fc856d19f80b245ac904c8e0f [file] [log] [blame]
Rob Mohr296c0e72021-05-27 13:03:45 -07001[
2 {
Rob Mohr3ec598c2023-06-01 20:48:56 +00003 "cmd": [],
4 "name": "install packages"
5 },
6 {
7 "cmd": [
8 "python",
9 "-m",
10 "pw_cli",
11 "package",
12 "install",
13 "pkg"
14 ],
15 "name": "install packages.pkg",
16 "~followup_annotations": [
17 "@@@STEP_NEST_LEVEL@1@@@"
18 ]
19 },
20 {
Rob Mohr296c0e72021-05-27 13:03:45 -070021 "cmd": [
22 "gn",
23 "gen",
24 "--args=foo=true",
25 "--export-compile-commands",
Rob Mohr712ddd12023-03-24 17:28:50 +000026 "[START_DIR]/checkout/out"
Rob Mohr296c0e72021-05-27 13:03:45 -070027 ],
Rob Mohr3caf30b2021-06-01 08:34:53 -070028 "cwd": "[START_DIR]/checkout",
Rob Mohr296c0e72021-05-27 13:03:45 -070029 "name": "gn gen"
30 },
31 {
Rob Mohr86c40f52022-09-28 15:10:39 +000032 "cmd": [],
Rob Mohrd6071192023-06-15 22:17:01 +000033 "name": "timeout 10s"
Rob Mohr86c40f52022-09-28 15:10:39 +000034 },
35 {
Rob Mohr296c0e72021-05-27 13:03:45 -070036 "cmd": [
37 "ninja",
38 "-C",
Rob Mohr712ddd12023-03-24 17:28:50 +000039 "[START_DIR]/checkout/out",
Rob Mohr296c0e72021-05-27 13:03:45 -070040 "target"
41 ],
Rob Mohr86c40f52022-09-28 15:10:39 +000042 "luci_context": {
43 "deadline": {
44 "grace_period": 30.0,
Rob Mohr686cf712023-06-15 22:19:09 +000045 "soft_deadline": 1337000013.0
Rob Mohr86c40f52022-09-28 15:10:39 +000046 }
47 },
Rob Mohr296c0e72021-05-27 13:03:45 -070048 "name": "ninja"
49 },
50 {
Rob Mohr49cd63f2021-10-21 12:58:02 -070051 "cmd": [
Rob Mohr80408192021-09-23 07:59:12 -070052 "gn",
53 "args",
Rob Mohr712ddd12023-03-24 17:28:50 +000054 "[START_DIR]/checkout/out",
Rob Mohr80408192021-09-23 07:59:12 -070055 "--list",
56 "--json"
57 ],
Rob Mohr712ddd12023-03-24 17:28:50 +000058 "cwd": "[START_DIR]/checkout",
Rob Mohr80408192021-09-23 07:59:12 -070059 "name": "all gn args",
60 "~followup_annotations": [
61 "@@@STEP_LOG_LINE@json.output@[]@@@",
62 "@@@STEP_LOG_END@json.output@@@"
63 ]
64 },
65 {
Rob Mohr3caf30b2021-06-01 08:34:53 -070066 "cmd": [],
Rob Mohr563f0262021-06-09 13:28:24 -070067 "name": "archive to cas",
68 "~followup_annotations": [
69 "@@@SET_BUILD_PROPERTY@cas_build_digest@\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/0\"@@@"
70 ]
71 },
72 {
recipe-rollercc54d6d2021-06-25 09:05:14 +000073 "cmd": [
recipe-roller13485772022-05-21 08:59:24 +000074 "vpython3",
recipe-rollercc54d6d2021-06-25 09:05:14 +000075 "-u",
76 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
77 "--json-output",
78 "/path/to/tmp/json",
79 "copy",
80 "RECIPE_MODULE[recipe_engine::cas]/resources/infra.sha1",
81 "/path/to/tmp/"
82 ],
83 "infra_step": true,
84 "name": "archive to cas.read infra revision",
85 "~followup_annotations": [
86 "@@@STEP_NEST_LEVEL@1@@@",
87 "@@@STEP_LOG_LINE@infra.sha1@git_revision:mock_infra_git_revision@@@",
88 "@@@STEP_LOG_END@infra.sha1@@@"
89 ]
90 },
91 {
Rob Mohr563f0262021-06-09 13:28:24 -070092 "cmd": [],
93 "name": "archive to cas.install infra/tools/luci/cas",
94 "~followup_annotations": [
95 "@@@STEP_NEST_LEVEL@1@@@"
96 ]
Rob Mohr3caf30b2021-06-01 08:34:53 -070097 },
98 {
99 "cmd": [
recipe-roller13485772022-05-21 08:59:24 +0000100 "vpython3",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700101 "-u",
102 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
103 "--json-output",
104 "/path/to/tmp/json",
105 "ensure-directory",
106 "--mode",
Rob Mohrf7ac9b32023-11-30 20:33:23 +0000107 "0o777",
recipe-roller0798c6d2023-09-26 14:48:18 +0000108 "[START_DIR]/cipd_tool/infra/tools/luci/cas/33f9d887e5b8aeaaf9d65506acccfa8da2c480712e534a23a79e92c342c44bee"
Rob Mohr3caf30b2021-06-01 08:34:53 -0700109 ],
110 "infra_step": true,
Rob Mohr563f0262021-06-09 13:28:24 -0700111 "name": "archive to cas.install infra/tools/luci/cas.ensure package directory",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700112 "~followup_annotations": [
Rob Mohr563f0262021-06-09 13:28:24 -0700113 "@@@STEP_NEST_LEVEL@2@@@"
Rob Mohr3caf30b2021-06-01 08:34:53 -0700114 ]
115 },
116 {
117 "cmd": [
118 "cipd",
119 "ensure",
120 "-root",
recipe-roller0798c6d2023-09-26 14:48:18 +0000121 "[START_DIR]/cipd_tool/infra/tools/luci/cas/33f9d887e5b8aeaaf9d65506acccfa8da2c480712e534a23a79e92c342c44bee",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700122 "-ensure-file",
recipe-roller1e6c47d2021-06-25 20:35:35 +0000123 "infra/tools/luci/cas/${platform} git_revision:mock_infra_git_revision",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700124 "-max-threads",
125 "0",
126 "-json-output",
127 "/path/to/tmp/json"
128 ],
129 "infra_step": true,
Rob Mohr563f0262021-06-09 13:28:24 -0700130 "name": "archive to cas.install infra/tools/luci/cas.ensure_installed",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700131 "~followup_annotations": [
Rob Mohr563f0262021-06-09 13:28:24 -0700132 "@@@STEP_NEST_LEVEL@2@@@",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700133 "@@@STEP_LOG_LINE@json.output@{@@@",
134 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
135 "@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
136 "@@@STEP_LOG_LINE@json.output@ {@@@",
recipe-rollerb6d99d12023-07-18 05:10:51 +0000137 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:moc\",@@@",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700138 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/cas/resolved-platform\"@@@",
139 "@@@STEP_LOG_LINE@json.output@ }@@@",
140 "@@@STEP_LOG_LINE@json.output@ ]@@@",
141 "@@@STEP_LOG_LINE@json.output@ }@@@",
142 "@@@STEP_LOG_LINE@json.output@}@@@",
143 "@@@STEP_LOG_END@json.output@@@"
144 ]
145 },
146 {
147 "cmd": [
recipe-roller0798c6d2023-09-26 14:48:18 +0000148 "[START_DIR]/cipd_tool/infra/tools/luci/cas/33f9d887e5b8aeaaf9d65506acccfa8da2c480712e534a23a79e92c342c44bee/cas",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700149 "archive",
recipe-roller940a2fd2023-11-08 22:39:47 +0000150 "-log-level",
151 "info",
Rob Mohr3caf30b2021-06-01 08:34:53 -0700152 "-cas-instance",
153 "projects/example-cas-server/instances/default_instance",
154 "-dump-digest",
155 "/path/to/tmp/",
recipe-roller128e7a12023-01-23 20:13:41 +0000156 "-paths-json",
Rob Mohr712ddd12023-03-24 17:28:50 +0000157 "[[\"[START_DIR]/checkout/out\", \".\"]]"
Rob Mohr3caf30b2021-06-01 08:34:53 -0700158 ],
159 "infra_step": true,
Rob Mohr563f0262021-06-09 13:28:24 -0700160 "name": "archive to cas.archive",
Rob Mohr59c70082021-06-05 15:35:11 -0700161 "~followup_annotations": [
Rob Mohr563f0262021-06-09 13:28:24 -0700162 "@@@STEP_NEST_LEVEL@1@@@",
Rob Mohr59c70082021-06-05 15:35:11 -0700163 "@@@STEP_LINK@CAS UI@https://cas-viewer.appspot.com/projects/example-cas-server/instances/default_instance/blobs/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/0/tree@@@"
164 ]
Rob Mohr3caf30b2021-06-01 08:34:53 -0700165 },
166 {
Rob Mohr563f0262021-06-09 13:28:24 -0700167 "cmd": [
recipe-roller0798c6d2023-09-26 14:48:18 +0000168 "[START_DIR]/cipd_tool/infra/tools/luci/cas/33f9d887e5b8aeaaf9d65506acccfa8da2c480712e534a23a79e92c342c44bee/cas",
Rob Mohr563f0262021-06-09 13:28:24 -0700169 "download",
170 "-cas-instance",
171 "projects/example-cas-server/instances/default_instance",
172 "-digest",
173 "digest",
174 "-dir",
Rob Mohr712ddd12023-03-24 17:28:50 +0000175 "[START_DIR]/checkout/out"
Rob Mohr563f0262021-06-09 13:28:24 -0700176 ],
177 "infra_step": true,
178 "name": "download from cas"
179 },
180 {
Rob Mohr296c0e72021-05-27 13:03:45 -0700181 "name": "$result"
182 }
183]