2018-10-16 14:15:01 +00:00
|
|
|
[
|
2019-11-05 15:08:23 +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]/skia/modules/canvaskit/canvaskit/bin"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "mkdirs copy_dest"
|
|
|
|
},
|
2019-11-04 16:10:15 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
2019-11-05 15:08:23 +00:00
|
|
|
"import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
|
2019-11-04 16:10:15 +00:00
|
|
|
],
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "get swarming bot id",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
|
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
|
|
|
"import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
|
|
|
|
],
|
|
|
|
"name": "get swarming task id",
|
2019-11-04 16:10:15 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
|
2019-11-04 16:10:15 +00:00
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
2019-11-05 15:08:23 +00:00
|
|
|
{
|
|
|
|
"cmd": [],
|
|
|
|
"name": "Docker setup"
|
|
|
|
},
|
2020-04-16 15:22:00 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
|
|
|
"import os\nprint '%d:%d' % (os.getuid(), os.getgid())\n"
|
|
|
|
],
|
|
|
|
"name": "Docker setup.Get uid and gid",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@",
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@print '%d:%d' % (os.getuid(), os.getgid())@@@",
|
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
2018-10-16 14:15:01 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-10-16 14:15:01 +00:00
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
2019-11-05 15:08:23 +00:00
|
|
|
"[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]"
|
2018-10-16 14:15:01 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"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",
|
2019-11-20 13:28:20 +00:00
|
|
|
"[START_DIR]/skia/infra/canvaskit/test_canvaskit.sh"
|
2019-11-05 15:08:23 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-20 13:28:20 +00:00
|
|
|
"name": "Docker setup.chmod 0755 [START_DIR]/skia/infra/canvaskit/test_canvaskit.sh",
|
2019-11-05 15:08:23 +00:00
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
2018-10-16 14:15:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-10-16 14:15:01 +00:00
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
2019-11-05 15:08:23 +00:00
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
|
|
|
"[START_DIR]/skia/modules/canvaskit/canvaskit/bin"
|
2018-10-16 14:15:01 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.mkdirs [START_DIR]/skia/modules/canvaskit/canvaskit/bin",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
2018-10-16 14:15:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"vpython",
|
2018-10-16 14:15:01 +00:00
|
|
|
"-u",
|
2019-11-05 15:08:23 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
2018-10-16 14:15:01 +00:00
|
|
|
"/path/to/tmp/json",
|
2019-11-05 15:08:23 +00:00
|
|
|
"copy",
|
|
|
|
"[START_DIR]/build/canvaskit.wasm",
|
|
|
|
"[START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.wasm"
|
2018-10-16 14:15:01 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.cp [START_DIR]/build/canvaskit.wasm [START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.wasm",
|
2018-10-16 14:15:01 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"chmod",
|
|
|
|
"644",
|
|
|
|
"[START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.wasm"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod 644 [START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.wasm",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
2018-10-16 14:15:01 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-10-16 14:15:01 +00:00
|
|
|
"-u",
|
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"ensure-directory",
|
|
|
|
"--mode",
|
|
|
|
"0777",
|
2019-11-05 15:08:23 +00:00
|
|
|
"[START_DIR]/skia/modules/canvaskit/canvaskit/bin"
|
2018-10-16 14:15:01 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.mkdirs [START_DIR]/skia/modules/canvaskit/canvaskit/bin (2)",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
2018-10-16 14:15:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"vpython",
|
2018-10-16 14:15:01 +00:00
|
|
|
"-u",
|
2019-11-05 15:08:23 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
|
|
|
"/path/to/tmp/json",
|
|
|
|
"copy",
|
|
|
|
"[START_DIR]/build/canvaskit.js",
|
|
|
|
"[START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.js"
|
2018-10-16 14:15:01 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.cp [START_DIR]/build/canvaskit.js [START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.js",
|
2018-10-16 14:15:01 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
2018-10-16 14:15:01 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"chmod",
|
|
|
|
"644",
|
|
|
|
"[START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.js"
|
2018-10-16 14:15:01 +00:00
|
|
|
],
|
2019-11-05 15:08:23 +00:00
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod 644 [START_DIR]/skia/modules/canvaskit/canvaskit/bin/canvaskit.js",
|
2018-10-16 14:15:01 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
2018-10-16 14:15:01 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"chmod",
|
|
|
|
"-R",
|
|
|
|
"a+r",
|
|
|
|
"[START_DIR]/skia"
|
2018-10-16 14:15:01 +00:00
|
|
|
],
|
2019-11-05 15:08:23 +00:00
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod -R a+r [START_DIR]/skia",
|
2018-10-16 14:15:01 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
2018-10-16 14:15:01 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"docker",
|
|
|
|
"run",
|
|
|
|
"--shm-size=2gb",
|
|
|
|
"--rm",
|
2020-04-16 15:22:00 +00:00
|
|
|
"--user",
|
|
|
|
"13:17",
|
2019-11-18 20:03:41 +00:00
|
|
|
"--mount",
|
|
|
|
"type=bind,source=[START_DIR],target=/SRC",
|
|
|
|
"--mount",
|
|
|
|
"type=bind,source=[START_DIR]/[SWARM_OUT_DIR],target=/OUT",
|
2020-12-14 14:43:13 +00:00
|
|
|
"gcr.io/skia-public/gold-karma-chrome-tests:87.0.4280.88_v1",
|
2018-10-16 14:15:01 +00:00
|
|
|
"/SRC/skia/infra/canvaskit/test_canvaskit.sh",
|
|
|
|
"--builder",
|
2020-04-07 01:27:14 +00:00
|
|
|
"Test-Debian10-EMCC-GCE-CPU-AVX2-wasm-Debug-All-CanvasKit",
|
2018-10-16 14:15:01 +00:00
|
|
|
"--git_hash",
|
|
|
|
"abc123",
|
|
|
|
"--buildbucket_build_id",
|
|
|
|
"",
|
|
|
|
"--bot_id",
|
|
|
|
"",
|
|
|
|
"--task_id",
|
|
|
|
"",
|
|
|
|
"--browser",
|
|
|
|
"Chrome",
|
|
|
|
"--config",
|
|
|
|
"Debug",
|
|
|
|
"--source_type",
|
|
|
|
"canvaskit",
|
|
|
|
"--issue",
|
|
|
|
"1234",
|
|
|
|
"--patchset",
|
|
|
|
"7"
|
|
|
|
],
|
|
|
|
"env": {
|
2019-11-21 17:49:16 +00:00
|
|
|
"CHROME_HEADLESS": "1",
|
|
|
|
"DOCKER_CONFIG": "/home/chrome-bot/.docker",
|
|
|
|
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
2018-10-16 14:15:01 +00:00
|
|
|
},
|
|
|
|
"name": "Test CanvasKit with Docker"
|
|
|
|
},
|
|
|
|
{
|
2018-10-30 22:22:37 +00:00
|
|
|
"name": "$result"
|
2018-10-16 14:15:01 +00:00
|
|
|
}
|
|
|
|
]
|