7PYTHON_VERSION_COMPATIBILITY =
"PY3"
17 'recipe_engine/properties',
25DOCKER_IMAGE =
'gcr.io/skia-public/gold-karma-chrome-tests:87.0.4280.88_v2'
26INNER_KARMA_SCRIPT =
'skia/infra/canvaskit/test_canvaskit.sh'
30 api.flavor.setup(
'dm')
31 checkout_root = api.path.start_dir
32 out_dir = api.vars.swarming_out_dir
36 copy_dest = checkout_root.join(
'skia',
'modules',
'canvaskit',
38 api.file.ensure_directory(
'mkdirs copy_dest', copy_dest, mode=0o777)
39 base_dir = api.vars.build_dir
42 'src': base_dir.join(
'canvaskit.js'),
43 'dst': copy_dest.join(
'canvaskit.js'),
46 'src': base_dir.join(
'canvaskit.wasm'),
47 'dst': copy_dest.join(
'canvaskit.wasm'),
50 recursive_read = [checkout_root.join(
'skia')]
53 '--builder', api.vars.builder_name,
54 '--git_hash', api.properties[
'revision'],
55 '--buildbucket_build_id', api.properties.get(
'buildbucket_build_id',
''),
56 '--browser',
'Chrome',
57 '--config', api.vars.configuration,
58 '--source_type',
'canvaskit',
60 if api.vars.is_trybot:
62 '--issue', api.vars.issue,
63 '--patchset', api.vars.patchset,
67 name=
'Test CanvasKit with Docker',
68 docker_image=DOCKER_IMAGE,
69 src_dir=checkout_root,
71 script=checkout_root.join(INNER_KARMA_SCRIPT),
75 recursive_read=recursive_read,
79 api.gold_upload.upload()
83 api.test(
'Test-Debian10-EMCC-GCE-GPU-WEBGL1-wasm-Debug-All-CanvasKit') +
84 api.properties(buildername=(
'Test-Debian10-EMCC-GCE-GPU-WEBGL1'
85 '-wasm-Debug-All-CanvasKit'),
86 repository=
'https://skia.googlesource.com/skia.git',
88 gs_bucket=
'skia-infra-gm',
89 path_config=
'kitchen',
90 swarm_out_dir=
'[SWARM_OUT_DIR]')
94 api.test(
'canvaskit_trybot') +
95 api.properties(buildername=(
'Test-Debian10-EMCC-GCE-CPU-AVX2'
96 '-wasm-Debug-All-CanvasKit'),
97 repository=
'https://skia.googlesource.com/skia.git',
99 gs_bucket=
'skia-infra-gm',
100 path_config=
'kitchen',
101 swarm_out_dir=
'[SWARM_OUT_DIR]',
102 patch_ref=
'89/456789/12',
103 patch_repo=
'https://skia.googlesource.com/skia.git',
104 patch_storage=
'gerrit',
107 gerrit_project=
'skia',
108 gerrit_url=
'https://skia-review.googlesource.com/')