2018-08-28 14:52:18 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-08-28 14:52:18 +00:00
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
|
|
|
"[START_DIR]/[SWARM_OUT_DIR]"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "mkdirs out_dir"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-08-28 14:52:18 +00:00
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"rmtree",
|
|
|
|
"/tmp/lottie_files"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "remove previous lottie files"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-08-28 14:52:18 +00:00
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"copytree",
|
|
|
|
"[START_DIR]/lottie-samples",
|
|
|
|
"/tmp/lottie_files"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "copy lottie files"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2020-07-01 18:16:44 +00:00
|
|
|
"import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
|
2018-08-28 14:52:18 +00:00
|
|
|
],
|
2020-07-01 18:16:44 +00:00
|
|
|
"name": "get swarming bot id",
|
2018-08-28 14:52:18 +00:00
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
2020-07-01 18:16:44 +00:00
|
|
|
"@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
|
2018-08-28 14:52:18 +00:00
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2020-07-01 18:16:44 +00:00
|
|
|
"import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
|
2018-08-28 14:52:18 +00:00
|
|
|
],
|
2020-07-01 18:16:44 +00:00
|
|
|
"name": "get swarming task id",
|
2018-08-28 14:52:18 +00:00
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
2020-07-01 18:16:44 +00:00
|
|
|
"@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
|
2018-08-28 14:52:18 +00:00
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
2020-07-01 18:16:44 +00:00
|
|
|
{
|
|
|
|
"cmd": [],
|
|
|
|
"name": "Docker setup"
|
|
|
|
},
|
2018-08-28 14:52:18 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2020-07-01 18:16:44 +00:00
|
|
|
"import os\nprint '%d:%d' % (os.getuid(), os.getgid())\n"
|
2018-08-28 14:52:18 +00:00
|
|
|
],
|
2020-07-01 18:16:44 +00:00
|
|
|
"name": "Docker setup.Get uid and gid",
|
2018-08-28 14:52:18 +00:00
|
|
|
"~followup_annotations": [
|
2020-07-01 18:16:44 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@",
|
2018-08-28 14:52:18 +00:00
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
2020-07-01 18:16:44 +00:00
|
|
|
"@@@STEP_LOG_LINE@python.inline@print '%d:%d' % (os.getuid(), os.getgid())@@@",
|
2018-08-28 14:52:18 +00:00
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
2020-07-01 18:16:44 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"vpython",
|
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
|
|
|
"[START_DIR]/[SWARM_OUT_DIR]"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.mkdirs out_dir",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"chmod",
|
|
|
|
"777",
|
|
|
|
"[START_DIR]/[SWARM_OUT_DIR]"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod 777 [START_DIR]/[SWARM_OUT_DIR]",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"chmod",
|
|
|
|
"755",
|
|
|
|
"[START_DIR]"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod 755 [START_DIR]",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"chmod",
|
|
|
|
"0755",
|
|
|
|
"[START_DIR]/skia/infra/lottiecap/docker/lottiecap_gold.sh"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod 0755 [START_DIR]/skia/infra/lottiecap/docker/lottiecap_gold.sh",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"chmod",
|
|
|
|
"-R",
|
|
|
|
"a+r",
|
|
|
|
"[START_DIR]/lottie/build/player"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod -R a+r [START_DIR]/lottie/build/player",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"chmod",
|
|
|
|
"-R",
|
|
|
|
"a+r",
|
|
|
|
"/tmp/lottie_files"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod -R a+r /tmp/lottie_files",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
2018-08-28 14:52:18 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"docker",
|
|
|
|
"run",
|
|
|
|
"--shm-size=2gb",
|
|
|
|
"--rm",
|
2020-07-01 18:16:44 +00:00
|
|
|
"--user",
|
|
|
|
"13:17",
|
|
|
|
"--mount",
|
|
|
|
"type=bind,source=[START_DIR],target=/SRC",
|
|
|
|
"--mount",
|
|
|
|
"type=bind,source=[START_DIR]/[SWARM_OUT_DIR],target=/OUT",
|
|
|
|
"--mount",
|
2020-07-06 18:23:57 +00:00
|
|
|
"type=bind,source=[START_DIR]/lottie/build/player,target=/LOTTIE_BUILD",
|
2020-07-01 18:16:44 +00:00
|
|
|
"--mount",
|
2020-07-06 18:23:57 +00:00
|
|
|
"type=bind,source=/tmp/lottie_files,target=/LOTTIE_FILES",
|
2018-09-04 21:00:17 +00:00
|
|
|
"gcr.io/skia-public/gold-lottie-web-puppeteer:v2",
|
2018-08-28 14:52:18 +00:00
|
|
|
"/SRC/skia/infra/lottiecap/docker/lottiecap_gold.sh",
|
|
|
|
"--builder",
|
2020-04-07 01:27:14 +00:00
|
|
|
"Test-Debian10-none-GCE-CPU-AVX2-x86_64-Debug-All-LottieWeb",
|
2018-08-28 14:52:18 +00:00
|
|
|
"--git_hash",
|
|
|
|
"abc123",
|
|
|
|
"--buildbucket_build_id",
|
|
|
|
"",
|
|
|
|
"--bot_id",
|
|
|
|
"",
|
|
|
|
"--task_id",
|
|
|
|
"",
|
|
|
|
"--browser",
|
|
|
|
"Chrome",
|
|
|
|
"--config",
|
|
|
|
"Debug"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"CHROME_HEADLESS": "1",
|
2019-01-22 23:09:30 +00:00
|
|
|
"DOCKER_CONFIG": "/home/chrome-bot/.docker",
|
2019-02-16 22:10:41 +00:00
|
|
|
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
2018-08-28 14:52:18 +00:00
|
|
|
},
|
2020-07-01 18:16:44 +00:00
|
|
|
"name": "Generate LottieWeb Gold output with Docker"
|
2018-08-28 14:52:18 +00:00
|
|
|
},
|
|
|
|
{
|
2018-10-30 22:22:37 +00:00
|
|
|
"name": "$result"
|
2018-08-28 14:52:18 +00:00
|
|
|
}
|
|
|
|
]
|