skia2/infra/bots/gen_tasks_logic
Leandro Lovisolo b7eaeadf3f [codesize] Add CodeSize-dm-Debian10-Clang-x86_64-Release task.
This CL adds the task driver and plumbing necessary to run CI tasks that upload build statistics to https://codesize.skia.org.

For now, a single CodeSize-dm-Debian10-Clang-x86_64-Release task is defined, which as the name suggests:

- Depends on Build-Debian10-Clang-x86_64-Release.
- Takes the "dm" binary built by the aforementioned job.
- Runs Bloaty against said binary.
- Uploads the Bloaty output, along with a JSON file with metadata, to the GCS bucket where https://codesize.skia.org gets its data from.

If one wishes to upload codesize statistics for another binary, the steps are as follows:

- Identify the target binary, for example "fm".
- Identify a compile task that builds said binary with the desired settings, for example "Build-Debian10-Clang-x86_64-Debug".
- Add a new job in //infra/bots/jobs.json named "CodeSize-<binary>-<compile task>", where <compile task> is the name of the compile task without the "Build-" prefix, for example "CodeSize-fm-Debian10-Clang-x86_64-Debug".
- Run "make train" from the //infra/bots directory.

Eventually the codesize.skia.org webserver will automatically pick up the output of any such CodeSize-* task and show it in the UI, with no additional steps needed.

One caveat is that the binary file name, and therefore the "<binary>" part of the task name, cannot contain dashes. This is due to how //infra/bots/gen_tasks_logic.go works. See comments in said Go file for ideas on how to work around this if we ever need to.

Bug: skia:12151
Change-Id: If406944ca7660c4dd15c8e6b8f34e48c65cbbe2f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/502788
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Leandro Lovisolo <lovisolo@google.com>
2022-02-11 22:05:19 +00:00
..
compile_cas.go [python3] Reland recipes -> python3 changes 2021-12-01 13:04:03 +00:00
dm_flags.go Reland "Add kR8_unorm_SkColorType" 2022-02-10 18:00:19 +00:00
gen_tasks_logic.go [codesize] Add CodeSize-dm-Debian10-Clang-x86_64-Release task. 2022-02-11 22:05:19 +00:00
job_builder.go [codesize] Add CodeSize-dm-Debian10-Clang-x86_64-Release task. 2022-02-11 22:05:19 +00:00
nano_flags.go Update existing SwiftShader jobs to use Vulkan instead of OpenGL 2022-01-14 18:05:37 +00:00
schema.go Add "reduced shader" testing mode. 2021-04-09 20:15:37 +00:00
skpbench_flags.go Enable DAG reordering on almost all bots 2021-04-22 16:55:39 +00:00
task_builder.go [python3] Reland recipes -> python3 changes 2021-12-01 13:04:03 +00:00