| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 DEPS = [ | 5 DEPS = [ |
| 6 'chromium', | 6 'chromium', |
| 7 'chromium_android', | 7 'chromium_android', |
| 8 'chromium_tests', | 8 'chromium_tests', |
| 9 'json', | 9 'json', |
| 10 'path', | 10 'path', |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 assert bot_config.get('parent_buildername') is None, ( | 51 assert bot_config.get('parent_buildername') is None, ( |
| 52 'Unexpected parent_buildername for builder %r on master %r.' % | 52 'Unexpected parent_buildername for builder %r on master %r.' % |
| 53 (buildername, mastername)) | 53 (buildername, mastername)) |
| 54 | 54 |
| 55 test = ( | 55 test = ( |
| 56 api.test('full_%s_%s' % (_sanitize_nonalpha(mastername), | 56 api.test('full_%s_%s' % (_sanitize_nonalpha(mastername), |
| 57 _sanitize_nonalpha(buildername))) + | 57 _sanitize_nonalpha(buildername))) + |
| 58 api.properties.generic(mastername=mastername, | 58 api.properties.generic(mastername=mastername, |
| 59 buildername=buildername, | 59 buildername=buildername, |
| 60 parent_buildername=bot_config.get( | 60 parent_buildername=bot_config.get( |
| 61 'parent_buildername')) + | 61 'parent_buildername'), |
| 62 got_revision='250000', |
| 63 got_webkit_revision='150000') + |
| 62 api.platform(bot_config['testing']['platform'], | 64 api.platform(bot_config['testing']['platform'], |
| 63 bot_config.get( | 65 bot_config.get( |
| 64 'chromium_config_kwargs', {}).get('TARGET_BITS', 64)) | 66 'chromium_config_kwargs', {}).get('TARGET_BITS', 64)) |
| 65 ) | 67 ) |
| 66 if bot_config.get('parent_buildername'): | 68 if bot_config.get('parent_buildername'): |
| 67 test += api.properties(parent_got_revision='1111111') | 69 test += api.properties(parent_got_revision='1111111') |
| 68 test += api.properties( | 70 test += api.properties( |
| 69 parent_build_archive_url='gs://test-domain/test-archive.zip') | 71 parent_build_archive_url='gs://test-domain/test-archive.zip') |
| 70 | 72 |
| 71 if bot_type in ['builder', 'builder_tester']: | 73 if bot_type in ['builder', 'builder_tester']: |
| 72 test += api.step_data('checkdeps', api.json.output([])) | 74 test += api.step_data('checkdeps', api.json.output([])) |
| 73 | 75 |
| 74 if mastername == 'client.v8': | 76 if mastername == 'client.v8': |
| 75 test += api.properties(revision='22135') | 77 test += api.properties(revision='22135') |
| 76 | 78 |
| 77 yield test | 79 yield test |
| 78 | 80 |
| 79 yield ( | 81 yield ( |
| 80 api.test('dynamic_gtest') + | 82 api.test('dynamic_gtest') + |
| 81 api.properties.generic(mastername='chromium.linux', | 83 api.properties.generic(mastername='chromium.linux', |
| 82 buildername='Linux Tests', | 84 buildername='Linux Tests', |
| 83 parent_buildername='Linux Builder') + | 85 parent_buildername='Linux Builder', |
| 86 got_revision='250000', |
| 87 got_webkit_revision='150000') + |
| 84 api.platform('linux', 64) + | 88 api.platform('linux', 64) + |
| 85 api.override_step_data('read test spec', api.json.output({ | 89 api.override_step_data('read test spec', api.json.output({ |
| 86 'Linux Tests': { | 90 'Linux Tests': { |
| 87 'gtest_tests': [ | 91 'gtest_tests': [ |
| 88 'base_unittests', | 92 'base_unittests', |
| 89 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, | 93 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, |
| 90 ], | 94 ], |
| 91 }, | 95 }, |
| 92 })) | 96 })) |
| 93 ) | 97 ) |
| 94 | 98 |
| 95 yield ( | 99 yield ( |
| 96 api.test('dynamic_gtest_win') + | 100 api.test('dynamic_gtest_win') + |
| 97 api.properties.generic(mastername='chromium.win', | 101 api.properties.generic(mastername='chromium.win', |
| 98 buildername='Win7 Tests (1)', | 102 buildername='Win7 Tests (1)', |
| 99 parent_buildername='Win Builder') + | 103 parent_buildername='Win Builder', |
| 104 got_revision='250000', |
| 105 got_webkit_revision='150000') + |
| 100 api.platform('win', 64) + | 106 api.platform('win', 64) + |
| 101 api.override_step_data('read test spec', api.json.output({ | 107 api.override_step_data('read test spec', api.json.output({ |
| 102 'Win7 Tests (1)': { | 108 'Win7 Tests (1)': { |
| 103 'gtest_tests': [ | 109 'gtest_tests': [ |
| 104 'aura_unittests', | 110 'aura_unittests', |
| 105 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, | 111 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, |
| 106 ], | 112 ], |
| 107 }, | 113 }, |
| 108 })) | 114 })) |
| 109 ) | 115 ) |
| 110 | 116 |
| 111 # Tests switching on asan and swiching off lsan for sandbox tester. | 117 # Tests switching on asan and swiching off lsan for sandbox tester. |
| 112 yield ( | 118 yield ( |
| 113 api.test('dynamic_gtest_memory') + | 119 api.test('dynamic_gtest_memory') + |
| 114 api.properties.generic(mastername='chromium.memory', | 120 api.properties.generic(mastername='chromium.memory', |
| 115 buildername='Linux ASan Tests (sandboxed)', | 121 buildername='Linux ASan Tests (sandboxed)', |
| 116 parent_buildername='Linux ASan LSan Builder') + | 122 parent_buildername='Linux ASan LSan Builder', |
| 123 got_revision='250000', |
| 124 got_webkit_revision='150000') + |
| 117 api.platform('linux', 64) + | 125 api.platform('linux', 64) + |
| 118 api.override_step_data('read test spec', api.json.output({ | 126 api.override_step_data('read test spec', api.json.output({ |
| 119 'Linux ASan Tests (sandboxed)': { | 127 'Linux ASan Tests (sandboxed)': { |
| 120 'gtest_tests': [ | 128 'gtest_tests': [ |
| 121 'browser_tests', | 129 'browser_tests', |
| 122 ], | 130 ], |
| 123 }, | 131 }, |
| 124 })) | 132 })) |
| 125 ) | 133 ) |
| 126 | 134 |
| 127 # Tests that the memory builder is using the correct compile targets. | 135 # Tests that the memory builder is using the correct compile targets. |
| 128 yield ( | 136 yield ( |
| 129 api.test('dynamic_gtest_memory_builder') + | 137 api.test('dynamic_gtest_memory_builder') + |
| 130 api.properties.generic(mastername='chromium.memory', | 138 api.properties.generic(mastername='chromium.memory', |
| 131 buildername='Linux ASan LSan Builder', | 139 buildername='Linux ASan LSan Builder', |
| 132 revision='123456') + | 140 revision='123456', |
| 141 got_revision='250000', |
| 142 got_webkit_revision='150000') + |
| 133 api.platform('linux', 64) + | 143 api.platform('linux', 64) + |
| 134 # The builder should build 'browser_tests', because there exists a child | 144 # The builder should build 'browser_tests', because there exists a child |
| 135 # tester that uses that test. | 145 # tester that uses that test. |
| 136 api.override_step_data('read test spec', api.json.output({ | 146 api.override_step_data('read test spec', api.json.output({ |
| 137 'Linux ASan Tests (sandboxed)': { | 147 'Linux ASan Tests (sandboxed)': { |
| 138 'gtest_tests': [ | 148 'gtest_tests': [ |
| 139 'browser_tests', | 149 'browser_tests', |
| 140 ], | 150 ], |
| 141 }, | 151 }, |
| 142 })) | 152 })) |
| 143 ) | 153 ) |
| 144 | 154 |
| 145 yield ( | 155 yield ( |
| 146 api.test('arm') + | 156 api.test('arm') + |
| 147 api.properties.generic(mastername='chromium.fyi', | 157 api.properties.generic(mastername='chromium.fyi', |
| 148 buildername='Linux ARM Cross-Compile') + | 158 buildername='Linux ARM Cross-Compile', |
| 159 got_revision='250000', |
| 160 got_webkit_revision='150000') + |
| 149 api.platform('linux', 64) + | 161 api.platform('linux', 64) + |
| 150 api.override_step_data('read test spec', api.json.output({ | 162 api.override_step_data('read test spec', api.json.output({ |
| 151 'Linux ARM Cross-Compile': { | 163 'Linux ARM Cross-Compile': { |
| 152 'compile_targets': ['browser_tests_run'], | 164 'compile_targets': ['browser_tests_run'], |
| 153 'gtest_tests': [{ | 165 'gtest_tests': [{ |
| 154 'test': 'browser_tests', | 166 'test': 'browser_tests', |
| 155 'args': ['--gtest-filter', '*NaCl*'], | 167 'args': ['--gtest-filter', '*NaCl*'], |
| 156 'shard_index': 0, | 168 'shard_index': 0, |
| 157 'total_shards': 1, | 169 'total_shards': 1, |
| 158 }], | 170 }], |
| 159 }, | 171 }, |
| 160 })) | 172 })) |
| 161 ) | 173 ) |
| 162 | 174 |
| 163 yield ( | 175 yield ( |
| 164 api.test('findbugs_failure') + | 176 api.test('findbugs_failure') + |
| 165 api.properties.generic(mastername='chromium.linux', | 177 api.properties.generic(mastername='chromium.linux', |
| 166 buildername='Android Builder (dbg)') + | 178 buildername='Android Builder (dbg)', |
| 179 got_revision='250000', |
| 180 got_webkit_revision='150000') + |
| 167 api.platform('linux', 32) + | 181 api.platform('linux', 32) + |
| 168 api.step_data('findbugs', retcode=1) | 182 api.step_data('findbugs', retcode=1) |
| 169 ) | 183 ) |
| 170 | 184 |
| 171 yield ( | 185 yield ( |
| 172 api.test('msan') + | 186 api.test('msan') + |
| 173 api.properties.generic(mastername='chromium.fyi', | 187 api.properties.generic(mastername='chromium.fyi', |
| 174 buildername='Linux MSan Tests', | 188 buildername='Linux MSan Tests', |
| 175 parent_buildername='Chromium Linux MSan Builder') + | 189 parent_buildername='Chromium Linux MSan Builder', |
| 190 got_revision='250000', |
| 191 got_webkit_revision='150000') + |
| 176 api.platform('linux', 64) + | 192 api.platform('linux', 64) + |
| 177 api.override_step_data('read test spec', api.json.output({ | 193 api.override_step_data('read test spec', api.json.output({ |
| 178 'Linux MSan Tests': { | 194 'Linux MSan Tests': { |
| 179 'compile_targets': ['base_unittests'], | 195 'compile_targets': ['base_unittests'], |
| 180 'gtest_tests': ['base_unittests'], | 196 'gtest_tests': ['base_unittests'], |
| 181 }, | 197 }, |
| 182 })) | 198 })) |
| 183 ) | 199 ) |
| 184 | 200 |
| 185 yield ( | 201 yield ( |
| 186 api.test('buildnumber_zero') + | 202 api.test('buildnumber_zero') + |
| 187 api.properties.generic(mastername='chromium.linux', | 203 api.properties.generic(mastername='chromium.linux', |
| 188 buildername='Linux Tests', | 204 buildername='Linux Tests', |
| 189 parent_buildername='Linux Builder', | 205 parent_buildername='Linux Builder', |
| 190 buildnumber=0) + | 206 buildnumber=0, |
| 207 got_revision='250000', |
| 208 got_webkit_revision='150000') + |
| 191 api.platform('linux', 64) + | 209 api.platform('linux', 64) + |
| 192 api.override_step_data('read test spec', api.json.output({ | 210 api.override_step_data('read test spec', api.json.output({ |
| 193 'Linux Tests': { | 211 'Linux Tests': { |
| 194 'gtest_tests': [ | 212 'gtest_tests': [ |
| 195 'base_unittests', | 213 'base_unittests', |
| 196 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, | 214 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, |
| 197 ], | 215 ], |
| 198 }, | 216 }, |
| 199 })) | 217 })) |
| 200 ) | 218 ) |
| 201 | 219 |
| 202 yield ( | 220 yield ( |
| 203 api.test('buildspec_compile_targets') + | 221 api.test('buildspec_compile_targets') + |
| 204 api.properties.generic(mastername='chromium.linux', | 222 api.properties.generic(mastername='chromium.linux', |
| 205 buildername='Linux Builder (dbg)', | 223 buildername='Linux Builder (dbg)', |
| 206 buildnumber=1) + | 224 buildnumber=1, |
| 225 got_revision='250000', |
| 226 got_webkit_revision='150000') + |
| 207 api.platform('linux', 64) + | 227 api.platform('linux', 64) + |
| 208 api.override_step_data('read test spec', api.json.output({ | 228 api.override_step_data('read test spec', api.json.output({ |
| 209 "Linux Tests (dbg)(1)": { | 229 "Linux Tests (dbg)(1)": { |
| 210 "gtest_tests": [ | 230 "gtest_tests": [ |
| 211 'target_from_dbg_1' | 231 'target_from_dbg_1' |
| 212 ] | 232 ] |
| 213 }, | 233 }, |
| 214 "Linux Tests (dbg)(2)": { | 234 "Linux Tests (dbg)(2)": { |
| 215 "gtest_tests": [ | 235 "gtest_tests": [ |
| 216 'target_from_dbg_2' | 236 'target_from_dbg_2' |
| 217 ] | 237 ] |
| 218 }})) | 238 }})) |
| 219 ) | 239 ) |
| 220 | 240 |
| 221 # FIXME(iannucci): Make this test work. | 241 # FIXME(iannucci): Make this test work. |
| 222 #yield ( | 242 #yield ( |
| 223 # api.test('one_failure_keeps_going') + | 243 # api.test('one_failure_keeps_going') + |
| 224 # api.properties.generic(mastername='chromium.linux', | 244 # api.properties.generic(mastername='chromium.linux', |
| 225 # buildername='Linux Tests', | 245 # buildername='Linux Tests', |
| 226 # parent_buildername='Linux Builder') + | 246 # parent_buildername='Linux Builder') + |
| 227 # api.platform('linux', 64) + | 247 # api.platform('linux', 64) + |
| 228 # api.step_data('mojo_python_tests', retcode=1) | 248 # api.step_data('mojo_python_tests', retcode=1) |
| 229 #) | 249 #) |
| 230 | 250 |
| 231 yield ( | 251 yield ( |
| 232 api.test('one_failure_keeps_going_dynamic_tests') + | 252 api.test('one_failure_keeps_going_dynamic_tests') + |
| 233 api.properties.generic(mastername='chromium.linux', | 253 api.properties.generic(mastername='chromium.linux', |
| 234 buildername='Linux Tests', | 254 buildername='Linux Tests', |
| 235 parent_buildername='Linux Builder') + | 255 parent_buildername='Linux Builder', |
| 256 got_revision='250000', |
| 257 got_webkit_revision='150000') + |
| 236 api.platform('linux', 64) + | 258 api.platform('linux', 64) + |
| 237 api.override_step_data('read test spec', api.json.output({ | 259 api.override_step_data('read test spec', api.json.output({ |
| 238 'Linux Tests': { | 260 'Linux Tests': { |
| 239 'gtest_tests': [ | 261 'gtest_tests': [ |
| 240 'base_unittests', | 262 'base_unittests', |
| 241 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, | 263 {'test': 'browser_tests', 'shard_index': 0, 'total_shards': 2}, |
| 242 ], | 264 ], |
| 243 }, | 265 }, |
| 244 })) + | 266 })) + |
| 245 api.step_data('base_unittests', retcode=1) | 267 api.step_data('base_unittests', retcode=1) |
| 246 ) | 268 ) |
| OLD | NEW |