7PYTHON_VERSION_COMPATIBILITY =
"PY3"
18 'recipe_engine/properties',
25DOCKER_IMAGE =
'gcr.io/skia-public/gold-lottie-web-puppeteer:v2'
26LOTTIECAP_SCRIPT =
'skia/infra/lottiecap/docker/lottiecap_gold.sh'
31 api.flavor.setup(
"dm")
32 checkout_root = api.path.start_dir
33 out_dir = api.vars.swarming_out_dir
34 lottie_files_src = api.vars.workdir.join(
'lottie-samples')
35 lottie_files_dir =
'/tmp/lottie_files'
39 lottie_build = checkout_root.join(
'lottie',
'build',
'player')
42 api.file.ensure_directory(
'mkdirs out_dir', out_dir, mode=0o777)
49 api.file.rmtree(
'remove previous lottie files', lottie_files_dir)
50 api.file.copytree(
'copy lottie files', lottie_files_src, lottie_files_dir)
52 recursive_read = [lottie_build, lottie_files_dir]
56 'type=bind,source=%s,target=/LOTTIE_BUILD' % lottie_build,
58 'type=bind,source=%s,target=/LOTTIE_FILES' % lottie_files_dir
62 '--builder', api.vars.builder_name,
63 '--git_hash', api.properties[
'revision'],
64 '--buildbucket_build_id', api.properties.get(
'buildbucket_build_id',
66 '--bot_id', api.vars.swarming_bot_id,
67 '--task_id', api.vars.swarming_task_id,
68 '--browser',
'Chrome',
69 '--config', api.vars.configuration,
72 if api.vars.is_trybot:
74 '--issue', api.vars.issue,
75 '--patchset', api.vars.patchset,
76 '--patch_storage', api.vars.patch_storage,
80 name=
'Generate LottieWeb Gold output with Docker',
81 docker_image=DOCKER_IMAGE,
82 src_dir=checkout_root,
84 script=checkout_root.join(LOTTIECAP_SCRIPT),
86 docker_args=docker_args,
87 recursive_read=recursive_read,
91 api.gold_upload.upload()
96 api.test(
'Test-Debian10-none-GCE-CPU-AVX2-x86_64-Debug-All-LottieWeb') +
97 api.properties(buildername=(
'Test-Debian10-none-GCE-CPU-AVX2'
98 '-x86_64-Debug-All-LottieWeb'),
99 repository=
'https://skia.googlesource.com/skia.git',
101 gs_bucket=
'skia-infra-gm',
102 path_config=
'kitchen',
103 swarm_out_dir=
'[SWARM_OUT_DIR]')
107 api.test(
'lottie_web_trybot') +
108 api.properties(buildername=(
'Test-Debian10-none-GCE-CPU-AVX2'
109 '-x86_64-Debug-All-LottieWeb'),
110 repository=
'https://skia.googlesource.com/skia.git',
112 gs_bucket=
'skia-infra-gm',
113 path_config=
'kitchen',
114 swarm_out_dir=
'[SWARM_OUT_DIR]',
115 patch_ref=
'89/456789/12',
116 patch_repo=
'https://skia.googlesource.com/skia.git',
117 patch_storage=
'gerrit',
120 gerrit_project=
'skia',
121 gerrit_url=
'https://skia-review.googlesource.com/')