commit | 667669231189119e61088c2a2ad4e888b195db83 | [log] [tgz] |
---|---|---|
author | Mohamed Heikal <mheikal@chromium.org> | Tue Mar 17 18:13:07 2020 |
committer | Mohamed Heikal <mheikal@chromium.org> | Tue Mar 17 18:13:07 2020 |
tree | 8fac47a969fc8f88a7f3690a40f1b04b2c32990a | |
parent | a748da0aa95e02471ba73f4517c5d8401f3f2acb [diff] |
plugin now requests config from gerrit This cl moves the plugin away from hard coding the config towards querying gerrit for the config in anticipation of enabling this on another host and repo. Change-Id: Id88c3794e8d98f5f0366a1cbced20118776c8fcc
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