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

Side by Side Diff: infra/bots/recipe_modules/vars/api.py

Issue 2289343002: GN: add sanitize arg (Closed)
Patch Set: rebase Created 4 years, 3 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 5
6 # pylint: disable=W0201 6 # pylint: disable=W0201
7 7
8 8
9 from recipe_engine import recipe_api 9 from recipe_engine import recipe_api
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 self.images_dir = self.slave_dir.join('skimage') 75 self.images_dir = self.slave_dir.join('skimage')
76 self.skia_out = self.skia_dir.join('out', self.builder_name) 76 self.skia_out = self.skia_dir.join('out', self.builder_name)
77 self.swarming_out_dir = self.make_path(self.m.properties['swarm_out_dir']) 77 self.swarming_out_dir = self.make_path(self.m.properties['swarm_out_dir'])
78 self.local_skp_dir = self.slave_dir.join('skp') 78 self.local_skp_dir = self.slave_dir.join('skp')
79 self.local_svg_dir = self.slave_dir.join('svg') 79 self.local_svg_dir = self.slave_dir.join('svg')
80 if not self.is_compile_bot: 80 if not self.is_compile_bot:
81 self.skia_out = self.slave_dir.join('out') 81 self.skia_out = self.slave_dir.join('out')
82 self.tmp_dir = self.m.path['slave_build'].join('tmp') 82 self.tmp_dir = self.m.path['slave_build'].join('tmp')
83 83
84 # Some bots also require a checkout of chromium. 84 # Some bots also require a checkout of chromium.
85 self.need_chromium_checkout = 'CommandBuffer' in self.builder_name 85 self.need_chromium_checkout = False
86 if 'CommandBuffer' in self.builder_name: 86 if 'CommandBuffer' in self.builder_name:
87 self.need_chromium_checkout = True
87 self.gclient_env['GYP_CHROMIUM_NO_ACTION'] = '0' 88 self.gclient_env['GYP_CHROMIUM_NO_ACTION'] = '0'
88 if ((self.is_compile_bot and 89 if 'RecreateSKPs' in self.builder_name:
89 'SAN' in self.builder_name) or
90 'RecreateSKPs' in self.builder_name):
91 self.need_chromium_checkout = True 90 self.need_chromium_checkout = True
92 if 'RecreateSKPs' in self.builder_name: 91 self.gclient_env['CPPFLAGS'] = (
93 self.gclient_env['CPPFLAGS'] = ( 92 '-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1')
94 '-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1')
95 93
96 # Some bots also require a checkout of PDFium. 94 # Some bots also require a checkout of PDFium.
97 self.need_pdfium_checkout = 'PDFium' in self.builder_name 95 self.need_pdfium_checkout = 'PDFium' in self.builder_name
98 96
99 self.builder_cfg = self.m.builder_name_schema.DictForBuilderName( 97 self.builder_cfg = self.m.builder_name_schema.DictForBuilderName(
100 self.builder_name) 98 self.builder_name)
101 self.role = self.builder_cfg['role'] 99 self.role = self.builder_cfg['role']
102 if self.role == self.m.builder_name_schema.BUILDER_ROLE_HOUSEKEEPER: 100 if self.role == self.m.builder_name_schema.BUILDER_ROLE_HOUSEKEEPER:
103 self.configuration = CONFIG_RELEASE 101 self.configuration = CONFIG_RELEASE
104 else: 102 else:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 for s in skip_upload_bots: 138 for s in skip_upload_bots:
141 if s in self.m.properties['buildername']: 139 if s in self.m.properties['buildername']:
142 upload_dm_results = False 140 upload_dm_results = False
143 break 141 break
144 return upload_dm_results 142 return upload_dm_results
145 143
146 @property 144 @property
147 def upload_perf_results(self): 145 def upload_perf_results(self):
148 # TODO(borenet): Move this into the swarm_perf recipe. 146 # TODO(borenet): Move this into the swarm_perf recipe.
149 return ('Release' in self.m.properties['buildername']) 147 return ('Release' in self.m.properties['buildername'])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698