Skip to content

Commit 8e77631

Browse files
erock2112Skia Commit-Bot
authored andcommitted
Remove some non-inclusive language in recipes
Bug: chromium:1101491 Bug: b/161896447 Change-Id: I84854612611cbf191ad286853b9069978d5e1dd7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/307231 Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Eric Boren <borenet@google.com>
1 parent 982fff2 commit 8e77631

File tree

16 files changed

+46
-46
lines changed

16 files changed

+46
-46
lines changed

infra/bots/recipe_modules/build/android.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def compile_fn(api, checkout_root, out_dir):
3232

3333
quote = lambda x: '"%s"' % x
3434
args = {
35-
'ndk': quote(api.vars.slave_dir.join(ndk_path)),
35+
'ndk': quote(api.vars.workdir.join(ndk_path)),
3636
'target_cpu': quote(target_arch),
3737
'werror': 'true',
3838
}
@@ -79,8 +79,8 @@ def compile_fn(api, checkout_root, out_dir):
7979
# Build the APK.
8080
ndk_asset = 'android_ndk_linux'
8181
sdk_asset = 'android_sdk_linux'
82-
android_ndk = api.vars.slave_dir.join(ndk_asset)
83-
android_home = api.vars.slave_dir.join(sdk_asset, 'android-sdk')
82+
android_ndk = api.vars.workdir.join(ndk_asset)
83+
android_home = api.vars.workdir.join(sdk_asset, 'android-sdk')
8484
env = {
8585
'ANDROID_NDK': android_ndk,
8686
'ANDROID_HOME': android_home,

infra/bots/recipe_modules/build/chromebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def compile_fn(api, checkout_root, out_dir):
2121

2222
# Currently we mount this directory to /SRC in Docker.
2323
# TODO(westont): Add docker module API to match binding to actual structure.
24-
top_level = '/SRC' if 'Docker' in builder_name else str(api.vars.slave_dir)
24+
top_level = '/SRC' if 'Docker' in builder_name else str(api.vars.workdir)
2525

2626
clang_linux = os.path.join(top_level, 'clang_linux')
2727
# This is a pretty typical arm-linux-gnueabihf sysroot

infra/bots/recipe_modules/build/default.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def compile_swiftshader(api, extra_tokens, swiftshader_root, cc, cxx, out):
3131
'-DSWIFTSHADER_BUILD_TESTS=OFF',
3232
'-DSWIFTSHADER_WARNINGS_AS_ERRORS=0',
3333
]
34-
cmake_bin = str(api.vars.slave_dir.join('cmake_linux', 'bin'))
34+
cmake_bin = str(api.vars.workdir.join('cmake_linux', 'bin'))
3535
env = {
3636
'CC': cc,
3737
'CXX': cxx,
@@ -47,7 +47,7 @@ def compile_swiftshader(api, extra_tokens, swiftshader_root, cc, cxx, out):
4747

4848
if san:
4949
short,full = san
50-
clang_linux = str(api.vars.slave_dir.join('clang_linux'))
50+
clang_linux = str(api.vars.workdir.join('clang_linux'))
5151
libcxx = clang_linux + '/' + short
5252
cflags = ' '.join([
5353
'-fsanitize=' + full,
@@ -80,8 +80,8 @@ def compile_fn(api, checkout_root, out_dir):
8080
os = api.vars.builder_cfg.get('os', '')
8181
target_arch = api.vars.builder_cfg.get('target_arch', '')
8282

83-
clang_linux = str(api.vars.slave_dir.join('clang_linux'))
84-
win_toolchain = str(api.vars.slave_dir.join('win_toolchain'))
83+
clang_linux = str(api.vars.workdir.join('clang_linux'))
84+
win_toolchain = str(api.vars.workdir.join('win_toolchain'))
8585

8686
cc, cxx, ccache = None, None, None
8787
extra_cflags = []
@@ -99,7 +99,7 @@ def compile_fn(api, checkout_root, out_dir):
9999
XCODE_BUILD_VERSION = '11e503a'
100100
extra_cflags.append(
101101
'-DDUMMY_xcode_build_version=%s' % XCODE_BUILD_VERSION)
102-
mac_toolchain_cmd = api.vars.slave_dir.join(
102+
mac_toolchain_cmd = api.vars.workdir.join(
103103
'mac_toolchain', 'mac_toolchain')
104104
xcode_app_path = api.vars.cache_dir.join('Xcode.app')
105105
# Copied from
@@ -139,12 +139,12 @@ def compile_fn(api, checkout_root, out_dir):
139139
# ccache + clang-tidy.sh chokes on the argument list.
140140
if (api.vars.is_linux or os == 'Mac' or os == 'Mac10.15.5') and 'Tidy' not in extra_tokens:
141141
if api.vars.is_linux:
142-
ccache = api.vars.slave_dir.join('ccache_linux', 'bin', 'ccache')
142+
ccache = api.vars.workdir.join('ccache_linux', 'bin', 'ccache')
143143
# As of 2020-02-07, the sum of each Debian10-Clang-x86
144144
# non-flutter/android/chromebook build takes less than 75G cache space.
145145
env['CCACHE_MAXSIZE'] = '75G'
146146
else:
147-
ccache = api.vars.slave_dir.join('ccache_mac', 'bin', 'ccache')
147+
ccache = api.vars.workdir.join('ccache_mac', 'bin', 'ccache')
148148
# As of 2020-02-10, the sum of each Build-Mac-Clang- non-android build
149149
# takes ~30G cache space.
150150
env['CCACHE_MAXSIZE'] = '50G'
@@ -280,12 +280,12 @@ def compile_fn(api, checkout_root, out_dir):
280280
args['skia_use_opencl'] = 'true'
281281
if api.vars.is_linux:
282282
extra_cflags.append(
283-
'-isystem%s' % api.vars.slave_dir.join('opencl_headers'))
283+
'-isystem%s' % api.vars.workdir.join('opencl_headers'))
284284
extra_ldflags.append(
285-
'-L%s' % api.vars.slave_dir.join('opencl_ocl_icd_linux'))
285+
'-L%s' % api.vars.workdir.join('opencl_ocl_icd_linux'))
286286
elif 'Win' in os:
287287
extra_cflags.append(
288-
'-imsvc%s' % api.vars.slave_dir.join('opencl_headers'))
288+
'-imsvc%s' % api.vars.workdir.join('opencl_headers'))
289289
extra_ldflags.append(
290290
'/LIBPATH:%s' %
291291
skia_dir.join('third_party', 'externals', 'opencl-lib', '3-0', 'lib',
@@ -294,11 +294,11 @@ def compile_fn(api, checkout_root, out_dir):
294294
# Bots use Chromium signing cert.
295295
args['skia_ios_identity'] = '".*GS9WA.*"'
296296
# Get mobileprovision via the CIPD package.
297-
args['skia_ios_profile'] = '"%s"' % api.vars.slave_dir.join(
297+
args['skia_ios_profile'] = '"%s"' % api.vars.workdir.join(
298298
'provisioning_profile_ios',
299299
'Upstream_Testing_Provisioning_Profile.mobileprovision')
300300
if compiler == 'Clang' and 'Win' in os:
301-
args['clang_win'] = '"%s"' % api.vars.slave_dir.join('clang_win')
301+
args['clang_win'] = '"%s"' % api.vars.workdir.join('clang_win')
302302
extra_cflags.append('-DDUMMY_clang_win_version=%s' %
303303
api.run.asset_version('clang_win', skia_dir))
304304

infra/bots/recipe_modules/flavor/android.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def _scale_cpu(self, cpu, target_percent):
348348

349349

350350
def _asan_setup_path(self):
351-
return self.m.vars.slave_dir.join(
351+
return self.m.vars.workdir.join(
352352
'android_ndk_linux', 'toolchains', 'llvm', 'prebuilt', 'linux-x86_64',
353353
'lib64', 'clang', '9.0.8', 'bin', 'asan_device_setup')
354354

infra/bots/recipe_modules/flavor/default.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,38 +127,38 @@ def step(self, name, cmd, **unused_kwargs):
127127
path = []
128128
ld_library_path = []
129129

130-
slave_dir = self.m.vars.slave_dir
131-
clang_linux = str(slave_dir.join('clang_linux'))
130+
workdir = self.m.vars.workdir
131+
clang_linux = str(workdir.join('clang_linux'))
132132
extra_tokens = self.m.vars.extra_tokens
133133

134134
if self.m.vars.is_linux:
135135
if (self.m.vars.builder_cfg.get('cpu_or_gpu', '') == 'GPU'
136136
and 'Intel' in self.m.vars.builder_cfg.get('cpu_or_gpu_value', '')):
137-
dri_path = slave_dir.join('mesa_intel_driver_linux')
137+
dri_path = workdir.join('mesa_intel_driver_linux')
138138
ld_library_path.append(dri_path)
139139
env['LIBGL_DRIVERS_PATH'] = str(dri_path)
140140
env['VK_ICD_FILENAMES'] = str(dri_path.join('intel_icd.x86_64.json'))
141141

142142
if 'Vulkan' in extra_tokens:
143-
env['VULKAN_SDK'] = str(slave_dir.join('linux_vulkan_sdk'))
144-
path.append(slave_dir.join('linux_vulkan_sdk', 'bin'))
145-
ld_library_path.append(slave_dir.join('linux_vulkan_sdk', 'lib'))
143+
env['VULKAN_SDK'] = str(workdir.join('linux_vulkan_sdk'))
144+
path.append(workdir.join('linux_vulkan_sdk', 'bin'))
145+
ld_library_path.append(workdir.join('linux_vulkan_sdk', 'lib'))
146146
# Enable layers for Debug only to avoid affecting perf results on
147147
# Release.
148148
# ASAN reports leaks in the Vulkan SDK when the debug layer is enabled.
149149
# TSAN runs out of memory.
150150
if (self.m.vars.builder_cfg.get('configuration', '') != 'Release' and
151151
'ASAN' not in extra_tokens and
152152
'TSAN' not in extra_tokens):
153-
env['VK_LAYER_PATH'] = str(slave_dir.join(
153+
env['VK_LAYER_PATH'] = str(workdir.join(
154154
'linux_vulkan_sdk', 'etc', 'vulkan', 'explicit_layer.d'))
155155

156156
if 'OpenCL' in extra_tokens:
157-
ld_library_path.append(slave_dir.join('opencl_ocl_icd_linux'))
157+
ld_library_path.append(workdir.join('opencl_ocl_icd_linux'))
158158
# TODO(dogben): Limit to the appropriate GPUs when we start running on
159159
# GPUs other than IntelIris640.
160160
# Skylake and later use the NEO driver.
161-
neo_path = slave_dir.join('opencl_intel_neo_linux')
161+
neo_path = workdir.join('opencl_intel_neo_linux')
162162
ld_library_path.append(neo_path)
163163
# Generate vendors dir contaning the ICD file pointing to the NEO OpenCL
164164
# library.
@@ -191,7 +191,7 @@ def step(self, name, cmd, **unused_kwargs):
191191
elif 'ProcDump' in extra_tokens:
192192
dumps_dir = self.m.path.join(self.m.vars.swarming_out_dir, 'dumps')
193193
self.m.file.ensure_directory('makedirs dumps', dumps_dir)
194-
procdump = str(self.m.vars.slave_dir.join('procdump_win',
194+
procdump = str(self.m.vars.workdir.join('procdump_win',
195195
'procdump64.exe'))
196196
# Full docs for ProcDump here:
197197
# https://docs.microsoft.com/en-us/sysinternals/downloads/procdump
@@ -242,7 +242,7 @@ def step(self, name, cmd, **unused_kwargs):
242242
if name in to_symbolize and self.m.vars.is_linux:
243243
# Convert path objects or placeholders into strings such that they can
244244
# be passed to symbolize_stack_trace.py
245-
args = [slave_dir] + [str(x) for x in cmd]
245+
args = [workdir] + [str(x) for x in cmd]
246246
with self.m.context(cwd=self.m.path['start_dir'].join('skia'), env=env):
247247
self._py('symbolized %s' % name,
248248
self.module.resource('symbolize_stack_trace.py'),

infra/bots/recipe_modules/flavor/ios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, m, app_name):
2929
def env(self):
3030
return {
3131
'IOS_BUNDLE_ID': 'com.google.%s' % self.app_name,
32-
'IOS_MOUNT_POINT': self.m.vars.slave_dir.join('mnt_iosdevice'),
32+
'IOS_MOUNT_POINT': self.m.vars.workdir.join('mnt_iosdevice'),
3333
}
3434

3535
def context(self):

infra/bots/recipe_modules/flavor/valgrind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, m, app_name):
1414
super(ValgrindFlavor, self).__init__(m, app_name)
1515
self._suppressions_file = self.m.path['start_dir'].join(
1616
'skia', 'tools', 'valgrind.supp')
17-
self._valgrind_cipd_dir = self.m.vars.slave_dir.join('valgrind')
17+
self._valgrind_cipd_dir = self.m.vars.workdir.join('valgrind')
1818
self._valgrind_fake_dir = self._valgrind_cipd_dir
1919
self._valgrind = self._valgrind_fake_dir.join('bin', 'valgrind')
2020
self._lib_dir = self._valgrind_fake_dir.join('lib', 'valgrind')

infra/bots/recipe_modules/infra/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class InfraApi(recipe_api.RecipeApi):
1515
@property
1616
def goroot(self):
17-
return self.m.vars.slave_dir.join('go', 'go')
17+
return self.m.vars.workdir.join('go', 'go')
1818

1919
@property
2020
def go_bin(self):

infra/bots/recipe_modules/vars/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ def setup(self):
2727
# Setup
2828
self.builder_name = self.m.properties['buildername']
2929

30-
self.slave_dir = self.m.path['start_dir']
30+
self.workdir = self.m.path['start_dir']
3131

3232
# Special input/output directories.
33-
self.build_dir = self.slave_dir.join('build')
33+
self.build_dir = self.workdir.join('build')
3434

3535
self.default_env = self.m.context.env
3636
self.default_env['CHROME_HEADLESS'] = '1'
3737
self.default_env['PATH'] = self.m.path.pathsep.join([
3838
self.default_env.get('PATH', '%(PATH)s'),
3939
str(self.m.bot_update.repo_resource()),
4040
])
41-
self.cache_dir = self.slave_dir.join('cache')
41+
self.cache_dir = self.workdir.join('cache')
4242

43-
self.swarming_out_dir = self.slave_dir.join(
43+
self.swarming_out_dir = self.workdir.join(
4444
self.m.properties.get('swarm_out_dir', 'tmp'))
4545

4646
self.tmp_dir = self.m.path['start_dir'].join('tmp')

infra/bots/recipe_modules/vars/examples/full.expected/Build-Debian10-Clang-x86_64-Release-SKNX_NO_SIMD.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
"@@@SET_BUILD_PROPERTY@patch_storage@\"gerrit\"@@@",
4444
"@@@SET_BUILD_PROPERTY@patchset@\"None\"@@@",
4545
"@@@SET_BUILD_PROPERTY@role@\"Build\"@@@",
46-
"@@@SET_BUILD_PROPERTY@slave_dir@\"[START_DIR]\"@@@",
4746
"@@@SET_BUILD_PROPERTY@swarming_out_dir@\"[START_DIR]/[SWARM_OUT_DIR]\"@@@",
48-
"@@@SET_BUILD_PROPERTY@tmp_dir@\"[START_DIR]/tmp\"@@@"
47+
"@@@SET_BUILD_PROPERTY@tmp_dir@\"[START_DIR]/tmp\"@@@",
48+
"@@@SET_BUILD_PROPERTY@workdir@\"[START_DIR]\"@@@"
4949
]
5050
},
5151
{

0 commit comments

Comments
 (0)