commit | fb59c451bcd2b8dfd01f02d57c24092daafd3110 | [log] [tgz] |
---|---|---|
author | Mohamed Heikal <mheikal@chromium.org> | Tue Feb 04 21:08:29 2020 |
committer | Mohamed Heikal <mheikal@chromium.org> | Tue Feb 04 21:08:29 2020 |
tree | 4a404f97b9512ef071ff2809ea17c0d102260bfe | |
parent | 18f65d552b324f49cca430dcf3c6221c18245baa [diff] |
chromium-binary-size V1.0 This CL enables the chromium-binary-size gerrit plugin for all users making it visible chromium-wide. This also contains some final fixes: - Links to logs now open in a new tab. - Plugin color scheme now works on Gerrit dark mode. - Plugin now shows red outline (instead of background) on large regressions. - Plugin can now show a green outline on large improvements. Bug: 921090 Change-Id: I64bee1c83b16bd26700630ad970f9330b177f98b
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 uses no config files since it only works with the android-binary-size trybot which only runs on the chromium repo CQ making this not compatible with any other host. If you want this to work on a different host, talk to the binary-size@chromium.org team.
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
# Install dependencies. npm install -g bower npm install -g web-component-tester bower install wct