7PYTHON_VERSION_COMPATIBILITY =
"PY3"
18 'recipe_engine/properties',
25DOCKER_IMAGE =
'gcr.io/skia-public/gold-karma-chrome-tests:87.0.4280.88_v2'
26INNER_KARMA_SCRIPT =
'skia/infra/pathkit/test_pathkit.sh'
31 api.flavor.setup(
"dm")
32 checkout_root = api.path.start_dir
33 out_dir = api.vars.swarming_out_dir
37 copy_dest = checkout_root.join(
'skia',
'modules',
'pathkit',
39 if 'asmjs' in api.vars.builder_name:
40 copy_dest = checkout_root.join(
'skia',
'modules',
'pathkit',
43 base_dir = api.vars.build_dir
44 bundle_name =
'pathkit.wasm'
45 if 'asmjs' in api.vars.builder_name:
48 if 'Debug' in api.vars.builder_name:
51 bundle_name =
'pathkit.js.mem'
54 'src': base_dir.join(
'pathkit.js'),
55 'dst': copy_dest.join(
'pathkit.js'),
59 'src': base_dir.join(bundle_name),
60 'dst': copy_dest.join(bundle_name),
62 recursive_read = [checkout_root.join(
'skia')]
65 if 'asmjs' in api.vars.builder_name:
66 docker_args = [
'--env',
'ASM_JS=1']
69 '--builder', api.vars.builder_name,
70 '--git_hash', api.properties[
'revision'],
71 '--buildbucket_build_id', api.properties.get(
'buildbucket_build_id',
''),
72 '--browser',
'Chrome',
73 '--config', api.vars.configuration,
74 '--source_type',
'pathkit',
76 if 'asmjs' in api.vars.builder_name:
77 args.extend([
'--compiled_language',
'asmjs'])
78 if api.vars.is_trybot:
80 '--issue', api.vars.issue,
81 '--patchset', api.vars.patchset,
85 name=
'Test PathKit with Docker',
86 docker_image=DOCKER_IMAGE,
87 src_dir=checkout_root,
89 script=checkout_root.join(INNER_KARMA_SCRIPT),
91 docker_args=docker_args,
93 recursive_read=recursive_read,
97 api.gold_upload.upload()
102 api.test(
'Test-Debian10-EMCC-GCE-CPU-AVX2-wasm-Debug-All-PathKit') +
103 api.properties(buildername=(
'Test-Debian10-EMCC-GCE-CPU-AVX2'
104 '-wasm-Debug-All-PathKit'),
105 repository=
'https://skia.googlesource.com/skia.git',
107 gs_bucket=
'skia-infra-gm',
108 path_config=
'kitchen',
109 swarm_out_dir=
'[SWARM_OUT_DIR]')
113 api.test(
'Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Debug-All-PathKit') +
114 api.properties(buildername=(
'Test-Debian10-EMCC-GCE-CPU-AVX2'
115 '-asmjs-Debug-All-PathKit'),
116 repository=
'https://skia.googlesource.com/skia.git',
118 gs_bucket=
'skia-infra-gm',
119 path_config=
'kitchen',
120 swarm_out_dir=
'[SWARM_OUT_DIR]')
124 api.test(
'Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Release-All-PathKit') +
125 api.properties(buildername=(
'Test-Debian10-EMCC-GCE-CPU-AVX2'
126 '-asmjs-Release-All-PathKit'),
127 repository=
'https://skia.googlesource.com/skia.git',
129 gs_bucket=
'skia-infra-gm',
130 path_config=
'kitchen',
131 swarm_out_dir=
'[SWARM_OUT_DIR]')
135 api.test(
'pathkit_trybot') +
136 api.properties(buildername=(
'Test-Debian10-EMCC-GCE-CPU-AVX2'
137 '-wasm-Debug-All-PathKit'),
138 repository=
'https://skia.googlesource.com/skia.git',
140 gs_bucket=
'skia-infra-gm',
141 path_config=
'kitchen',
142 swarm_out_dir=
'[SWARM_OUT_DIR]',
143 patch_ref=
'89/456789/12',
144 patch_repo=
'https://skia.googlesource.com/skia.git',
145 patch_storage=
'gerrit',
148 gerrit_project=
'skia',
149 gerrit_url=
'https://skia-review.googlesource.com/')