Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: scripts/slave/recipes/android/find_annotated_tests.expected/find_annotated_tests_basic.json

Issue 2063323002: Create recipe to run find_annotated_tests.py periodically (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Add into steps.py Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « scripts/slave/recipes/android/find_annotated_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n", 6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
7 "[SLAVE_BUILD]" 7 "--master",
8 "InfraCron",
9 "--builder",
10 "Chromium Android Find Annotated Tests",
11 "--slave",
12 "TestSlavename",
13 "--spec",
14 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'custom_vars': {'googlecode_url' : 'svn://svn-mirror.golo.chromium.org/%s', 'nacl_trunk': 'svn://svn-mirror.golo. chromium.org/native_client/trunk', 'sourceforge_url': 'svn://svn-mirror.golo.chr omium.org/%(repo)s', 'webkit_trunk': 'svn://svn-mirror.golo.chromium.org/blink/t runk'}, 'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn-m irror.golo.chromium.org/chrome/trunk/src'}]\ntarget_os = ['android']",
15 "--root",
16 "src",
17 "--revision_mapping_file",
18 "{\"src\": \"got_revision\", \"src/buildtools\": \"got_buildtools_revision \", \"src/native_client\": \"got_nacl_revision\", \"src/third_party/angle\": \"g ot_angle_revision\", \"src/third_party/webrtc\": \"got_webrtc_revision\", \"src/ tools/swarming_client\": \"got_swarming_client_revision\", \"src/v8\": \"got_v8_ revision\"}",
19 "--git-cache-dir",
20 "[GIT_CACHE]",
21 "--output_json",
22 "/path/to/tmp/json",
23 "--revision",
24 "src@HEAD",
25 "--output_manifest"
8 ], 26 ],
9 "name": "cleanup index.lock", 27 "env": {
28 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
29 },
30 "name": "bot_update",
10 "~followup_annotations": [ 31 "~followup_annotations": [
11 "@@@STEP_LOG_LINE@python.inline@@@@", 32 "@@@STEP_LOG_LINE@json.output@{@@@",
12 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", 33 "@@@STEP_LOG_LINE@json.output@ \"did_run\": false, @@@",
13 "@@@STEP_LOG_LINE@python.inline@@@@", 34 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false@@@",
14 "@@@STEP_LOG_LINE@python.inline@build_path = sys.argv[1]@@@", 35 "@@@STEP_LOG_LINE@json.output@}@@@",
15 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(build_path):@@@", 36 "@@@STEP_LOG_END@json.output@@@"
16 "@@@STEP_LOG_LINE@python.inline@ for (path, dir, files) in os.walk(build_ path):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ for cur_file in files:@@@",
18 "@@@STEP_LOG_LINE@python.inline@ if cur_file.endswith('index.lock'):@ @@",
19 "@@@STEP_LOG_LINE@python.inline@ path_to_file = os.path.join(path, cur_file)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ print 'deleting %s' % path_to_file @@@",
21 "@@@STEP_LOG_LINE@python.inline@ os.remove(path_to_file)@@@",
22 "@@@STEP_LOG_END@python.inline@@@"
23 ] 37 ]
24 }, 38 },
25 { 39 {
26 "cmd": [ 40 "cmd": [
27 "python", 41 "python",
28 "-u", 42 "-u",
29 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", 43 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
30 "config", 44 "config",
31 "--spec", 45 "--spec",
32 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'tools/deps/dartium .deps/DEPS', 'managed': True, 'name': 'src/dart', 'url': 'https://github.com/dar t-lang/sdk.git'}]\ntarget_os = ['android']" 46 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'custom_vars': {'googlecode_url' : 'svn://svn-mirror.golo.chromium.org/%s', 'nacl_trunk': 'svn://svn-mirror.golo. chromium.org/native_client/trunk', 'sourceforge_url': 'svn://svn-mirror.golo.chr omium.org/%(repo)s', 'webkit_trunk': 'svn://svn-mirror.golo.chromium.org/blink/t runk'}, 'deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn-m irror.golo.chromium.org/chrome/trunk/src'}]\ntarget_os = ['android']"
33 ], 47 ],
34 "env": { 48 "env": {
35 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 49 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
36 }, 50 },
37 "name": "gclient setup" 51 "name": "gclient setup"
38 }, 52 },
39 { 53 {
40 "cmd": [ 54 "cmd": [
41 "python", 55 "python",
42 "-u", 56 "-u",
43 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", 57 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
44 "sync", 58 "sync",
45 "--nohooks", 59 "--nohooks",
46 "--force", 60 "--force",
47 "--verbose", 61 "--verbose",
48 "--delete_unversioned_trees", 62 "--delete_unversioned_trees",
49 "--revision",
50 "src/dart@478695f60c28b5b8a951ce1d4fd60f53d80b21fb",
51 "--revision",
52 "src/dart@478695f60c28b5b8a951ce1d4fd60f53d80b21fb",
53 "--output-json", 63 "--output-json",
54 "/path/to/tmp/json" 64 "/path/to/tmp/json"
55 ], 65 ],
56 "env": { 66 "env": {
57 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 67 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
58 }, 68 },
59 "name": "gclient sync", 69 "name": "gclient sync",
60 "~followup_annotations": [ 70 "~followup_annotations": [
61 "@@@STEP_LOG_LINE@json.output@{@@@", 71 "@@@STEP_LOG_LINE@json.output@{@@@",
62 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@", 72 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"src/\": {@@@", 73 "@@@STEP_LOG_LINE@json.output@ \"src/\": {@@@",
64 "@@@STEP_LOG_LINE@json.output@ \"revision\": 170242@@@", 74 "@@@STEP_LOG_LINE@json.output@ \"revision\": 170242@@@",
65 "@@@STEP_LOG_LINE@json.output@ }, @@@", 75 "@@@STEP_LOG_LINE@json.output@ }, @@@",
66 "@@@STEP_LOG_LINE@json.output@ \"src/buildtools/\": {@@@", 76 "@@@STEP_LOG_LINE@json.output@ \"src/buildtools/\": {@@@",
67 "@@@STEP_LOG_LINE@json.output@ \"revision\": 182578@@@", 77 "@@@STEP_LOG_LINE@json.output@ \"revision\": 182578@@@",
68 "@@@STEP_LOG_LINE@json.output@ }, @@@", 78 "@@@STEP_LOG_LINE@json.output@ }, @@@",
69 "@@@STEP_LOG_LINE@json.output@ \"src/dart/\": {@@@",
70 "@@@STEP_LOG_LINE@json.output@ \"revision\": 58622@@@",
71 "@@@STEP_LOG_LINE@json.output@ }, @@@",
72 "@@@STEP_LOG_LINE@json.output@ \"src/native_client/\": {@@@", 79 "@@@STEP_LOG_LINE@json.output@ \"src/native_client/\": {@@@",
73 "@@@STEP_LOG_LINE@json.output@ \"revision\": 274981@@@", 80 "@@@STEP_LOG_LINE@json.output@ \"revision\": 274981@@@",
74 "@@@STEP_LOG_LINE@json.output@ }, @@@", 81 "@@@STEP_LOG_LINE@json.output@ }, @@@",
75 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle/\": {@@@", 82 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle/\": {@@@",
76 "@@@STEP_LOG_LINE@json.output@ \"revision\": 297276@@@", 83 "@@@STEP_LOG_LINE@json.output@ \"revision\": 297276@@@",
77 "@@@STEP_LOG_LINE@json.output@ }, @@@", 84 "@@@STEP_LOG_LINE@json.output@ }, @@@",
78 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/webrtc/\": {@@@", 85 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/webrtc/\": {@@@",
79 "@@@STEP_LOG_LINE@json.output@ \"revision\": 120644@@@", 86 "@@@STEP_LOG_LINE@json.output@ \"revision\": 120644@@@",
80 "@@@STEP_LOG_LINE@json.output@ }, @@@", 87 "@@@STEP_LOG_LINE@json.output@ }, @@@",
81 "@@@STEP_LOG_LINE@json.output@ \"src/tools/swarming_client/\": {@@@", 88 "@@@STEP_LOG_LINE@json.output@ \"src/tools/swarming_client/\": {@@@",
82 "@@@STEP_LOG_LINE@json.output@ \"revision\": 276089@@@", 89 "@@@STEP_LOG_LINE@json.output@ \"revision\": 276089@@@",
83 "@@@STEP_LOG_LINE@json.output@ }, @@@", 90 "@@@STEP_LOG_LINE@json.output@ }, @@@",
84 "@@@STEP_LOG_LINE@json.output@ \"src/v8/\": {@@@", 91 "@@@STEP_LOG_LINE@json.output@ \"src/v8/\": {@@@",
85 "@@@STEP_LOG_LINE@json.output@ \"revision\": 43426@@@", 92 "@@@STEP_LOG_LINE@json.output@ \"revision\": 43426@@@",
86 "@@@STEP_LOG_LINE@json.output@ }@@@", 93 "@@@STEP_LOG_LINE@json.output@ }@@@",
87 "@@@STEP_LOG_LINE@json.output@ }@@@", 94 "@@@STEP_LOG_LINE@json.output@ }@@@",
88 "@@@STEP_LOG_LINE@json.output@}@@@", 95 "@@@STEP_LOG_LINE@json.output@}@@@",
89 "@@@STEP_LOG_END@json.output@@@", 96 "@@@STEP_LOG_END@json.output@@@",
90 "@@@SET_BUILD_PROPERTY@got_nacl_revision@274981@@@", 97 "@@@SET_BUILD_PROPERTY@got_nacl_revision@274981@@@",
91 "@@@SET_BUILD_PROPERTY@got_src_revision@170242@@@", 98 "@@@SET_BUILD_PROPERTY@got_swarming_client_revision@276089@@@",
92 "@@@SET_BUILD_PROPERTY@got_webrtc_revision@120644@@@", 99 "@@@SET_BUILD_PROPERTY@got_webrtc_revision@120644@@@",
93 "@@@SET_BUILD_PROPERTY@got_swarming_client_revision@276089@@@", 100 "@@@SET_BUILD_PROPERTY@got_revision@170242@@@",
94 "@@@SET_BUILD_PROPERTY@got_angle_revision@297276@@@", 101 "@@@SET_BUILD_PROPERTY@got_angle_revision@297276@@@",
95 "@@@SET_BUILD_PROPERTY@got_v8_revision@43426@@@", 102 "@@@SET_BUILD_PROPERTY@got_v8_revision@43426@@@",
96 "@@@SET_BUILD_PROPERTY@got_buildtools_revision@182578@@@" 103 "@@@SET_BUILD_PROPERTY@got_buildtools_revision@182578@@@"
97 ] 104 ]
98 }, 105 },
99 { 106 {
100 "cmd": [ 107 "cmd": [
101 "python", 108 "python",
102 "-u", 109 "-u",
103 "\nimport shutil, sys, os\nshutil.rmtree(sys.argv[1], True)\nshutil.rmtree (sys.argv[2], True)\ntry:\n os.remove(sys.argv[3])\nexcept OSError:\n pass\nfo r base, _dirs, files in os.walk(sys.argv[4]):\n for f in files:\n if f.endsw ith('.pyc'):\n os.remove(os.path.join(base, f))\n",
104 "[SLAVE_BUILD]/src/out/Release/debug_info_dumps",
105 "[SLAVE_BUILD]/src/out/Release/test_logs",
106 "[SLAVE_BUILD]/src/out/build_product.zip",
107 "[SLAVE_BUILD]/src"
108 ],
109 "name": "clean local files",
110 "~followup_annotations": [
111 "@@@STEP_LOG_LINE@python.inline@@@@",
112 "@@@STEP_LOG_LINE@python.inline@import shutil, sys, os@@@",
113 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1], True)@@@",
114 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[2], True)@@@",
115 "@@@STEP_LOG_LINE@python.inline@try:@@@",
116 "@@@STEP_LOG_LINE@python.inline@ os.remove(sys.argv[3])@@@",
117 "@@@STEP_LOG_LINE@python.inline@except OSError:@@@",
118 "@@@STEP_LOG_LINE@python.inline@ pass@@@",
119 "@@@STEP_LOG_LINE@python.inline@for base, _dirs, files in os.walk(sys.argv [4]):@@@",
120 "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@",
121 "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.pyc'):@@@",
122 "@@@STEP_LOG_LINE@python.inline@ os.remove(os.path.join(base, f))@@@" ,
123 "@@@STEP_LOG_END@python.inline@@@"
124 ]
125 },
126 {
127 "cmd": [
128 "python",
129 "-u",
130 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
131 "runhooks"
132 ],
133 "cwd": "[SLAVE_BUILD]/src",
134 "env": {
135 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
136 "GYP_CROSSCOMPILE": "1",
137 "GYP_DEFINES": "OS=android component=static_library fastbuild=1 gomadir='[ BUILD]/goma' target_arch=arm use_goma=1",
138 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
139 },
140 "name": "gclient runhooks"
141 },
142 {
143 "cmd": [
144 "python",
145 "-u",
146 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py", 110 "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py",
147 "--show-path", 111 "--show-path",
148 "python", 112 "python",
149 "RECIPE_PACKAGE_REPO[build]/scripts/slave/compile.py", 113 "RECIPE_PACKAGE_REPO[build]/scripts/slave/compile.py",
150 "--gsutil-py-path", 114 "--gsutil-py-path",
151 "RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py", 115 "RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py",
152 "--ninja-path", 116 "--ninja-path",
153 "RECIPE_PACKAGE_REPO[depot_tools]/ninja", 117 "RECIPE_PACKAGE_REPO[depot_tools]/ninja",
154 "--target", 118 "--target",
155 "Release", 119 "Release",
156 "--src-dir", 120 "--src-dir",
157 "[SLAVE_BUILD]/src", 121 "[SLAVE_BUILD]/src",
158 "--goma-cache-dir", 122 "--goma-cache-dir",
159 "[GOMA_CACHE]", 123 "[GOMA_CACHE]",
160 "--build-tool", 124 "--build-tool",
161 "ninja", 125 "ninja",
162 "--compiler", 126 "--compiler",
163 "goma", 127 "goma",
164 "--goma-jsonstatus", 128 "--goma-jsonstatus",
165 "/path/to/tmp/json", 129 "/path/to/tmp/json",
166 "--goma-service-account-json-file", 130 "--goma-service-account-json-file",
167 "/creds/service_accounts/service-account-goma-client.json", 131 "/creds/service_accounts/service-account-goma-client.json",
168 "--goma-dir", 132 "--goma-dir",
169 "[BUILD]/goma", 133 "[BUILD]/goma",
170 "--", 134 "--",
171 "content_shell_apk" 135 "content_shell_test_apk",
136 "system_webview_shell_layout_test_apk",
137 "chrome_public_test_apk",
138 "chrome_sync_shell_test_apk",
139 "blimp_test_apk",
140 "android_webview_test_apk"
172 ], 141 ],
173 "env": { 142 "env": {
174 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 143 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
175 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s" 144 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
176 }, 145 },
177 "name": "compile", 146 "name": "compile",
178 "~followup_annotations": [ 147 "~followup_annotations": [
179 "@@@STEP_LOG_LINE@json.output (invalid)@null@@@", 148 "@@@STEP_LOG_LINE@json.output (invalid)@null@@@",
180 "@@@STEP_LOG_END@json.output (invalid)@@@" 149 "@@@STEP_LOG_END@json.output (invalid)@@@"
181 ] 150 ]
182 }, 151 },
183 { 152 {
184 "cmd": [ 153 "cmd": [
185 "python", 154 "python",
186 "-u", 155 "-u",
187 "[SLAVE_BUILD]/src/dart/tools/bots/dartium_android.py", 156 "[SLAVE_BUILD]/src/tools/android/find_annotated_tests.py",
188 "--build-products-dir", 157 "--test-apks",
189 "[SLAVE_BUILD]/src/out/Release" 158 "ContentShellTest SystemWebViewShellLayoutTest ChromePublicTest ChromeSync ShellTest BlimpTest AndroidWebViewTest",
159 "--apk-output-dir",
160 "[SLAVE_BUILD]/src/out/Release",
161 "--json-output-dir",
162 "[TMP_BASE]/annotated_tests_json_temp_tmp_1",
163 "--timestamp-string",
164 "20160621T230159",
165 "-v"
190 ], 166 ],
191 "name": "dartium_test" 167 "name": "run find_annotated_tests.py"
168 },
169 {
170 "cmd": [
171 "python",
172 "-u",
173 "RECIPE_MODULE[build::gsutil]/resources/gsutil_wrapper.py",
174 "--",
175 "RECIPE_PACKAGE_REPO[depot_tools]/gsutil.py",
176 "----",
177 "cp",
178 "[TMP_BASE]/annotated_tests_json_temp_tmp_1/20160621T230159-android-chrome .json",
179 "gs://chromium-annotated-tests/android"
180 ],
181 "name": "gsutil upload",
182 "~followup_annotations": [
183 "@@@STEP_LINK@gsutil.upload@https://storage.cloud.google.com/chromium-anno tated-tests/android@@@"
184 ]
185 },
186 {
187 "cmd": [
188 "python",
189 "-u",
190 "\nimport os, sys\nfrom common import chromium_utils # Error? See https:// crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD irectory(sys.argv[1])\n",
191 "[TMP_BASE]/annotated_tests_json_temp_tmp_1"
192 ],
193 "name": "rmtree Delete temp out directory",
194 "~followup_annotations": [
195 "@@@STEP_LOG_LINE@python.inline@@@@",
196 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
197 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
198 "@@@STEP_LOG_LINE@python.inline@@@@",
199 "@@@STEP_LOG_LINE@python.inline@@@@",
200 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
201 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
202 "@@@STEP_LOG_END@python.inline@@@"
203 ]
192 }, 204 },
193 { 205 {
194 "name": "$result", 206 "name": "$result",
195 "recipe_result": null, 207 "recipe_result": null,
196 "status_code": 0 208 "status_code": 0
197 } 209 }
198 ] 210 ]
OLDNEW
« no previous file with comments | « scripts/slave/recipes/android/find_annotated_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698