commit | d2d6a725d73403ba6f443d184548d6805309958b | [log] [tgz] |
---|---|---|
author | Mohamed Heikal <mheikal@chromium.org> | Tue Nov 05 23:34:10 2019 |
committer | Mohamed Heikal <mheikal@chromium.org> | Tue Nov 05 23:34:10 2019 |
tree | 0f2241e6c2ee1d14df5320ba8b503ca019c3c30f | |
parent | 58c6d404f6b1cb6d85b478eb54df5f9401adebce [diff] |
Add java component to plugin Gerrit requires a boilerplate java class for gerrit to recognise the plugin. Change-Id: I4e6de7d07cc323526cc7829e53232c37d560734e
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