commit | 65c0be5a40e635d243eac482f3fd1ec958b23ae9 | [log] [tgz] |
---|---|---|
author | Gavin Mak <gavinmak@google.com> | Fri Aug 27 22:46:16 2021 |
committer | Gavin Mak <gavinmak@google.com> | Fri Aug 27 22:46:16 2021 |
tree | 1ddb5220cf3a0941567a31c4dc81f009442b052c | |
parent | ea64cbb31ddc4a0b6f3b0991cf4a98b943322398 [diff] |
Style row with color and reduce width Coloring rows based on listing status (red for not allowed, green for large improvment) and reducing table width improve readability of the binary size table. Bug: 1228935 Change-Id: I0ad5764d4308b3fdaa68f5f665ad6b584cd3f6b2
The plugin queries the android-binary-size trybot for the current patchset on Gerrit, and gets the binary_size_plugin
property. This property contains the metadata about the binary size metrics affected by the patchset in question. It then shows an inline table with the metric deltas + links to SuperSize output.
This plugin is configured via the chromium-binary-size.config
file present in the repo‘s refs/meta/config
ref, as well as the same file in all repositories in the repo’s inheritance chain (up to and including All-Projects).
An example chromium-binary-size.config is below (this enables the plugin on the chromium/src repo using the android-binary-size trybot:
[host] gerrit = "chromium-review.googlesource.com" [repo "chromium/src"] builder = "android-binary-size" bucket = "try" project = "chromium"
All changes to chromium-binary-size.config
files are instantly reflected. There is no caching period or need to restart the server.
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit/plugins git clone https://chromium.googlesource.com/infra/gerrit-plugins/chromium-binary-size cd chromium-binary-size
Use the script run-with-prod-data.sh
(based on polygerrit-ui/run-server.sh
). You may change some paths by setting environment variables, for example:
GERRIT_DIR="$HOME/gerrit" ./run-with-prod-data.sh
npm run wct-test