Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 from buildbot.changes import svnpoller | 5 from buildbot.changes import svnpoller |
| 6 from buildbot.scheduler import Triggerable | 6 from buildbot.scheduler import Triggerable |
| 7 from buildbot.scheduler import Scheduler | 7 from buildbot.scheduler import Scheduler |
| 8 | 8 |
| 9 # These modules come from scripts/master, which must be in the PYTHONPATH. | 9 # These modules come from scripts/master, which must be in the PYTHONPATH. |
| 10 from master import build_utils | 10 from master import build_utils |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 179 # TODO: Remove when crbug.com/112389 is fixed. | 179 # TODO: Remove when crbug.com/112389 is fixed. |
| 180 'component=static_library ' | 180 'component=static_library ' |
| 181 'werror= ' | 181 'werror= ' |
| 182 ) | 182 ) |
| 183 heapcheck_cros_gyp_defines = heapcheck_gyp_defines + ' chromeos=1' | 183 heapcheck_cros_gyp_defines = heapcheck_gyp_defines + ' chromeos=1' |
| 184 | 184 |
| 185 # IMPORTANT NOTE about adding new tests. | 185 # IMPORTANT NOTE about adding new tests. |
| 186 # If you want to add a new test, you first need to make sure it's: | 186 # If you want to add a new test, you first need to make sure it's: |
| 187 # a) buildable, | 187 # a) buildable, |
| 188 # b) runnable by the tools and | 188 # b) runnable by the tools and |
| 189 # c) the e-mail notifier is configured to watch for its failures. | 189 # c) the e-mail notifier is configured to watch for its failures. |
|
iannucci
2013/01/15 23:53:19
It would be worth following this IMPORTANT NOTE :P
| |
| 190 # | 190 # |
| 191 # Also, please do your best to estimate the time it takes to run the new test | 191 # Also, please do your best to estimate the time it takes to run the new test |
| 192 # under the tool and order the tests in a short-job-first manner if possible. | 192 # under the tool and order the tests in a short-job-first manner if possible. |
| 193 # | 193 # |
| 194 # Regarding (a), | 194 # Regarding (a), |
| 195 # New Valgrind/Mac tests must first be added as dependencies to the | 195 # New Valgrind/Mac tests must first be added as dependencies to the |
| 196 # 'chromium_builder_dbg_valgrind_mac' target in src/build/all.gyp; | 196 # 'chromium_builder_dbg_valgrind_mac' target in src/build/all.gyp; |
| 197 # New TSan/Win tests must first be added as dependencies to the | 197 # New TSan/Win tests must first be added as dependencies to the |
| 198 # 'chromium_builder_dbg_tsan_win' target in src/build/all.gyp; | 198 # 'chromium_builder_dbg_tsan_win' target in src/build/all.gyp; |
| 199 # New DrMemory/Win tests must first be added as dependencies to the | 199 # New DrMemory/Win tests must first be added as dependencies to the |
| 200 # 'chromium_builder_dbg_drmemory_win' target in src/build/all.gyp; | 200 # 'chromium_builder_dbg_drmemory_win' target in src/build/all.gyp; |
| 201 # | 201 # |
| 202 # Regarding (b), | 202 # Regarding (b), |
| 203 # 'chrome_tests.py' must be updated to handle the test name, | 203 # 'chrome_tests.py' must be updated to handle the test name, |
| 204 # without the 'TOOL_' prefix, where 'chrome_tests.py' is located | 204 # without the 'TOOL_' prefix, where 'chrome_tests.py' is located |
| 205 # at tools/heapcheck/ for Heapchecker tests, | 205 # at tools/heapcheck/ for Heapchecker tests, |
| 206 # at tools/valgrind/ for other tools. | 206 # at tools/valgrind/ for other tools. |
| 207 # | 207 # |
| 208 # Regarding (c), | 208 # Regarding (c), |
| 209 # See notifier_cfg.py for the existing tests and see the 'category' of the | 209 # See notifier_cfg.py for the existing tests and see the 'category' of the |
| 210 # builder you're dealing with. | 210 # builder you're dealing with. |
| 211 | 211 |
| 212 f_chromium_rel_linux_valgrind_builder = F_LINUX( | 212 f_chromium_rel_linux_valgrind_builder = F_LINUX( |
| 213 target='Release', | 213 target='Release', |
| 214 slave_type='Builder', | 214 slave_type='Builder', |
| 215 options=['--compiler=goma', | 215 options=['--compiler=goma', |
| 216 'base_unittests', | 216 'base_unittests', |
| 217 'components_unittests', | |
| 217 'content_unittests', | 218 'content_unittests', |
| 218 'crypto_unittests', | 219 'crypto_unittests', |
| 219 'device_unittests', | 220 'device_unittests', |
| 220 'googleurl_unittests', | 221 'googleurl_unittests', |
| 221 'ipc_tests', | 222 'ipc_tests', |
| 222 'media_unittests', | 223 'media_unittests', |
| 223 'net_unittests', | 224 'net_unittests', |
| 224 'ppapi_unittests', | 225 'ppapi_unittests', |
| 225 'printing_unittests', | 226 'printing_unittests', |
| 226 'remoting_unittests', | 227 'remoting_unittests', |
| 227 'sandbox_linux_unittests', | 228 'sandbox_linux_unittests', |
| 228 'sql_unittests', | 229 'sql_unittests', |
| 229 'sync_unit_tests', | 230 'sync_unit_tests', |
| 230 'ui_unittests', | 231 'ui_unittests', |
| 231 'unit_tests', | 232 'unit_tests', |
| 232 ], | 233 ], |
| 233 factory_properties={ | 234 factory_properties={ |
| 234 'gclient_env': { 'GYP_DEFINES' : 'build_for_tool=memcheck' }, | 235 'gclient_env': { 'GYP_DEFINES' : 'build_for_tool=memcheck' }, |
| 235 'trigger': 'chromium_linux_valgrind', | 236 'trigger': 'chromium_linux_valgrind', |
| 236 } | 237 } |
| 237 ) | 238 ) |
| 238 | 239 |
| 239 f_chromium_rel_linux_valgrind_tests_1 = F_LINUX( | 240 f_chromium_rel_linux_valgrind_tests_1 = F_LINUX( |
| 240 target='Release', | 241 target='Release', |
| 241 slave_type='Tester', | 242 slave_type='Tester', |
| 242 build_url=chromium_linux_valgrind_archive, | 243 build_url=chromium_linux_valgrind_archive, |
| 243 tests=['valgrind_crypto', | 244 tests=['valgrind_crypto', |
| 244 'valgrind_content', | 245 'valgrind_content', |
|
iannucci
2013/01/15 23:53:19
I suspect that you'll need to do something equival
| |
| 245 'valgrind_sync', | 246 'valgrind_sync', |
| 246 'valgrind_net', | 247 'valgrind_net', |
| 247 ], | 248 ], |
| 248 factory_properties={ 'needs_valgrind' : True, }) | 249 factory_properties={ 'needs_valgrind' : True, }) |
| 249 | 250 |
| 250 f_chromium_rel_linux_valgrind_tests_2 = F_LINUX( | 251 f_chromium_rel_linux_valgrind_tests_2 = F_LINUX( |
| 251 target='Release', | 252 target='Release', |
| 252 slave_type='Tester', | 253 slave_type='Tester', |
| 253 build_url=chromium_linux_valgrind_archive, | 254 build_url=chromium_linux_valgrind_archive, |
| 254 tests=['valgrind_googleurl', | 255 tests=['valgrind_googleurl', |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 333 #'valgrind_unit_1_of_4', | 334 #'valgrind_unit_1_of_4', |
| 334 #'valgrind_unit_2_of_4', | 335 #'valgrind_unit_2_of_4', |
| 335 ]) | 336 ]) |
| 336 | 337 |
| 337 f_cr_dbg_mac_valgrind_2 = F_MAC( | 338 f_cr_dbg_mac_valgrind_2 = F_MAC( |
| 338 build_url=chromium_mac_valgrind_archive, | 339 build_url=chromium_mac_valgrind_archive, |
| 339 slave_type='Tester', | 340 slave_type='Tester', |
| 340 factory_properties={ 'needs_valgrind' : True, }, | 341 factory_properties={ 'needs_valgrind' : True, }, |
| 341 # See IMPORTANT NOTE above before adding new tests. | 342 # See IMPORTANT NOTE above before adding new tests. |
| 342 tests=['valgrind_net', | 343 tests=['valgrind_net', |
| 343 'valgrind_content', | 344 'valgrind_content', |
|
iannucci
2013/01/15 23:53:19
Possibly need a valgrind_components here too
| |
| 344 # See above. | 345 # See above. |
| 345 #'valgrind_unit_3_of_4', | 346 #'valgrind_unit_3_of_4', |
| 346 #'valgrind_unit_4_of_4', | 347 #'valgrind_unit_4_of_4', |
| 347 ]) | 348 ]) |
| 348 | 349 |
| 349 # ChromeOS Valgrind bots: | 350 # ChromeOS Valgrind bots: |
| 350 f_chromium_rel_chromeos_valgrind_builder = F_CR_OS( | 351 f_chromium_rel_chromeos_valgrind_builder = F_CR_OS( |
| 351 target='Release', | 352 target='Release', |
| 352 slave_type='Builder', | 353 slave_type='Builder', |
| 353 options=['--compiler=goma', | 354 options=['--compiler=goma', |
| 354 'ash_unittests', | 355 'ash_unittests', |
| 355 'aura_unittests', | 356 'aura_unittests', |
| 356 'base_unittests', | 357 'base_unittests', |
| 357 'chromeos_unittests', | 358 'chromeos_unittests', |
| 359 'components_unittests', | |
| 358 'compositor_unittests', | 360 'compositor_unittests', |
| 359 'content_unittests', | 361 'content_unittests', |
| 360 'crypto_unittests', | 362 'crypto_unittests', |
| 361 'device_unittests', | 363 'device_unittests', |
| 362 'googleurl_unittests', | 364 'googleurl_unittests', |
| 363 'ipc_tests', | 365 'ipc_tests', |
| 364 'media_unittests', | 366 'media_unittests', |
| 365 'net_unittests', | 367 'net_unittests', |
| 366 'ppapi_unittests', | 368 'ppapi_unittests', |
| 367 'printing_unittests', | 369 'printing_unittests', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 400 factory_properties={ 'needs_valgrind' : True, 'chromeos': True }) | 402 factory_properties={ 'needs_valgrind' : True, 'chromeos': True }) |
| 401 | 403 |
| 402 f_chromium_rel_chromeos_valgrind_tests_3 = F_CR_OS( | 404 f_chromium_rel_chromeos_valgrind_tests_3 = F_CR_OS( |
| 403 target='Release', | 405 target='Release', |
| 404 slave_type='Tester', | 406 slave_type='Tester', |
| 405 build_url=chromium_chromeos_valgrind_archive, | 407 build_url=chromium_chromeos_valgrind_archive, |
| 406 tests=['valgrind_ash_unittests', | 408 tests=['valgrind_ash_unittests', |
| 407 'valgrind_aura', | 409 'valgrind_aura', |
| 408 'valgrind_base', | 410 'valgrind_base', |
| 409 'valgrind_chromeos_unittests', | 411 'valgrind_chromeos_unittests', |
| 410 'valgrind_content', | 412 'valgrind_content', |
|
iannucci
2013/01/15 23:53:19
ditto
| |
| 411 'valgrind_compositor', | 413 'valgrind_compositor', |
| 412 'valgrind_crypto', | 414 'valgrind_crypto', |
| 413 'valgrind_sandbox', | 415 'valgrind_sandbox', |
| 414 'valgrind_views', | 416 'valgrind_views', |
| 415 ], | 417 ], |
| 416 factory_properties={ 'needs_valgrind' : True, 'chromeos': True }) | 418 factory_properties={ 'needs_valgrind' : True, 'chromeos': True }) |
| 417 | 419 |
| 418 f_chromium_rel_chromeos_valgrind_tests_4 = F_CR_OS( | 420 f_chromium_rel_chromeos_valgrind_tests_4 = F_CR_OS( |
| 419 target='Release', | 421 target='Release', |
| 420 slave_type='Tester', | 422 slave_type='Tester', |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 488 factory_properties={ 'needs_valgrind' : True, }) | 490 factory_properties={ 'needs_valgrind' : True, }) |
| 489 | 491 |
| 490 f_chromium_rel_linux_tsan_3 = F_LINUX( | 492 f_chromium_rel_linux_tsan_3 = F_LINUX( |
| 491 target='Release', | 493 target='Release', |
| 492 slave_type='Tester', | 494 slave_type='Tester', |
| 493 build_url=chromium_linux_valgrind_archive, | 495 build_url=chromium_linux_valgrind_archive, |
| 494 # See IMPORTANT NOTE above before adding new tests. | 496 # See IMPORTANT NOTE above before adding new tests. |
| 495 tests=['tsan_crypto', | 497 tests=['tsan_crypto', |
| 496 'tsan_remoting', | 498 'tsan_remoting', |
| 497 'tsan_sync', | 499 'tsan_sync', |
| 498 'tsan_content', | 500 'tsan_content', |
|
iannucci
2013/01/15 23:53:19
maybe?
iannucci
2013/01/15 23:53:19
maybe?
| |
| 499 'tsan_base', | 501 'tsan_base', |
| 500 'tsan_unit_3_of_3', | 502 'tsan_unit_3_of_3', |
| 501 ], | 503 ], |
| 502 factory_properties={ 'needs_valgrind' : True, }) | 504 factory_properties={ 'needs_valgrind' : True, }) |
| 503 | 505 |
| 504 f_chromium_dbg_win_tsan = F_WIN( | 506 f_chromium_dbg_win_tsan = F_WIN( |
| 505 target='Debug', | 507 target='Debug', |
| 506 # See IMPORTANT NOTE above before adding new tests. | 508 # See IMPORTANT NOTE above before adding new tests. |
| 507 tests=[ | 509 tests=[ |
| 508 'tsan_googleurl', | 510 'tsan_googleurl', |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 555 'drmemory_light_unit', | 557 'drmemory_light_unit', |
| 556 ], | 558 ], |
| 557 factory_properties={'needs_drmemory': True} | 559 factory_properties={'needs_drmemory': True} |
| 558 ) | 560 ) |
| 559 | 561 |
| 560 # Heapcheck bots: | 562 # Heapcheck bots: |
| 561 f_chromium_dbg_linux_heapcheck = F_LINUX( | 563 f_chromium_dbg_linux_heapcheck = F_LINUX( |
| 562 target='Debug', | 564 target='Debug', |
| 563 options=['--compiler=goma', | 565 options=['--compiler=goma', |
| 564 'base_unittests', | 566 'base_unittests', |
| 567 'components_unittests', | |
| 565 'compositor_unittests', | 568 'compositor_unittests', |
| 566 'content_unittests', | 569 'content_unittests', |
| 567 'courgette_unittests', | 570 'courgette_unittests', |
| 568 'crypto_unittests', | 571 'crypto_unittests', |
| 569 'DumpRenderTree', | 572 'DumpRenderTree', |
| 570 'device_unittests', | 573 'device_unittests', |
| 571 'googleurl_unittests', | 574 'googleurl_unittests', |
| 572 'ipc_tests', | 575 'ipc_tests', |
| 573 'media_unittests', | 576 'media_unittests', |
| 574 'net_unittests', | 577 'net_unittests', |
| 575 'ppapi_unittests', | 578 'ppapi_unittests', |
| 576 'printing_unittests', | 579 'printing_unittests', |
| 577 'remoting_unittests', | 580 'remoting_unittests', |
| 578 'sql_unittests', | 581 'sql_unittests', |
| 579 'sync_unit_tests', | 582 'sync_unit_tests', |
| 580 'test_shell_tests', | 583 'test_shell_tests', |
| 581 'ui_unittests', | 584 'ui_unittests', |
| 582 'unit_tests', | 585 'unit_tests', |
| 583 ], | 586 ], |
| 584 # See IMPORTANT NOTE above before adding new tests. | 587 # See IMPORTANT NOTE above before adding new tests. |
| 585 tests=['heapcheck_googleurl', | 588 tests=['heapcheck_googleurl', |
| 586 'heapcheck_printing', | 589 'heapcheck_printing', |
| 587 'heapcheck_media', | 590 'heapcheck_media', |
| 588 'heapcheck_content', | 591 'heapcheck_content', |
|
iannucci
2013/01/15 23:53:19
here too
| |
| 589 'heapcheck_courgette', | 592 'heapcheck_courgette', |
| 590 'heapcheck_remoting', | 593 'heapcheck_remoting', |
| 591 'heapcheck_sql', | 594 'heapcheck_sql', |
| 592 'heapcheck_sync', | 595 'heapcheck_sync', |
| 593 'heapcheck_ipc', | 596 'heapcheck_ipc', |
| 594 'heapcheck_base', | 597 'heapcheck_base', |
| 595 'heapcheck_crypto', | 598 'heapcheck_crypto', |
| 596 'heapcheck_device_unittests', | 599 'heapcheck_device_unittests', |
| 597 'heapcheck_net', | 600 'heapcheck_net', |
| 598 'heapcheck_ui_unittests', | 601 'heapcheck_ui_unittests', |
| 599 'heapcheck_unit', | 602 'heapcheck_unit', |
| 600 'heapcheck_test_shell', | 603 'heapcheck_test_shell', |
| 601 ], | 604 ], |
| 602 factory_properties={ | 605 factory_properties={ |
| 603 'gclient_env': {'GYP_DEFINES' : heapcheck_gyp_defines} }, | 606 'gclient_env': {'GYP_DEFINES' : heapcheck_gyp_defines} }, |
| 604 ) | 607 ) |
| 605 | 608 |
| 606 # test_shell_tests are disabled on ChromeOS because of | 609 # test_shell_tests are disabled on ChromeOS because of |
| 607 # crbug.com/112575. | 610 # crbug.com/112575. |
| 608 f_chromium_dbg_chromeos_heapcheck = F_CR_OS( | 611 f_chromium_dbg_chromeos_heapcheck = F_CR_OS( |
| 609 target='Debug', | 612 target='Debug', |
| 610 options=['--compiler=goma', | 613 options=['--compiler=goma', |
| 611 'ash_unittests', | 614 'ash_unittests', |
| 612 'aura_unittests', | 615 'aura_unittests', |
| 613 'base_unittests', | 616 'base_unittests', |
| 614 'chromeos_unittests', | 617 'chromeos_unittests', |
| 618 'components_unittests', | |
| 615 'compositor_unittests', | 619 'compositor_unittests', |
| 616 'content_unittests', | 620 'content_unittests', |
| 617 'courgette_unittests', | 621 'courgette_unittests', |
| 618 'crypto_unittests', | 622 'crypto_unittests', |
| 619 'DumpRenderTree', | 623 'DumpRenderTree', |
| 620 'device_unittests', | 624 'device_unittests', |
| 621 'googleurl_unittests', | 625 'googleurl_unittests', |
| 622 'ipc_tests', | 626 'ipc_tests', |
| 623 'media_unittests', | 627 'media_unittests', |
| 624 'net_unittests', | 628 'net_unittests', |
| 625 'ppapi_unittests', | 629 'ppapi_unittests', |
| 626 'printing_unittests', | 630 'printing_unittests', |
| 627 'remoting_unittests', | 631 'remoting_unittests', |
| 628 'sql_unittests', | 632 'sql_unittests', |
| 629 'sync_unit_tests', | 633 'sync_unit_tests', |
| 630 #'test_shell_tests', | 634 #'test_shell_tests', |
| 631 'ui_unittests', | 635 'ui_unittests', |
| 632 'unit_tests', | 636 'unit_tests', |
| 633 'views_unittests', | 637 'views_unittests', |
| 634 ], | 638 ], |
| 635 # See IMPORTANT NOTE above before adding new tests. | 639 # See IMPORTANT NOTE above before adding new tests. |
| 636 tests=['heapcheck_ash_unittests', | 640 tests=['heapcheck_ash_unittests', |
| 637 'heapcheck_aura', | 641 'heapcheck_aura', |
| 638 'heapcheck_googleurl', | 642 'heapcheck_googleurl', |
| 639 'heapcheck_printing', | 643 'heapcheck_printing', |
| 640 'heapcheck_media', | 644 'heapcheck_media', |
| 641 'heapcheck_chromeos_unittests', | 645 'heapcheck_chromeos_unittests', |
| 642 'heapcheck_compositor', | 646 'heapcheck_compositor', |
| 643 'heapcheck_content', | 647 'heapcheck_content', |
|
iannucci
2013/01/15 23:53:19
possibly?
| |
| 644 'heapcheck_courgette', | 648 'heapcheck_courgette', |
| 645 'heapcheck_remoting', | 649 'heapcheck_remoting', |
| 646 'heapcheck_sql', | 650 'heapcheck_sql', |
| 647 'heapcheck_sync', | 651 'heapcheck_sync', |
| 648 'heapcheck_ipc', | 652 'heapcheck_ipc', |
| 649 'heapcheck_base', | 653 'heapcheck_base', |
| 650 'heapcheck_crypto', | 654 'heapcheck_crypto', |
| 651 'heapcheck_device_unittests', | 655 'heapcheck_device_unittests', |
| 652 'heapcheck_net', | 656 'heapcheck_net', |
| 653 'heapcheck_ui_unittests', | 657 'heapcheck_ui_unittests', |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 960 enable_http_status_push=ActiveMaster.is_production_host) | 964 enable_http_status_push=ActiveMaster.is_production_host) |
| 961 | 965 |
| 962 if ActiveMaster.is_production_host: | 966 if ActiveMaster.is_production_host: |
| 963 import notifier_cfg | 967 import notifier_cfg |
| 964 notifier_cfg.Update(config, ActiveMaster, c) | 968 notifier_cfg.Update(config, ActiveMaster, c) |
| 965 | 969 |
| 966 ####### PROJECT IDENTITY | 970 ####### PROJECT IDENTITY |
| 967 | 971 |
| 968 # Buildbot master url: | 972 # Buildbot master url: |
| 969 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.memory.fyi/' | 973 c['buildbotURL'] = 'http://build.chromium.org/p/chromium.memory.fyi/' |
| OLD | NEW |