Clone this repo:


  1. 2122784 Tricium plugin: Use plugin.restApi().getLoggedIn. by Quinten Yearsley · 5 hours ago master
  2. 6b9b8a4 Tricium plugin: send Gerrit host with Progress request by Quinten Yearsley · 7 hours ago
  3. 0a8cfc1 Tricium plugin: Change comments and log formatting in Java by Quinten Yearsley · 2 days ago
  4. 6414669 Tricium plugin: Update plugin to use swarmingUrl + swarmingTaskId by Quinten Yearsley · 4 days ago
  5. c749880 Tricium plugin: Add a convenience script for reloading Gerrit. by Quinten Yearsley · 5 days ago

Tricium Plugin for Gerrit

Tricium is a code analysis service for Chromium. The purpose of this plugin is to display progress of analyzers running via Tricium.


This plugin is configured via the tricium.config file present in the repo's refs/meta/config ref. This file uses git config format, and is expected to have a “host” section with a “tricium” setting, e.g.

  tricium =


You can create a local instance of Gerrit and use this plugin in that instance.

To build, check out the gerrit repo and create a symlink to the Tricium plugin directory in the gerrit plugins directory:

git clone
cd gerrit
ln -s /path/to/tricium/plugin/root plugins/tricium

If needed, install bazel, and then build from the Gerrit repo root:

bazel build plugins/tricium

This will create a Tricium plugin jar file at bazel-genfiles/plugins/tricium/tricium.jar.

Running a Local Gerrit Instance

To test locally, setup a Gerrit test site. Below we assume that the test site directory is ../gerrit_testsite.

Rebuild the Tricium plugin jar; to ensure that it is rebuilt even if there are only static resource file changes, you may need to remove the .jar file; then run the Gerrit server, using the same version of Java used to build Gerrit.

See the script for specific steps.

Among the logs you should see a line including a message like “Loaded plugin tricium”. You may then navigate to a change page in the local instance (you may need to make one if you haven't already) and you should see the plugin loaded on page.

Each time you update Tricium, you must rebuild and copy the jar file into the test site plugin directory and restart Gerrit. You may need to hard-reload the page in your browser so cached resources aren't used.

Running web component tests

First, dependencies must be installed via bower. This creates a bower_components directory which shouldn't be checked in:

npm install -g bower
npm install -g web-component-tester
cd test/
bower install

Then, you can run all of the tests from the tricium plugin directory root with the wct command with no arguments. See wct --help for more options related to running the tests.

Previewing UI with a static server

With a local static web server, such as the one provided by Polymer CLI, you can also view and tweak UI interactively.

To install the Polymer tool-set, run npm install -g polymer-cli.

After running polymer serve, you can view an example of how the tricium-element appears by navigating to: http://localhost:8081/components/tricium/src/main/resources/static/example.html