Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from master import master_config | |
| 6 from master.factory import chromium_factory | |
| 7 | |
| 8 defaults = {} | |
| 9 | |
| 10 helper = master_config.Helper(defaults) | |
| 11 B = helper.Builder | |
| 12 F = helper.Factory | |
| 13 S = helper.Scheduler | |
| 14 T = helper.Triggerable | |
| 15 | |
| 16 def win(): | |
| 17 return chromium_factory.ChromiumFactory('src/out', 'win32') | |
| 18 | |
| 19 defaults['category'] = '4win asan' | |
| 20 | |
| 21 # | |
| 22 # Main asan release scheduler for src/ | |
| 23 # | |
| 24 S('win_asan_rel', branch='src', treeStableTimer=60) | |
| 25 | |
| 26 # | |
| 27 # Triggerable scheduler for the rel asan builder | |
| 28 # | |
| 29 T('win_asan_rel_trigger') | |
| 30 | |
| 31 win_asan_archive = master_config.GetArchiveUrl('ChromiumMemory', | |
| 32 'Win ASAN Builder', | |
| 33 'Win_ASAN_Builder', | |
| 34 'win32') | |
| 35 | |
| 36 # tests_1 and tests_2 are lists like: | |
| 37 # (build_target_name, test_name) | |
| 38 # This would be much less ugly if there was a naming convention in place for | |
|
nsylvain
2012/11/27 00:23:15
why not spelling them all out? This seems a bit ov
iannucci
2012/11/27 01:39:13
I'll add aliases so that this list becomes one-dim
| |
| 39 # these things. | |
| 40 tests_1 = [ | |
| 41 (x+'_unittests', x) for x in [ | |
| 42 'base', | |
| 43 'cacheinvalidation', | |
| 44 'crypto', | |
| 45 'gpu', | |
| 46 'jingle', | |
| 47 'net'] | |
| 48 ] + [ | |
| 49 (x+'_tests', x) for x in [ | |
| 50 'safe_browsing'] | |
| 51 ] + [ | |
| 52 (x, x) for x in [ | |
| 53 'browser_tests'] | |
| 54 ] | |
| 55 | |
| 56 tests_2 = [ | |
| 57 (x+'_unittests', x) for x in [ | |
| 58 'googleurl', | |
| 59 'media', | |
| 60 'printing', | |
| 61 'remoting'] | |
| 62 ] + [ | |
| 63 (x+'_tests', x) for x in [ | |
| 64 'unit'] | |
| 65 ] + [ | |
| 66 (x, x) for x in [ | |
| 67 'browser_tests', | |
| 68 'content_browsertests', | |
| 69 'ppapi_unittests'] | |
| 70 ] | |
| 71 | |
| 72 # | |
| 73 # Windows ASAN Rel Builder | |
| 74 # | |
| 75 win_asan_rel_options = [ | |
| 76 '--compiler=goma', | |
| 77 '--build-tool=ninja', | |
| 78 ]+list( # extract the build target names from the tests_[12] | |
| 79 zip(*tests_1)[0] | |
| 80 )+list( | |
| 81 zip(*tests_2)[0] | |
| 82 ) | |
| 83 | |
| 84 B('Win ASAN Builder', 'win_asan_rel', 'compile', 'win_asan_rel', | |
| 85 auto_reboot=False, notify_on_missing=True) | |
| 86 F('win_asan_rel', win().ChromiumASANFactory( | |
| 87 slave_type='Builder', | |
| 88 options=win_asan_rel_options, | |
| 89 compile_timeout=4800, | |
|
nsylvain
2012/11/27 00:23:15
do you think this is necessary? Does it really tak
iannucci
2012/11/27 01:39:13
I added that after it timed out on my bare metal m
| |
| 90 factory_properties={ | |
| 91 'asan': True, | |
| 92 'gclient_env': { | |
| 93 'GYP_DEFINES': ( | |
| 94 'asan=1 win_z7=1 chromium_win_pch=0 ' | |
| 95 'component=static_library '), | |
| 96 'GYP_GENERATORS': 'ninja', }, | |
| 97 'trigger': 'win_asan_rel_trigger' })) | |
| 98 | |
| 99 # | |
| 100 # Win ASAN Rel testers | |
| 101 # | |
| 102 B('Win ASAN Tests (1)', 'win_asan_rel_tests_1', 'testers', | |
| 103 'win_asan_rel_trigger', notify_on_missing=True) | |
| 104 F('win_asan_rel_tests_1', win().ChromiumASANFactory( | |
| 105 slave_type='Tester', | |
| 106 build_url=win_asan_archive, | |
| 107 tests=list(zip(*tests_1)[1]), # extract the tests from tests_1 | |
| 108 factory_properties={ | |
| 109 'asan': True, | |
| 110 'browser_total_shards': 2, | |
| 111 'browser_shard_index': 1, | |
| 112 'testing_env': { | |
| 113 'CHROME_ALLOCATOR': 'WINHEAP'}})) | |
| 114 | |
| 115 B('Win ASAN Tests (2)', 'win_asan_rel_tests_2', 'testers', | |
| 116 'win_asan_rel_trigger', notify_on_missing=True) | |
| 117 F('win_asan_rel_tests_2', win().ChromiumASANFactory( | |
| 118 slave_type='Tester', | |
| 119 build_url=win_asan_archive, | |
| 120 tests=list(zip(*tests_2)[1]), # extract the tests from tests_2 | |
| 121 factory_properties={ | |
| 122 'asan': True, | |
| 123 'browser_total_shards': 2, | |
| 124 'browser_shard_index': 2, | |
| 125 'testing_env': { | |
| 126 'CHROME_ALLOCATOR': 'WINHEAP'}})) | |
| 127 | |
| 128 def Update(config, active_master, c): | |
| 129 return helper.Update(c) | |
| OLD | NEW |