commit | eada3bb471114e5329e394ae585d9d3428321ddf | [log] [tgz] |
---|---|---|
author | Mohamed Heikal <mheikal@chromium.org> | Wed Mar 25 14:40:02 2020 |
committer | Mohamed Heikal <mheikal@chromium.org> | Wed Mar 25 14:40:02 2020 |
tree | 0c0a1704e2665df18f4f301b74cb4991dfd86709 | |
parent | fb371cdda75a1c0ff94535e509a07c65a3cd01b9 [diff] |
Fix errorprone warnings + fix help link This cl fixes unused variable and hiding fields errorprone warnings. It also changes the help link to point at the more useful trybot docs rather than the gerrit plugin description. Change-Id: I900ffdf139a7dddc161b521ae4cb90e02443a612
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
# Install dependencies. npm install -g bower npm install -g web-component-tester bower install wct