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

Side by Side Diff: scripts/master/factory/chromium_factory.py

Issue 11379003: Add Windows ASAN bots. (Closed) Base URL: http://git.chromium.org/chromium/tools/build.git@neuter
Patch Set: formatting Created 8 years 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
OLDNEW
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 """Utility class to build the chromium master BuildFactory's. 5 """Utility class to build the chromium master BuildFactory's.
6 6
7 Based on gclient_factory.py and adds chromium-specific steps.""" 7 Based on gclient_factory.py and adds chromium-specific steps."""
8 8
9 import os 9 import os
10 import re 10 import re
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 872
873 tests_for_build = [ 873 tests_for_build = [
874 re.match('^(?:valgrind_|heapcheck_)?(.*)$', t).group(1) for t in tests] 874 re.match('^(?:valgrind_|heapcheck_)?(.*)$', t).group(1) for t in tests]
875 875
876 # Ensure that component is set correctly in the gyp defines. 876 # Ensure that component is set correctly in the gyp defines.
877 ForceComponent(target, project, factory_properties['gclient_env']) 877 ForceComponent(target, project, factory_properties['gclient_env'])
878 878
879 # Ensure GYP errors out if files referenced in .gyp files are missing. 879 # Ensure GYP errors out if files referenced in .gyp files are missing.
880 self.ForceMissingFilesToBeFatal(project, factory_properties['gclient_env']) 880 self.ForceMissingFilesToBeFatal(project, factory_properties['gclient_env'])
881 881
882 is_windows_asan_builder = (slave_type == 'Builder' and
M-A Ruel 2012/11/28 15:07:48 and BuilderTester?
iannucci 2012/11/29 02:31:38 Nope, just builder, since the zip step doesn't hap
883 self._target_platform == 'win32' and
884 factory_properties.get('asan'))
M-A Ruel 2012/11/28 15:07:48 but in scripts/master/factory/gclient_factory.py l
iannucci 2012/11/29 02:31:38 Agreed... I checked GCLIENT_ENV there to be consis
885
882 factory = self.BuildFactory(target, clobber, tests_for_build, mode, 886 factory = self.BuildFactory(target, clobber, tests_for_build, mode,
883 slave_type, options, compile_timeout, build_url, 887 slave_type, options, compile_timeout, build_url,
884 project, factory_properties, 888 project, factory_properties,
885 gclient_deps=gclient_deps) 889 gclient_deps=gclient_deps,
890 skip_archive_steps=is_windows_asan_builder)
886 891
887 # Get the factory command object to create new steps to the factory. 892 # Get the factory command object to create new steps to the factory.
888 chromium_cmd_obj = chromium_commands.ChromiumCommands(factory, 893 chromium_cmd_obj = chromium_commands.ChromiumCommands(factory,
889 target, 894 target,
890 self._build_dir, 895 self._build_dir,
891 self._target_platform) 896 self._target_platform)
892 897
898 # Add ASANification step for windows
899 # MUST BE FIRST STEP ADDED AFTER BuildFactory CALL in order to add back
900 # the ZipBuild step in it's expected place
901 if is_windows_asan_builder:
902 chromium_cmd_obj.AddWindowsASANStep()
903 # Need to add the Zip Build step back
904 chromium_cmd_obj.AddZipBuild(halt_on_failure=True,
905 factory_properties=factory_properties)
906
893 # Add this archive build step. 907 # Add this archive build step.
894 if factory_properties.get('archive_build'): 908 if factory_properties.get('archive_build'):
895 chromium_cmd_obj.AddArchiveBuild(factory_properties=factory_properties) 909 chromium_cmd_obj.AddArchiveBuild(factory_properties=factory_properties)
896 910
897 if factory_properties.get('asan_archive_build'): 911 if factory_properties.get('asan_archive_build'):
898 chromium_cmd_obj.AddAsanArchiveBuild( 912 chromium_cmd_obj.AddAsanArchiveBuild(
899 factory_properties=factory_properties) 913 factory_properties=factory_properties)
900 914
901 # Add the package source step. 915 # Add the package source step.
902 if slave_type == 'Indexer': 916 if slave_type == 'Indexer':
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 build_dir=web_build_dir) 1279 build_dir=web_build_dir)
1266 chromium_cmd_obj.AddChromebotServer(factory_properties) 1280 chromium_cmd_obj.AddChromebotServer(factory_properties)
1267 chromium_cmd_obj.AddReliabilityTests(client_os) 1281 chromium_cmd_obj.AddReliabilityTests(client_os)
1268 elif slave_type == 'ChromebotClient': 1282 elif slave_type == 'ChromebotClient':
1269 chromium_cmd_obj.AddGetBuildForChromebot(client_os, 1283 chromium_cmd_obj.AddGetBuildForChromebot(client_os,
1270 extract=True, 1284 extract=True,
1271 build_url=build_url) 1285 build_url=build_url)
1272 chromium_cmd_obj.AddChromebotClient(factory_properties) 1286 chromium_cmd_obj.AddChromebotClient(factory_properties)
1273 1287
1274 return factory 1288 return factory
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698