2018-08-09 14:00:02 +00:00
|
|
|
[
|
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",
|
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_BOT_ID', '')@@@",
|
2019-11-04 16:10:15 +00:00
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
2019-11-05 15:08:23 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"python",
|
|
|
|
"-u",
|
|
|
|
"import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
|
|
|
|
],
|
|
|
|
"name": "get swarming task id",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@import os@@@",
|
|
|
|
"@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
|
|
|
|
"@@@STEP_LOG_END@python.inline@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [],
|
|
|
|
"name": "Docker setup"
|
|
|
|
},
|
2018-08-09 14:00:02 +00:00
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-08-09 14:00:02 +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]"
|
2018-08-09 14:00:02 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"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",
|
2019-11-20 13:28:20 +00:00
|
|
|
"[START_DIR]/skia/infra/pathkit/test_pathkit.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/pathkit/test_pathkit.sh",
|
2019-11-05 15:08:23 +00:00
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
2018-08-09 14:00:02 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-08-09 14:00:02 +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/pathkit/npm-wasm/bin/test"
|
2018-08-09 14:00:02 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin/test",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
2018-08-09 14:00:02 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"vpython",
|
2018-08-09 14:00:02 +00:00
|
|
|
"-u",
|
2019-11-05 15:08:23 +00:00
|
|
|
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
|
|
|
|
"--json-output",
|
2018-08-09 14:00:02 +00:00
|
|
|
"/path/to/tmp/json",
|
2019-11-05 15:08:23 +00:00
|
|
|
"copy",
|
|
|
|
"[START_DIR]/build/pathkit.wasm",
|
|
|
|
"[START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.wasm"
|
2018-08-09 14:00:02 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.cp [START_DIR]/build/pathkit.wasm [START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.wasm",
|
2018-08-09 14:00:02 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"chmod",
|
|
|
|
"644",
|
|
|
|
"[START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.wasm"
|
|
|
|
],
|
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.wasm",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
2018-08-09 14:00:02 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-09-09 22:36:05 +00:00
|
|
|
"vpython",
|
2018-08-09 14:00:02 +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/pathkit/npm-wasm/bin/test"
|
2018-08-09 14:00:02 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin/test (2)",
|
|
|
|
"~followup_annotations": [
|
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
|
|
|
]
|
2018-08-09 14:00:02 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"vpython",
|
2018-08-09 14:00:02 +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/pathkit.js",
|
|
|
|
"[START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.js"
|
2018-08-09 14:00:02 +00:00
|
|
|
],
|
|
|
|
"infra_step": true,
|
2019-11-05 15:08:23 +00:00
|
|
|
"name": "Docker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.js",
|
2018-08-09 14:00:02 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
[PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go. testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator. pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)
pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.
There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit). This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.
A "standard" gm is sized at 600x600. This was arbitrarily picked.
Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.
Other changes of note:
- Adds go to karma-chrome-tests container.
- renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
- Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.
Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 17:45:28 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"chmod",
|
|
|
|
"644",
|
|
|
|
"[START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.js"
|
[PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go. testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator. pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)
pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.
There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit). This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.
A "standard" gm is sized at 600x600. This was arbitrarily picked.
Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.
Other changes of note:
- Adds go to karma-chrome-tests container.
- renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
- Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.
Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 17:45:28 +00:00
|
|
|
],
|
2019-11-05 15:08:23 +00:00
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/test/pathkit.js",
|
[PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go. testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator. pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)
pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.
There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit). This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.
A "standard" gm is sized at 600x600. This was arbitrarily picked.
Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.
Other changes of note:
- Adds go to karma-chrome-tests container.
- renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
- Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.
Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 17:45:28 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
[PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go. testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator. pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)
pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.
There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit). This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.
A "standard" gm is sized at 600x600. This was arbitrarily picked.
Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.
Other changes of note:
- Adds go to karma-chrome-tests container.
- renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
- Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.
Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 17:45:28 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"chmod",
|
|
|
|
"-R",
|
|
|
|
"a+r",
|
|
|
|
"[START_DIR]/skia"
|
[PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go. testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator. pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)
pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.
There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit). This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.
A "standard" gm is sized at 600x600. This was arbitrarily picked.
Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.
Other changes of note:
- Adds go to karma-chrome-tests container.
- renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
- Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.
Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 17:45:28 +00:00
|
|
|
],
|
2019-11-05 15:08:23 +00:00
|
|
|
"infra_step": true,
|
|
|
|
"name": "Docker setup.chmod -R a+r [START_DIR]/skia",
|
[PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go. testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator. pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)
pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.
There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit). This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.
A "standard" gm is sized at 600x600. This was arbitrarily picked.
Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.
Other changes of note:
- Adds go to karma-chrome-tests container.
- renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
- Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.
Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 17:45:28 +00:00
|
|
|
"~followup_annotations": [
|
2019-11-05 15:08:23 +00:00
|
|
|
"@@@STEP_NEST_LEVEL@1@@@"
|
2018-08-09 14:00:02 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"docker",
|
|
|
|
"run",
|
|
|
|
"--shm-size=2gb",
|
|
|
|
"--rm",
|
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",
|
2019-10-21 16:21:35 +00:00
|
|
|
"gcr.io/skia-public/gold-karma-chrome-tests:77.0.3865.120_v2",
|
2018-10-09 13:36:35 +00:00
|
|
|
"/SRC/skia/infra/pathkit/test_pathkit.sh",
|
[PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go. testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator. pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)
pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.
There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit). This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.
A "standard" gm is sized at 600x600. This was arbitrarily picked.
Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.
Other changes of note:
- Adds go to karma-chrome-tests container.
- renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
- Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.
Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 17:45:28 +00:00
|
|
|
"--builder",
|
|
|
|
"Test-Debian9-EMCC-GCE-CPU-AVX2-wasm-Debug-All-PathKit",
|
|
|
|
"--git_hash",
|
|
|
|
"abc123",
|
|
|
|
"--buildbucket_build_id",
|
|
|
|
"",
|
|
|
|
"--bot_id",
|
|
|
|
"",
|
|
|
|
"--task_id",
|
|
|
|
"",
|
|
|
|
"--browser",
|
|
|
|
"Chrome",
|
|
|
|
"--config",
|
2018-10-16 14:15:01 +00:00
|
|
|
"Debug",
|
|
|
|
"--source_type",
|
|
|
|
"pathkit"
|
2018-08-09 14:00:02 +00:00
|
|
|
],
|
|
|
|
"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-08-09 14:00:02 +00:00
|
|
|
},
|
|
|
|
"name": "Test PathKit with Docker"
|
|
|
|
},
|
|
|
|
{
|
2018-10-30 22:22:37 +00:00
|
|
|
"name": "$result"
|
2018-08-09 14:00:02 +00:00
|
|
|
}
|
|
|
|
]
|