Clone this repo:


  1. deebeb9 Migrate to Flogger by Edwin Kempin · 4 weeks ago master
  2. bd7a882 [tricium] Simplify the tricium-view element by Quinten Yearsley · 3 months ago
  3. 8d85833 [tricium plugin] Change run ID in bug filing template to URL by Quinten Yearsley · 3 months ago
  4. 4c3f39b [tricium plugin] Remove the num-comments count by Quinten Yearsley · 4 months ago
  5. d5058ca [tricium plugin] Show Tricium results for last run before merged CL by Quinten Yearsley · 4 months ago

Tricium Plugin for Gerrit

Tricium is a code analysis service for Chromium. The purpose of this plugin is to integrate with the Gerrit UI, e.g. by displaying progress of analyzers.


Checking out the code

To check out the Tricium plugin code:

git clone

Running the tests

The unit tests of the plugin are web-component-tester unit tests. Dependencies are specified in bower.json and can be installed by running bower install in this directory. This requires bower to be installed.

To run the tests, run wct from this directory. See wct --help for more options.

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 globally, run npm install -g polymer-cli.

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

Integration testing with Gerrit

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

If needed, install bazel, and then build from the Gerrit repo root with bazel build plugins/tricium.

Running with PolyGerrit UI and production data

The Gerrit repo includes a script for trying the PolyGerrit UI with a local server local plugins but with production data. See

To set up to run PolyGerrit with a local copy of the plugin, first get the Gerrit repo:

git clone --recursive

Then move or link the Tricium repo so it's inside the gerrit/plugins/ directory, e.g. mv tricium gerrit/plugins/.

Known issue: with a locally run PolyGerrit, you can‘t log in, which means robot comment actions (e.g. the “not useful” button) aren’t visible by default.

Running a local Gerrit instance

It's also possible to test with a local instance of Gerrit.

To do this you must set up a Gerrit test site. To build the tricium plugin in Gerrit, it is assumed that the tricium directory is iniside the gerrit plugins directory.

Then, the local site could be started with Tricium by running

Project Configuration

This plugin is configured via the tricium.config file present in the repo's refs/meta/config ref. This file uses git config format. Example:

  tricium =