Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 1 | # GPU Bot Details |
| 2 | |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 3 | This page describes in detail how the GPU bots are set up, which files affect |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 4 | their configuration, and how to both modify their behavior and add new bots. |
| 5 | |
| 6 | [TOC] |
| 7 | |
| 8 | ## Overview of the GPU bots' setup |
| 9 | |
| 10 | Chromium's GPU bots, compared to the majority of the project's test machines, |
| 11 | are physical pieces of hardware. When end users run the Chrome browser, they |
| 12 | are almost surely running it on a physical piece of hardware with a real |
| 13 | graphics processor. There are some portions of the code base which simply can |
| 14 | not be exercised by running the browser in a virtual machine, or on a software |
| 15 | implementation of the underlying graphics libraries. The GPU bots were |
| 16 | developed and deployed in order to cover these code paths, and avoid |
| 17 | regressions that are otherwise inevitable in a project the size of the Chromium |
| 18 | browser. |
| 19 | |
| 20 | The GPU bots are utilized on the [chromium.gpu] and [chromium.gpu.fyi] |
| 21 | waterfalls, and various tryservers, as described in [Using the GPU Bots]. |
| 22 | |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 23 | [chromium.gpu]: https://ci.chromium.org/p/chromium/g/chromium.gpu/console |
| 24 | [chromium.gpu.fyi]: https://ci.chromium.org/p/chromium/g/chromium.gpu.fyi/console |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 25 | [Using the GPU Bots]: gpu_testing.md#Using-the-GPU-Bots |
| 26 | |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 27 | All of the physical hardware for the bots lives in the Swarming pool, and most |
John Budorick | b2ff224 | 2019-11-14 17:35:59 | [diff] [blame] | 28 | of it in the chromium.tests.gpu Swarming pool. The waterfall bots are simply |
| 29 | virtual machines which spawn Swarming tasks with the appropriate tags to get |
| 30 | them to run on the desired GPU and operating system type. So, for example, the |
| 31 | [Win10 x64 Release (NVIDIA)] bot is actually a virtual machine which spawns all |
| 32 | of its jobs with the Swarming parameters: |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 33 | |
Takuto Ikuta | 4fd6b479 | 2019-08-19 21:37:31 | [diff] [blame] | 34 | [Win10 x64 Release (NVIDIA)]: https://ci.chromium.org/p/chromium/builders/ci/Win10%20x64%20Release%20%28NVIDIA%29 |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 35 | |
| 36 | ```json |
| 37 | { |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 38 | "gpu": "nvidia-quadro-p400-win10-stable", |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 39 | "os": "Windows-10", |
John Budorick | b2ff224 | 2019-11-14 17:35:59 | [diff] [blame] | 40 | "pool": "chromium.tests.gpu" |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 41 | } |
| 42 | ``` |
| 43 | |
| 44 | Since the GPUs in the Swarming pool are mostly homogeneous, this is sufficient |
| 45 | to target the pool of Windows 10-like NVIDIA machines. (There are a few Windows |
| 46 | 7-like NVIDIA bots in the pool, which necessitates the OS specifier.) |
| 47 | |
| 48 | Details about the bots can be found on [chromium-swarm.appspot.com] and by |
| 49 | using `src/tools/swarming_client/swarming.py`, for example `swarming.py bots`. |
| 50 | If you are authenticated with @google.com credentials you will be able to make |
| 51 | queries of the bots and see, for example, which GPUs are available. |
| 52 | |
| 53 | [chromium-swarm.appspot.com]: https://chromium-swarm.appspot.com/ |
| 54 | |
| 55 | The waterfall bots run tests on a single GPU type in order to make it easier to |
| 56 | see regressions or flakiness that affect only a certain type of GPU. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 57 | 'Mac FYI GPU ASAN Release' is an exception, running both on Intel and AMD GPUs. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 58 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 59 | The tryservers like `win10_chromium_x64_rel_ng` which include GPU tests, on the other |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 60 | hand, run tests on more than one GPU type. As of this writing, the Windows |
| 61 | tryservers ran tests on NVIDIA and AMD GPUs; the Mac tryservers ran tests on |
| 62 | Intel and NVIDIA GPUs. The way these tryservers' tests are specified is simply |
| 63 | by *mirroring* how one or more waterfall bots work. This is an inherent |
| 64 | property of the [`chromium_trybot` recipe][chromium_trybot.py], which was designed to eliminate |
| 65 | differences in behavior between the tryservers and waterfall bots. Since the |
| 66 | tryservers mirror waterfall bots, if the waterfall bot is working, the |
| 67 | tryserver must almost inherently be working as well. |
| 68 | |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 69 | [chromium_trybot.py]: https://chromium.googlesource.com/chromium/tools/build/+/master/recipes/recipes/chromium_trybot.py |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 70 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 71 | There are some GPU configurations on the waterfall backed by only one machine, |
| 72 | or a very small number of machines in the Swarming pool. A few examples are: |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 73 | |
| 74 | <!-- XXX: update this list --> |
Yves Gerey | a702f622 | 2019-01-24 11:07:30 | [diff] [blame] | 75 | * [Mac Pro Release (AMD)](https://luci-milo.appspot.com/p/chromium/builders/luci.chromium.ci/Mac%20Pro%20FYI%20Release%20%28AMD%29) |
Yves Gerey | a702f622 | 2019-01-24 11:07:30 | [diff] [blame] | 76 | * [Linux Release (AMD R7 240)](https://luci-milo.appspot.com/p/chromium/builders/luci.chromium.ci/Linux%20FYI%20Release%20%28AMD%20R7%20240%29/) |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 77 | |
| 78 | There are a couple of reasons to continue to support running tests on a |
| 79 | specific machine: it might be too expensive to deploy the required multiple |
| 80 | copies of said hardware, or the configuration might not be reliable enough to |
| 81 | begin scaling it up. |
| 82 | |
| 83 | ## Adding a new isolated test to the bots |
| 84 | |
| 85 | Adding a new test step to the bots requires that the test run via an isolate. |
| 86 | Isolates describe both the binary and data dependencies of an executable, and |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 87 | are the underpinning of how the Swarming system works. See the [LUCI] documentation for |
| 88 | background on [Isolates] and [Swarming]. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 89 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 90 | [LUCI]: https://github.com/luci/luci-py |
| 91 | [Isolates]: https://github.com/luci/luci-py/blob/master/appengine/isolate/doc/README.md |
| 92 | [Swarming]: https://github.com/luci/luci-py/blob/master/appengine/swarming/doc/README.md |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 93 | |
| 94 | ### Adding a new isolate |
| 95 | |
| 96 | 1. Define your target using the `template("test")` template in |
Takuto Ikuta | f533325 | 2019-11-06 16:07:08 | [diff] [blame] | 97 | [`src/testing/test.gni`][testing/test.gni]. See `test("gl_tests")` in |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 98 | [`src/gpu/BUILD.gn`][gpu/BUILD.gn] for an example. For a more complex |
| 99 | example which invokes a series of scripts which finally launches the |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 100 | browser, see `telemetry_gpu_integration_test` in [`chrome/test/BUILD.gn`][chrome/test/BUILD.gn]. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 101 | 2. Add an entry to [`src/testing/buildbot/gn_isolate_map.pyl`][gn_isolate_map.pyl] that refers to |
| 102 | your target. Find a similar target to yours in order to determine the |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 103 | `type`. The type is referenced in [`src/tools/mb/mb.py`][mb.py]. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 104 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 105 | [testing/test.gni]: https://chromium.googlesource.com/chromium/src/+/master/testing/test.gni |
| 106 | [gpu/BUILD.gn]: https://chromium.googlesource.com/chromium/src/+/master/gpu/BUILD.gn |
| 107 | [chrome/test/BUILD.gn]: https://chromium.googlesource.com/chromium/src/+/master/chrome/test/BUILD.gn |
| 108 | [gn_isolate_map.pyl]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/gn_isolate_map.pyl |
| 109 | [mb.py]: https://chromium.googlesource.com/chromium/src/+/master/tools/mb/mb.py |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 110 | |
| 111 | At this point you can build and upload your isolate to the isolate server. |
| 112 | |
| 113 | See [Isolated Testing for SWEs] for the most up-to-date instructions. These |
| 114 | instructions are a copy which show how to run an isolate that's been uploaded |
| 115 | to the isolate server on your local machine rather than on Swarming. |
| 116 | |
| 117 | [Isolated Testing for SWEs]: https://www.chromium.org/developers/testing/isolated-testing/for-swes |
| 118 | |
| 119 | If `cd`'d into `src/`: |
| 120 | |
| 121 | 1. `./tools/mb/mb.py isolate //out/Release [target name]` |
| 122 | * For example: `./tools/mb/mb.py isolate //out/Release angle_end2end_tests` |
| 123 | 1. `python tools/swarming_client/isolate.py batcharchive -I https://isolateserver.appspot.com out/Release/[target name].isolated.gen.json` |
| 124 | * For example: `python tools/swarming_client/isolate.py batcharchive -I https://isolateserver.appspot.com out/Release/angle_end2end_tests.isolated.gen.json` |
| 125 | 1. This will write a hash to stdout. You can run it via: |
| 126 | `python tools/swarming_client/run_isolated.py -I https://isolateserver.appspot.com -s [HASH] -- [any additional args for the isolate]` |
| 127 | |
| 128 | See the section below on [isolate server credentials](#Isolate-server-credentials). |
| 129 | |
| 130 | ### Adding your new isolate to the tests that are run on the bots |
| 131 | |
| 132 | See [Adding new steps to the GPU bots] for details on this process. |
| 133 | |
| 134 | [Adding new steps to the GPU bots]: gpu_testing.md#Adding-new-steps-to-the-GPU-Bots |
| 135 | |
| 136 | ## Relevant files that control the operation of the GPU bots |
| 137 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 138 | In the [`tools/build`][tools/build] workspace: |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 139 | |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 140 | * `recipes/recipe_modules/chromium_tests/`: |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 141 | * [`chromium_gpu.py`][chromium_gpu.py] and |
| 142 | [`chromium_gpu_fyi.py`][chromium_gpu_fyi.py] define the following for |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 143 | each builder and tester: |
| 144 | * How the workspace is checked out (e.g., this is where top-of-tree |
| 145 | ANGLE is specified) |
| 146 | * The build configuration (e.g., this is where 32-bit vs. 64-bit is |
| 147 | specified) |
| 148 | * Various gclient defines (like compiling in the hardware-accelerated |
| 149 | video codecs, and enabling compilation of certain tests, like the |
| 150 | dEQP tests, that can't be built on all of the Chromium builders) |
| 151 | * Note that the GN configuration of the bots is also controlled by |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 152 | [`mb_config.pyl`][mb_config.pyl] in the Chromium workspace; see below. |
| 153 | * [`trybots.py`][trybots.py] defines how try bots *mirror* one or more |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 154 | waterfall bots. |
| 155 | * The concept of try bots mirroring waterfall bots ensures there are |
| 156 | no differences in behavior between the waterfall bots and the try |
| 157 | bots. This helps ensure that a CL will not pass the commit queue |
| 158 | and then break on the waterfall. |
| 159 | * This file defines the behavior of the following GPU-related try |
| 160 | bots: |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 161 | * `linux-rel`, `mac-rel`, `win10_chromium_x64_rel_ng` and |
| 162 | `android-marshmallow-arm64-rel`, which run against every |
Stephen Martinis | 089f5f0 | 2019-02-12 02:42:24 | [diff] [blame] | 163 | Chromium CL, and which mirror the behavior of bots on the |
| 164 | chromium.gpu waterfall. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 165 | * The ANGLE try bots, which run against ANGLE CLs, and mirror the |
| 166 | behavior of the chromium.gpu.fyi waterfall (including using |
| 167 | top-of-tree ANGLE, and running additional tests not run by the |
| 168 | regular Chromium try bots) |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 169 | * The optional GPU try servers `linux_optional_gpu_tests_rel`, |
| 170 | `mac_optional_gpu_tests_rel`, `win_optional_gpu_tests_rel` and |
| 171 | `android_optional_gpu_tests_rel`, which are added automatically |
| 172 | to CLs which modify a selected set of subdirectories and |
| 173 | run some tests which can't be run on the regular Chromium try |
| 174 | servers mainly due to lack of hardware capacity. |
| 175 | * Manual GPU trybots, starting with `gpu-try-` and `gpu-fyi-try-` |
| 176 | prefixes, which can be added manually to CLs targeting a |
| 177 | specific hardware configuration. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 178 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 179 | [tools/build]: https://chromium.googlesource.com/chromium/tools/build/ |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 180 | [chromium_gpu.py]: https://chromium.googlesource.com/chromium/tools/build/+/master/recipes/recipe_modules/chromium_tests/builders/chromium_gpu.py |
| 181 | [chromium_gpu_fyi.py]: https://chromium.googlesource.com/chromium/tools/build/+/master/recipes/recipe_modules/chromium_tests/builders/chromium_gpu_fyi.py |
| 182 | [trybots.py]: https://chromium.googlesource.com/chromium/tools/build/+/master/recipes/recipe_modules/chromium_tests/trybots.py |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 183 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 184 | In the [`chromium/src`][chromium/src] workspace: |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 185 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 186 | * [`src/testing/buildbot`][src/testing/buildbot]: |
| 187 | * [`chromium.gpu.json`][chromium.gpu.json] and |
| 188 | [`chromium.gpu.fyi.json`][chromium.gpu.fyi.json] define which steps are |
| 189 | run on which bots. These files are autogenerated. Don't modify them |
| 190 | directly! |
| 191 | * [`waterfalls.pyl`][waterfalls.pyl], |
| 192 | [`test_suites.pyl`][test_suites.pyl], [`mixins.pyl`][mixins.pyl] and |
| 193 | [`test_suite_exceptions.pyl`][test_suite_exceptions.pyl] define the |
| 194 | confugation for the autogenerated json files above. |
| 195 | Run [`generate_buildbot_json.py`][generate_buildbot_json.py] to |
| 196 | generate the json files after you modify these pyl files. |
| 197 | * [`generate_buildbot_json.py`][generate_buildbot_json.py] |
| 198 | * The generator script for all the waterfalls, including |
| 199 | `chromium.gpu.json` and `chromium.gpu.fyi.json`. |
| 200 | * See the [README for generate_buildbot_json.py] for documentation |
| 201 | on this script and the descriptions of the waterfalls and test |
| 202 | suites. |
| 203 | * When modifying this script, don't forget to also run it, to |
| 204 | regenerate the JSON files. Don't worry; the presubmit step will |
| 205 | catch this if you forget. |
| 206 | * See [Adding new steps to the GPU bots] for more details. |
| 207 | * [`gn_isolate_map.pyl`][gn_isolate_map.pyl] defines all of the isolates' |
| 208 | behavior in the GN build. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 209 | * [`src/tools/mb/mb_config.pyl`][mb_config.pyl] |
| 210 | * Defines the GN arguments for all of the bots. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 211 | * [`src/infra/config`][src/infra/config]: |
| 212 | * Definitions of how bots are organized on the waterfall, |
| 213 | how builds are triggered, which VMs or machines are used for the |
| 214 | builder itself, i.e. for compilation and scheduling swarmed tasks |
| 215 | on GPU hardware. See |
| 216 | [README.md](https://chromium.googlesource.com/chromium/src/+/master/infra/config/README.md) |
| 217 | in this directory for up to date information. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 218 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 219 | [chromium/src]: https://chromium.googlesource.com/chromium/src/ |
| 220 | [src/testing/buildbot]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot |
| 221 | [src/infra/config]: https://chromium.googlesource.com/chromium/src/+/master/infra/config |
| 222 | [chromium.gpu.json]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/chromium.gpu.json |
| 223 | [chromium.gpu.fyi.json]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/chromium.gpu.fyi.json |
| 224 | [gn_isolate_map.pyl]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/gn_isolate_map.pyl |
| 225 | [mb_config.pyl]: https://chromium.googlesource.com/chromium/src/+/master/tools/mb/mb_config.pyl |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 226 | [generate_buildbot_json.py]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/generate_buildbot_json.py |
| 227 | [mixins.pyl]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/mixins.pyl |
| 228 | [waterfalls.pyl]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/waterfalls.pyl |
| 229 | [test_suites.pyl]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/test_suites.pyl |
| 230 | [test_suite_exceptions.pyl]: https://chromium.googlesource.com/chromium/src/+/master/testing/buildbot/test_suite_exceptions.pyl |
Kenneth Russell | 8a386d4 | 2018-06-02 09:48:01 | [diff] [blame] | 231 | [README for generate_buildbot_json.py]: ../../testing/buildbot/README.md |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 232 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 233 | In the [`infradata/config`][infradata/config] workspace (Google internal only, |
| 234 | sorry): |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 235 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 236 | * [`gpu.star`][gpu.star] |
| 237 | * Defines a `chromium.tests.gpu` Swarming pool which contains all of the |
| 238 | specialized hardware, except some hardware shared with Chromium: |
| 239 | for example, the Windows and Linux NVIDIA |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 240 | bots, the Windows AMD bots, and the MacBook Pros with NVIDIA and AMD |
| 241 | GPUs. New GPU hardware should be added to this pool. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 242 | * Also defines the GCEs, Mac VMs and Mac machines used for CI builders |
| 243 | on GPU and GPU.FYI waterfalls and trybots. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 244 | * [`pools.cfg`][pools.cfg] |
| 245 | * Defines the Swarming pools for GCEs and Mac VMs used for manually |
| 246 | triggered trybots. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 247 | |
| 248 | [infradata/config]: https://chrome-internal.googlesource.com/infradata/config |
Kenneth Russell | fb27e2d | 2019-03-29 22:19:55 | [diff] [blame] | 249 | [gpu.star]: https://chrome-internal.googlesource.com/infradata/config/+/master/configs/chromium-swarm/starlark/bots/chromium/gpu.star |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 250 | [chromium.star]: https://chrome-internal.googlesource.com/infradata/config/+/master/configs/chromium-swarm/starlark/bots/chromium/chromium.star |
| 251 | [pools.cfg]: https://chrome-internal.googlesource.com/infradata/config/+/master/configs/chromium-swarm/pools.cfg |
Chris Blume | b42d691 | 2019-05-15 01:27:57 | [diff] [blame] | 252 | [main.star]: https://chrome-internal.googlesource.com/infradata/config/+/master/main.star |
Kenneth Russell | fb27e2d | 2019-03-29 22:19:55 | [diff] [blame] | 253 | [vms.cfg]: https://chrome-internal.googlesource.com/infradata/config/+/master/configs/gce-provider/vms.cfg |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 254 | |
| 255 | ## Walkthroughs of various maintenance scenarios |
| 256 | |
| 257 | This section describes various common scenarios that might arise when |
| 258 | maintaining the GPU bots, and how they'd be addressed. |
| 259 | |
| 260 | ### How to add a new test or an entire new step to the bots |
| 261 | |
| 262 | This is described in [Adding new tests to the GPU bots]. |
| 263 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 264 | [Adding new tests to the GPU bots]: https://chromium.googlesource.com/chromium/src/+/master/docs/gpu/gpu_testing.md#Adding-New-Tests-to-the-GPU-Bots |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 265 | |
Jamie Madill | f71bf71 | 2019-01-09 14:41:21 | [diff] [blame] | 266 | ### How to set up new virtual machine instances |
| 267 | |
| 268 | The tests use virtual machines to build binaries and to trigger tests on |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 269 | physical hardware. VMs don't run any tests themselves. There are 3 types of |
| 270 | bots: |
Jamie Madill | f71bf71 | 2019-01-09 14:41:21 | [diff] [blame] | 271 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 272 | * Builders - these bots build test binaries, upload them to storage and trigger |
| 273 | tester bots (see below). Builds must be done on the same OS on which the |
| 274 | tests will run, except for Android tests, which are built on Linux. |
| 275 | * Testers - these bots trigger tests to execute in Swarming and merge results |
| 276 | from multiple shards. 2-core Linux GCEs are sufficient for this task. |
| 277 | * Builder/testers - these are the combination of the above and have same OS |
| 278 | constraints as builders. All trybots are of this type, while for CI bots |
| 279 | it is optional. |
Jamie Madill | f71bf71 | 2019-01-09 14:41:21 | [diff] [blame] | 280 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 281 | The process is: |
Jamie Madill | f71bf71 | 2019-01-09 14:41:21 | [diff] [blame] | 282 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 283 | 1. Follow [go/request-chrome-resources](go/request-chrome-resources) to get |
| 284 | approval for the VMs. Use `GPU` project resource group. |
| 285 | See this [example ticket](http://crbug.com/1012805). |
| 286 | You'll need to determine how many VMs are required, which OSes, how many |
| 287 | cores and in which swarming pools they will be (see below for different |
| 288 | scenarios). |
| 289 | * If setting up a new GPU hardware pool, some VMs will also be needed |
| 290 | for manual trybots, usually 2 VMs as of this writing. |
| 291 | * Additional action is needed for Mac VMs, the GPU resource owner will |
| 292 | assign the bug to Labs to deploy them. See this |
| 293 | [example ticket](http://crbug.com/964355). |
| 294 | 1. Once GCE resource request is approved / Mac VMs are deployed, the VMs need |
| 295 | to be added to the right Swarming pools in a CL in the |
| 296 | [`infradata/config`][infradata/config] (Google internal) workspace. |
| 297 | 1. GCEs for Windows CI builders and builder/testers should be added to |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 298 | `luci-chromium-gpu-ci-win10-8` group in [`gpu.star`][gpu.star]. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 299 | 1. GCEs for Linux and Android CI builders and builder/testers should be added to |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 300 | `luci-chromium-gpu-ci-xenial-8` group in [`gpu.star`][gpu.star]. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 301 | 1. VMs for Mac CI builders and builder/testers should be added to |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 302 | `builderfull_gpu_ci_bots` group in [`gpu.star`][gpu.star]. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 303 | [Example](https://chrome-internal-review.googlesource.com/c/infradata/config/+/1166889). |
| 304 | 1. GCEs for CI testers for all OSes should be added to |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 305 | `luci-chromium-gpu-ci-xenial-2` group in [`gpu.star`][gpu.star]. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 306 | [Example](https://chrome-internal-review.googlesource.com/c/infradata/config/+/2016410). |
| 307 | 1. GCEs and VMs for CQ and optional CQ GPU trybots for should be added to |
| 308 | a corresponding `gpu_try_bots` group in [`gpu.star`][gpu.star]. |
| 309 | [Example](https://chrome-internal-review.googlesource.com/c/infradata/config/+/1561384). |
| 310 | These trybots are "builderful", i.e. these GCEs can't be shared among |
| 311 | different bots. This is done in order to limit the number of concurrent |
| 312 | builds on these bots (until [crbug.com/949379](crbug.com/949379) is |
| 313 | fixed) to prevent oversubscribing GPU hardware. |
| 314 | `win_optional_gpu_tests_rel` is an exception, its GCEs come from |
| 315 | `luci-chromium-try-win10-*-8` groups in |
| 316 | [`chromium.star`][chromium.star], see |
| 317 | [CL](https://chrome-internal-review.googlesource.com/c/infradata/config/+/1708723). |
| 318 | This can cause oversubscription to Windows GPU hardware, however, |
| 319 | Chrome Infra insisted on making this bot builderless due to frequent |
| 320 | interruptions they get from limiting the number of concurrent builds on |
| 321 | it, see discussion in |
| 322 | [CL](https://chromium-review.googlesource.com/c/chromium/src/+/1775098). |
| 323 | 1. GCEs and VMs for manual GPU trybots should be added to a corresponding |
| 324 | pool in "Manually-triggered GPU trybots" in [`gpu.star`][gpu.star]. |
| 325 | If adding a new pool, it should also be added to |
| 326 | [`pools.cfg`][pools.cfg]. |
| 327 | [Example](https://chrome-internal-review.googlesource.com/c/infradata/config/+/2433332). |
| 328 | This is a different mechanism to limit the load on GPU hardware, |
| 329 | by having a small pool of GCEs which corresponds to some GPU hardware |
| 330 | resource, and all trybots that target this GPU hardware compete for |
| 331 | GCEs from this small pool. |
| 332 | 1. Run [`main.star`][main.star] to regenerate |
| 333 | `configs/chromium-swarm/bots.cfg` and `configs/gce-provider/vms.cfg`. |
| 334 | Double-check your work there. |
| 335 | Note that previously [`vms.cfg`][vms.cfg] had to be edited manually. |
| 336 | Part of the difficulty was in choosing a zone. This should soon no |
| 337 | longer be necessary per [crbug.com/942301](http://crbug.com/942301), |
| 338 | but consult with the Chrome Infra team to find out which of the |
| 339 | [zones](https://cloud.google.com/compute/docs/regions-zones/) has |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 340 | available capacity. This also can be checked on viceroy |
| 341 | [dashboard](https://viceroy.corp.google.com/chrome_infra/Quota/chrome?duration=7d). |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 342 | 1. Get this reviewed and landed. This step associates the VM or pool of VMs |
| 343 | with the bot's name on the waterfall for "builderful" bots or increases |
| 344 | swarmed pool capacity for "builderless" bots. |
| 345 | Note: CR+1 is not sticky in this repo, so you'll have to ping for |
| 346 | re-review after every change, like rebase. |
Jamie Madill | f71bf71 | 2019-01-09 14:41:21 | [diff] [blame] | 347 | |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 348 | ### How to add a new tester bot to the chromium.gpu.fyi waterfall |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 349 | |
| 350 | When deploying a new GPU configuration, it should be added to the |
| 351 | chromium.gpu.fyi waterfall first. The chromium.gpu waterfall should be reserved |
| 352 | for those GPUs which are tested on the commit queue. (Some of the bots violate |
| 353 | this rule – namely, the Debug bots – though we should strive to eliminate these |
| 354 | differences.) Once the new configuration is ready to be fully deployed on |
| 355 | tryservers, bots can be added to the chromium.gpu waterfall, and the tryservers |
| 356 | changed to mirror them. |
| 357 | |
| 358 | In order to add Release and Debug waterfall bots for a new configuration, |
| 359 | experience has shown that at least 4 physical machines are needed in the |
| 360 | swarming pool. The reason is that the tests all run in parallel on the Swarming |
| 361 | cluster, so the load induced on the swarming bots is higher than it would be |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 362 | if the tests were run strictly serially. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 363 | |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 364 | With these prerequisites, these are the steps to add a new (swarmed) tester bot. |
| 365 | (Actually, pair of bots -- Release and Debug. If deploying just one or the |
| 366 | other, ignore the other configuration.) These instructions assume that you are |
| 367 | reusing one of the existing builders, like [`GPU FYI Win Builder`][GPU FYI Win |
| 368 | Builder]. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 369 | |
| 370 | 1. Work with the Chrome Infrastructure Labs team to get the (minimum 4) |
| 371 | physical machines added to the Swarming pool. Use |
| 372 | [chromium-swarm.appspot.com] or `src/tools/swarming_client/swarming.py bots` |
| 373 | to determine the PCI IDs of the GPUs in the bots. (These instructions will |
| 374 | need to be updated for Android bots which don't have PCI buses.) |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 375 | |
John Budorick | b2ff224 | 2019-11-14 17:35:59 | [diff] [blame] | 376 | 1. Make sure to add these new machines to the chromium.tests.gpu Swarming |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 377 | pool by creating a CL against [`gpu.star`][gpu.star] in the |
| 378 | [`infradata/config`][infradata/config] (Google internal) workspace. |
| 379 | Git configure your user.email to @google.com if necessary. Here is one |
| 380 | [example CL](https://chrome-internal-review.googlesource.com/913528) |
| 381 | and a |
| 382 | [second example](https://chrome-internal-review.googlesource.com/1111456). |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 383 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 384 | 1. Run [`main.star`][main.star] to regenerate |
| 385 | `configs/chromium-swarm/bots.cfg`. Double-check your work there. |
Kenneth Russell | fb27e2d | 2019-03-29 22:19:55 | [diff] [blame] | 386 | |
| 387 | 1. Allocate new virtual machines for the bots as described in [How to set up |
| 388 | new virtual machine |
| 389 | instances](#How-to-set-up-new-virtual-machine-instances). |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 390 | |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 391 | 1. Create a CL in the Chromium workspace which does the following. Here's an |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 392 | [example CL](https://chromium-review.googlesource.com/c/chromium/src/+/1752291). |
| 393 | 1. Adds the new machines to [`waterfalls.pyl`][waterfalls.pyl] directly or |
| 394 | to [`mixins.pyl`][mixins.pyl], referencing the new mixin in |
| 395 | [`waterfalls.pyl`][waterfalls.pyl]. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 396 | 1. The swarming dimensions are crucial. These must match the GPU and |
| 397 | OS type of the physical hardware in the Swarming pool. This is what |
| 398 | causes the VMs to spawn their tests on the correct hardware. Make |
John Budorick | b2ff224 | 2019-11-14 17:35:59 | [diff] [blame] | 399 | sure to use the chromium.tests.gpu pool, and that the new machines |
| 400 | were specifically added to that pool. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 401 | 1. Make triply sure that there are no collisions between the new |
| 402 | hardware you're adding and hardware already in the Swarming pool. |
| 403 | For example, it used to be the case that all of the Windows NVIDIA |
| 404 | bots ran the same OS version. Later, the Windows 8 flavor bots were |
| 405 | added. In order to avoid accidentally running tests on Windows 8 |
| 406 | when Windows 7 was intended, the OS in the swarming dimensions of |
| 407 | the Win7 bots had to be changed from `win` to |
| 408 | `Windows-2008ServerR2-SP1` (the Win7-like flavor running in our |
| 409 | data center). Similarly, the Win8 bots had to have a very precise |
| 410 | OS description (`Windows-2012ServerR2-SP0`). |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 411 | 1. If you're deploying a new bot that's similar to another existing |
Kenneth Russell | 8a386d4 | 2018-06-02 09:48:01 | [diff] [blame] | 412 | configuration, please search around in |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 413 | [`test_suite_exceptions.pyl`][test_suite_exceptions.pyl] for |
| 414 | references to the other bot's name and see if your new bot needs |
| 415 | to be added to any exclusion lists. For example, some of the tests |
| 416 | don't run on certain Win bots because of missing OpenGL extensions. |
| 417 | 1. Run [`generate_buildbot_json.py`][generate_buildbot_json.py] to |
| 418 | regenerate `src/testing/buildbot/chromium.gpu.fyi.json`. |
| 419 | 1. Updates [`ci.star`][ci.star] and its related generated files |
Brian Sheedy | a7bd47b | 2020-05-12 01:10:01 | [diff] [blame] | 420 | [`cr-buildbucket.cfg`][cr-buildbucket.cfg], |
| 421 | [`luci-scheduler.cfg`][luci-scheduler.cfg], and |
| 422 | ['luci-milo.cfg`][luci-milo.cfg]: |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 423 | * Use the appropriate definition for the type of the bot being added, |
| 424 | for example, `ci.gpu_fyi_thin_tester()` should be used for all CI |
| 425 | tester bots on GPU FYI waterfall. |
| 426 | * Make sure to set `triggered_by` property to the builder which |
| 427 | triggers the testers (like `'GPU Win FYI Builder'`). |
Brian Sheedy | a7bd47b | 2020-05-12 01:10:01 | [diff] [blame] | 428 | * Include a `ci.console_view_entry` for the builder's |
| 429 | `console_view_entry` argument. Look at the short names and |
| 430 | categories to try and come up with a reasonable organization. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 431 | 1. Run `main.star` in [`src/infra/config`][src/infra/config] to update the |
| 432 | generated files. Double-check your work there. |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 433 | 1. If you were adding a new builder, you would need to also add the new |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 434 | machine to [`src/tools/mb/mb_config.pyl`][mb_config.pyl]. |
Kenneth Russell | 139881b | 2018-05-04 00:45:20 | [diff] [blame] | 435 | |
| 436 | 1. After the Chromium-side CL lands it will take some time for all of |
| 437 | the configuration changes to be picked up by the system. The bot |
Kenneth Russell | 4d1bb448 | 2018-05-09 23:36:37 | [diff] [blame] | 438 | will probably be in a red or purple state, claiming that it can't |
| 439 | find its configuration. (It might also be in an "empty" state, not |
| 440 | running any jobs at all.) |
Kenneth Russell | 139881b | 2018-05-04 00:45:20 | [diff] [blame] | 441 | |
Kenneth Russell | 4d1bb448 | 2018-05-09 23:36:37 | [diff] [blame] | 442 | 1. *After* the Chromium-side CL lands and the bot is on the console, create a CL |
| 443 | in the [`tools/build`][tools/build] workspace which does the |
Kenneth Russell | 139881b | 2018-05-04 00:45:20 | [diff] [blame] | 444 | following. Here's an [example |
| 445 | CL](https://chromium-review.googlesource.com/1041145). |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 446 | 1. Adds the new bot to [`chromium_gpu_fyi.py`][chromium_gpu_fyi.py] in |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 447 | `recipes/recipe_modules/chromium_tests/builders/`. Make sure to set the |
Kenneth Russell | 139881b | 2018-05-04 00:45:20 | [diff] [blame] | 448 | `serialize_tests` property to `True`. This is specified for waterfall |
| 449 | bots, but not trybots, and helps avoid overloading the physical |
| 450 | hardware. Double-check the `BUILD_CONFIG` and `parent_buildername` |
| 451 | properties for each. They must match the Release/Debug flavor of the |
| 452 | builder, like `GPU FYI Win Builder` vs. `GPU FYI Win Builder (dbg)`. |
| 453 | 1. Get this reviewed and landed. This step tells the Chromium recipe about |
| 454 | the newly-deployed waterfall bot, so it knows which JSON file to load |
| 455 | out of src/testing/buildbot and which entry to look at. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 456 | 1. Sometimes it is necessary to retrain recipe expectations |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 457 | (`recipes/recipes.py test train`). This is usually needed only |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 458 | if the bot adds untested code flow in a recipe, but it's something |
| 459 | to watch out for if your CL fails presubmit for some reason. |
Kenneth Russell | 139881b | 2018-05-04 00:45:20 | [diff] [blame] | 460 | |
Kenneth Russell | 4d1bb448 | 2018-05-09 23:36:37 | [diff] [blame] | 461 | 1. Note that it is crucial that the bot be deployed before hooking it up in the |
| 462 | tools/build workspace. In the new LUCI world, if the parent builder can't |
| 463 | find its child testers to trigger, that's a hard error on the parent. This |
| 464 | will cause the builders to fail. You can and should prepare the tools/build |
| 465 | CL in advance, but make sure it doesn't land until the bot's on the console. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 466 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 467 | 1. If the number of physical machines for the new bot permits, you should also |
| 468 | add a manually-triggered trybot at the same time that the CI bot is added. |
| 469 | This is described in [How to add a new manually-triggered trybot]. |
| 470 | |
Brian Sheedy | 1ac3f67 | 2021-01-06 23:43:03 | [diff] [blame] | 471 | While the above instructions assume that an existing parent builder will be |
| 472 | be used, a new one can be set up by performing a modified version of the steps: |
| 473 | |
| 474 | 1. Make a [`tools/build`][tools/build] CL that adds the config for *only* the |
| 475 | new builder and land it. |
| 476 | 1. Make and land Chromium CL that makes the above changes in addition to the |
| 477 | following: |
| 478 | 1. Add the new builder to the necessary `//infra/config` files in the same |
| 479 | way as the tester. |
| 480 | 1. Add the new builder to [`src/tools/mb/mb_config.pyl`][mb_config.pyl]. |
| 481 | 1. Make a [`tools/build`][tools/build] CL that adds the config for *only* the |
| 482 | new tester and land it. |
| 483 | |
| 484 | Attempting to set up the builder/tester pair without first landing the |
| 485 | [`tools/build`][tools/build] CL for the new builder will result in things |
| 486 | breaking as seen in [this bug][misconfigured builder bug]. |
| 487 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 488 | [How to add a new manually-triggered trybot]: https://chromium.googlesource.com/chromium/src/+/master/docs/gpu/gpu_testing_bot_details.md#How-to-add-a-new-manually_triggered-trybot |
| 489 | |
Brian Sheedy | a7bd47b | 2020-05-12 01:10:01 | [diff] [blame] | 490 | [ci.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/subprojects/ci.star |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 491 | [chromium.gpu.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/consoles/chromium.gpu.star |
| 492 | [chromium.gpu.fyi.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/consoles/chromium.gpu.fyi.star |
| 493 | [cr-buildbucket.cfg]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/generated/cr-buildbucket.cfg |
| 494 | [luci-scheduler.cfg]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/generated/luci-scheduler.cfg |
| 495 | [luci-milo.cfg]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/generated/luci-milo.cfg |
| 496 | [GPU FYI Win Builder]: https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/GPU%20FYI%20Win%20Builder |
Brian Sheedy | 1ac3f67 | 2021-01-06 23:43:03 | [diff] [blame] | 497 | [misconfigured builder bug]: https://bugs.chromium.org/p/chromium/issues/detail?id=1163657 |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 498 | |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 499 | ### How to start running tests on a new GPU type on an existing try bot |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 500 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 501 | Let's say that you want to cause the `win10_chromium_x64_rel_ng` try bot to run |
| 502 | tests on CoolNewGPUType in addition to the types it currently runs (as of this |
| 503 | writing only NVIDIA). To do this: |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 504 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 505 | 1. Make sure there is enough hardware capacity using the available tools to |
| 506 | report utilization of the Swarming pool. |
| 507 | 1. Deploy Release and Debug testers on the `chromium.gpu` waterfall, following |
| 508 | the instructions for the `chromium.gpu.fyi` waterfall above. Make sure |
| 509 | the flakiness on the new bots is comparable to existing `chromium.gpu` bots |
| 510 | before proceeding. |
| 511 | 1. Create a CL in the [`tools/build`][tools/build] workspace, adding the new |
| 512 | Release tester to `win10_chromium_x64_rel_ng`'s `bot_ids` list |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 513 | in `recipes/recipe_modules/chromium_tests/trybots.py`. Rerun |
| 514 | `recipes/recipes.py test train`. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 515 | 1. Once the above CL lands, the commit queue will **immediately** start |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 516 | running tests on the CoolNewGPUType configuration. Be vigilant and make |
| 517 | sure that tryjobs are green. If they are red for any reason, revert the CL |
| 518 | and figure out offline what went wrong. |
| 519 | |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 520 | ### How to add a new manually-triggered trybot |
| 521 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 522 | Manually-triggered trybots are needed for investigating failures on a GPU type |
| 523 | which doesn't have a corresponding CQ trybot (due to lack of GPU resources). |
| 524 | Even for GPU types that have CQ trybots, it is convenient to have |
| 525 | manually-triggered trybots as well, since the CQ trybot often runs on more than |
| 526 | one GPU type, or some test suites which run on CI bot can be disabled on CQ |
| 527 | trybot (when the CQ bot mirrors a |
| 528 | [fake bot](https://chromium.googlesource.com/chromium/src/+/master/docs/gpu/gpu_testing_bot_details.md#how-to-add-a-new-try-bot-that-runs-a-subset-of-tests-or-extra-tests)). |
| 529 | Thus, all CI bots in `chromium.gpu` and `chromium.gpu.fyi` have corresponding |
| 530 | manually-triggered trybots, except a few which don't have enough hardware |
| 531 | to support it. A manually-triggered trybot should be added at the same time |
| 532 | a CI bot is added. |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 533 | |
| 534 | Here are the steps to set up a new trybot which runs tests just on one |
| 535 | particular GPU type. Let's consider that we are adding a manually-triggered |
| 536 | trybot for the Win7 NVIDIA GPUs in Release mode. We will call the new bot |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 537 | `gpu-fyi-try-win7-nvidia-rel-64`. |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 538 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 539 | 1. If there already exist some manually-triggered trybot which runs tests on |
| 540 | the same group of machines (i.e. same GPU, OS and driver), the new trybot |
| 541 | will have to share the VMs with it. Otherwise, create a new pool of VMs for |
| 542 | the new hardware and allocate the VMs as described in |
| 543 | [How to set up new virtual machine instances](#How-to-set-up-new-virtual-machine-instances), |
| 544 | following the "Manually-triggered GPU trybots" instructions. |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 545 | |
Brian Sheedy | a7bd47b | 2020-05-12 01:10:01 | [diff] [blame] | 546 | 1. Create a CL in the Chromium workspace which does the following. Here's a |
| 547 | [reference CL](https://chromium-review.googlesource.com/c/chromium/src/+/2191276) |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 548 | exemplifying the new "GCE pool per GPU hardware pool" way. |
| 549 | 1. Updates [`gpu.try.star`][gpu.try.star] and its related generated file |
| 550 | [`cr-buildbucket.cfg`][cr-buildbucket.cfg]: |
| 551 | * Add the new trybot with the right `builder` define and VMs pool. |
| 552 | For `gpu-fyi-try-win7-nvidia-rel-64` this would be |
| 553 | `gpu_win_builder()` and `luci.chromium.gpu.win7.nvidia.try`. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 554 | 1. Run `main.star` in [`src/infra/config`][src/infra/config] to update the |
| 555 | generated files. Double-check your work there. |
| 556 | 1. Adds the new trybot to [`src/tools/mb/mb_config.pyl`][mb_config.pyl] |
| 557 | and [`src/tools/mb/mb_config_buckets.pyl`][mb_config_buckets.pyl]. |
| 558 | Use the same mixin as does the builder for the CI bot this trybot |
| 559 | mirrors, in case of `gpu-fyi-try-win7-nvidia-rel-64` this is |
| 560 | `GPU FYI Win x64 Builder` and thus `gpu_fyi_tests_release_trybot`. |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 561 | 1. Get this CL reviewed and landed. |
| 562 | |
| 563 | 1. Create a CL in the [`tools/build`][tools/build] workspace which does the |
| 564 | following. Here's an [example |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 565 | CL](https://chromium-review.googlesource.com/c/chromium/tools/build/+/1979113). |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 566 | |
| 567 | 1. Adds the new trybot to a "Manually-triggered GPU trybots" section in |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 568 | `recipes/recipe_modules/chromium_tests/tests/trybots.py`. Create this |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 569 | section after the "Optional GPU bots" section for the appropriate |
| 570 | tryserver (`tryserver.chromium.win`, `tryserver.chromium.mac`, |
| 571 | `tryserver.chromium.linux`, `tryserver.chromium.android`). Have the bot |
| 572 | mirror the appropriate waterfall bot; in this case, the buildername to |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 573 | mirror is `GPU FYI Win x64 Builder` and the tester is |
| 574 | `Win7 FYI x64 Release (NVIDIA)`. |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 575 | 1. Get this reviewed and landed. This step tells the Chromium recipe about |
| 576 | the newly-deployed trybot, so it knows which JSON file to load out of |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 577 | `src/testing/buildbot` and which entry to look at to understand which |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 578 | tests to run and on what physical hardware. |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 579 | 1. It may be necessary to retrain recipe expectations for |
| 580 | [`tools/build`][tools/build] workspace CLs |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 581 | (`recipes/recipes.py test train`). This shouldn't be necessary |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 582 | for just adding a manually triggered trybot, but it's something to |
| 583 | watch out for if your CL fails presubmit for some reason. |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 584 | |
Kenneth Russell | fc56614 | 2018-06-26 22:34:15 | [diff] [blame] | 585 | At this point the new trybot should automatically show up in the |
| 586 | "Choose tryjobs" pop-up in the Gerrit UI, under the |
| 587 | `luci.chromium.try` heading, because it was deployed via LUCI. It |
| 588 | should be possible to send a CL to it. |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 589 | |
Kenneth Russell | fc56614 | 2018-06-26 22:34:15 | [diff] [blame] | 590 | (It should not be necessary to modify buildbucket.config as is |
| 591 | mentioned at the bottom of the "Choose tryjobs" pop-up. Contact the |
| 592 | chrome-infra team if this doesn't work as expected.) |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 593 | |
Brian Sheedy | a7bd47b | 2020-05-12 01:10:01 | [diff] [blame] | 594 | [gpu.try.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/subprojects/gpu.try.star |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 595 | [luci.chromium.try.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/consoles/luci.chromium.try.star |
| 596 | [tryserver.chromium.win.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/consoles/tryserver.chromium.win.star |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 597 | |
| 598 | |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 599 | ### How to add a new try bot that runs a subset of tests or extra tests |
Kenneth Russell | 3a8e5c02 | 2018-05-04 21:14:49 | [diff] [blame] | 600 | |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 601 | Several projects (ANGLE, Dawn) run custom tests using the Chromium recipes. They |
| 602 | use try bot bot configs that run subsets of Chromium or additional slower tests |
| 603 | that can't be run on the main CQ. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 604 | |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 605 | These try bots are a little different because they mirror waterfall bots that |
| 606 | don't actually exist. The waterfall bots' specifications exist only to tell |
| 607 | these try bots which tests to run. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 608 | |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 609 | Let's say that you intended to add a new such custom try bot on Windows. Call it |
| 610 | `win-myproject-rel` for example. You will need to add a "fake" mirror bot for |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 611 | each GPU family on which you want to run the tests. For a GPU type of |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 612 | "CoolNewGPUType" in this example you could add a "fake" bot named "MyProject GPU |
| 613 | Win10 Release (CoolNewGPUType)". |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 614 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 615 | 1. Allocate new virtual machines for the bots as described in |
| 616 | [How to set up new virtual machine instances](#How-to-set-up-new-virtual-machine-instances). |
| 617 | 1. Make sure there is enough hardware capacity using the available tools to |
| 618 | report utilization of the Swarming pool. |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 619 | 1. Create a CL in the Chromium workspace the does the following. Here's an |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 620 | outdated [example CL](https://crrev.com/c/1554296). |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 621 | 1. Add your new bot (for example, "MyProject GPU Win10 Release |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 622 | (CoolNewGPUType)") to the chromium.gpu.fyi waterfall in |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 623 | [`waterfalls.pyl`][waterfalls.pyl]. |
| 624 | 1. Add your new bot to |
| 625 | [`src/testing/buildbot/generate_buildbot_json.py`][generate_buildbot_json.py] |
| 626 | in the list of `get_bots_that_do_not_actually_exist` section. |
| 627 | 1. Re-run |
| 628 | [`src/testing/buildbot/generate_buildbot_json.py`][generate_buildbot_json.py] |
| 629 | to regenerate the JSON files. |
| 630 | 1. Update [`scheduler-noop-jobs.star`][scheduler-noop-jobs.star] to |
| 631 | include "MyProject GPU Win10 Release (CoolNewGPUType)". |
| 632 | 1. Update [`try.star`][try.star] and desired consoles to include |
| 633 | `win-myproject-rel`. |
| 634 | 1. Run `main.star` in [`src/infra/config`][src/infra/config] to update the |
| 635 | generated files: [`luci-milo.cfg`][luci-milo.cfg], |
| 636 | [`luci-scheduler.cfg`][luci-scheduler.cfg], |
| 637 | [`cr-buildbucket.cfg`][cr-buildbucket.cfg]. Double-check your work |
| 638 | there. |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 639 | 1. Update [`src/tools/mb/mb_config.pyl`][mb_config.pyl] |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 640 | to include `win-myproject-rel`. |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 641 | 1. *After* the Chromium-side CL lands and the bot is on the console, create a CL |
| 642 | in the [`tools/build`][tools/build] workspace which does the |
| 643 | following. Here's an [example CL](https://crrev.com/c/1554272). |
| 644 | 1. Adds "MyProject GPU Win10 Release |
| 645 | (CoolNewGPUType)" to [`chromium_gpu_fyi.py`][chromium_gpu_fyi.py] in |
Yuly Novikov | 55b23a6 | 2020-10-02 18:23:43 | [diff] [blame] | 646 | `recipes/recipe_modules/chromium_tests/builders/`. You can copy a similar |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 647 | step. |
| 648 | 1. Adds `win-myproject-rel` to [`trybots.py`][trybots.py] in the same folder. |
| 649 | This is where you associate "MyProject GPU Win10 Release |
| 650 | (CoolNewGPUType)" with `win-myproject-rel`. See the sample CL for an example. |
| 651 | 1. Get this reviewed and landed. This step tells the Chromium recipe about |
| 652 | the newly-deployed waterfall bot, so it knows which JSON file to load |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 653 | out of `src/testing/buildbot` and which entry to look at. |
Jamie Madill | da894ce | 2019-04-08 17:19:17 | [diff] [blame] | 654 | 1. After your CLs land you should be able to find and run `win-myproject-rel` on CLs |
| 655 | using Choose Trybots in Gerrit. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 656 | |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 657 | [scheduler-noop-jobs.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/generators/scheduler-noop-jobs.star |
Brian Sheedy | a7bd47b | 2020-05-12 01:10:01 | [diff] [blame] | 658 | [try.star]: https://chromium.googlesource.com/chromium/src/+/master/infra/config/subprojects/try.star |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 659 | |
| 660 | |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 661 | ### How to test and deploy a driver and/or OS update |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 662 | |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 663 | Let's say that you want to roll out an update to the graphics drivers or the OS |
| 664 | on one of the configurations like the Linux NVIDIA bots. In order to verify |
| 665 | that the new driver or OS won't destabilize Chromium's commit queue, |
| 666 | it's necessary to run the new driver or OS on one of the waterfalls for a day |
| 667 | or two to make sure the tests are reliably green before rolling out the driver |
| 668 | or OS update. To do this: |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 669 | |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 670 | 1. Make sure that all of the current Swarming jobs for this OS and GPU |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 671 | configuration are targeted at the "stable" version of the driver and the OS |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 672 | in [`waterfalls.pyl`][waterfalls.pyl] and [`mixins.pyl`][mixins.pyl]. |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 673 | 1. File a `Build Infrastructure` bug, component `Infra>Labs`, to have ~4 of |
| 674 | the physical machines already in the Swarming pool upgraded to the new |
| 675 | version of the driver or the OS. |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 676 | 1. If an "experimental" version of this bot doesn't yet exist, follow the |
| 677 | instructions above for [How to add a new tester bot to the chromium.gpu.fyi |
| 678 | waterfall](#How-to-add-a-new-tester-bot-to-the-chromium_gpu_fyi-waterfall) |
| 679 | to deploy one. |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 680 | 1. Have this experimental bot target the new version of the driver or the OS |
Yuly Novikov | 8e92b17 | 2020-02-07 17:40:12 | [diff] [blame] | 681 | in [`waterfalls.pyl`][waterfalls.pyl] and [`mixins.pyl`][mixins.pyl]. |
| 682 | [Sample CL][sample driver cl]. |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 683 | 1. Hopefully, the new machine will pass the pixel tests. If it doesn't, then |
Brian Sheedy | 1cea4d4 | 2019-08-12 18:09:49 | [diff] [blame] | 684 | it'll be necessary to follow the instructions on |
| 685 | [updating Gold baselines (step #4)][updating gold baselines]. |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 686 | 1. Watch the new machine for a day or two to make sure it's stable. |
Brian Sheedy | 811cca7 | 2020-05-21 21:34:14 | [diff] [blame] | 687 | 1. When it is, add the experimental driver/OS to the `_stable` mixin using the |
| 688 | swarming OR operator `|`. For example: |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 689 | |
Yuly Novikov | f13babb | 2019-04-24 23:46:57 | [diff] [blame] | 690 | ``` |
Brian Sheedy | 811cca7 | 2020-05-21 21:34:14 | [diff] [blame] | 691 | 'win10_intel_hd_630_stable': { |
| 692 | 'swarming': { |
| 693 | 'dimensions': { |
| 694 | 'gpu': '8086:5912-26.20.100.7870|8086:5912-26.20.100.8141', |
| 695 | 'os': 'Windows-10', |
| 696 | 'pool': 'chromium.tests.gpu', |
| 697 | }, |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 698 | }, |
Yuly Novikov | 3fbea99 | 2019-06-28 18:25:42 | [diff] [blame] | 699 | } |
| 700 | ``` |
| 701 | |
Brian Sheedy | 811cca7 | 2020-05-21 21:34:14 | [diff] [blame] | 702 | This will cause tests triggered using the `_stable` mixin to run on either |
| 703 | the old stable dimension or the experimental/new stable dimension. |
| 704 | |
| 705 | **NOTE** There is a hard cap of 8 combinations in swarming, so you can only |
| 706 | use the OR operator in up to 3 dimensions if each dimension only has two |
| 707 | options. More than two options per dimension is allowed as long as the total |
| 708 | number of combinations is 8 or less. |
Kenneth Russell | 384a173 | 2019-03-16 02:36:02 | [diff] [blame] | 709 | 1. After it lands, ask the Chrome Infrastructure Labs team to roll out the |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 710 | driver update across all of the similarly configured bots in the swarming |
| 711 | pool. |
| 712 | 1. If necessary, update pixel test expectations and remove the suppressions |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 713 | added above. |
Brian Sheedy | 811cca7 | 2020-05-21 21:34:14 | [diff] [blame] | 714 | 1. Remove the old driver or OS version from the `_stable` mixin, leaving just |
| 715 | the new stable version. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 716 | |
Kenneth Russell | 9618adde | 2018-05-03 03:16:05 | [diff] [blame] | 717 | Note that we leave the experimental bot in place. We could reclaim it, but it |
| 718 | seems worthwhile to continuously test the "next" version of graphics drivers as |
| 719 | well as the current stable ones. |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 720 | |
Brian Sheedy | 1cea4d4 | 2019-08-12 18:09:49 | [diff] [blame] | 721 | [sample driver cl]: https://chromium-review.googlesource.com/c/chromium/src/+/1726875 |
Brian Sheedy | 1cea4d4 | 2019-08-12 18:09:49 | [diff] [blame] | 722 | [updating gold baselines]: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/gpu/pixel_wrangling.md#how-to-keep-the-bots-green |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 723 | |
| 724 | ## Credentials for various servers |
| 725 | |
| 726 | Working with the GPU bots requires credentials to various services: the isolate |
| 727 | server, the swarming server, and cloud storage. |
| 728 | |
| 729 | ### Isolate server credentials |
| 730 | |
| 731 | To upload and download isolates you must first authenticate to the isolate |
| 732 | server. From a Chromium checkout, run: |
| 733 | |
| 734 | * `./src/tools/swarming_client/auth.py login |
| 735 | --service=https://isolateserver.appspot.com` |
| 736 | |
| 737 | This will open a web browser to complete the authentication flow. A @google.com |
| 738 | email address is required in order to properly authenticate. |
| 739 | |
| 740 | To test your authentication, find a hash for a recent isolate. Consult the |
| 741 | instructions on [Running Binaries from the Bots Locally] to find a random hash |
Takuto Ikuta | f533325 | 2019-11-06 16:07:08 | [diff] [blame] | 742 | from a target like `gl_tests`. Then run the following: |
Kai Ninomiya | a6429fb3 | 2018-03-30 01:30:56 | [diff] [blame] | 743 | |
| 744 | [Running Binaries from the Bots Locally]: https://www.chromium.org/developers/testing/gpu-testing#TOC-Running-Binaries-from-the-Bots-Locally |
| 745 | |
| 746 | If authentication succeeded, this will silently download a file called |
| 747 | `delete_me` into the current working directory. If it failed, the script will |
| 748 | report multiple authentication errors. In this case, use the following command |
| 749 | to log out and then try again: |
| 750 | |
| 751 | * `./src/tools/swarming_client/auth.py logout |
| 752 | --service=https://isolateserver.appspot.com` |
| 753 | |
| 754 | ### Swarming server credentials |
| 755 | |
| 756 | The swarming server uses the same `auth.py` script as the isolate server. You |
| 757 | will need to authenticate if you want to manually download the results of |
| 758 | previous swarming jobs, trigger your own jobs, or run `swarming.py reproduce` |
| 759 | to re-run a remote job on your local workstation. Follow the instructions |
| 760 | above, replacing the service with `https://chromium-swarm.appspot.com`. |
| 761 | |
| 762 | ### Cloud storage credentials |
| 763 | |
| 764 | Authentication to Google Cloud Storage is needed for a couple of reasons: |
| 765 | uploading pixel test results to the cloud, and potentially uploading and |
| 766 | downloading builds as well, at least in Debug mode. Use the copy of gsutil in |
| 767 | `depot_tools/third_party/gsutil/gsutil`, and follow the [Google Cloud Storage |
| 768 | instructions] to authenticate. You must use your @google.com email address and |
| 769 | be a member of the Chrome GPU team in order to receive read-write access to the |
| 770 | appropriate cloud storage buckets. Roughly: |
| 771 | |
| 772 | 1. Run `gsutil config` |
| 773 | 2. Copy/paste the URL into your browser |
| 774 | 3. Log in with your @google.com account |
| 775 | 4. Allow the app to access the information it requests |
| 776 | 5. Copy-paste the resulting key back into your Terminal |
| 777 | 6. Press "enter" when prompted for a project-id (i.e., leave it empty) |
| 778 | |
| 779 | At this point you should be able to write to the cloud storage bucket. |
| 780 | |
| 781 | Navigate to |
| 782 | <https://console.developers.google.com/storage/chromium-gpu-archive> to view |
| 783 | the contents of the cloud storage bucket. |
| 784 | |
| 785 | [Google Cloud Storage instructions]: https://developers.google.com/storage/docs/gsutil |