Clone this repo:


  1. 8844505 [tricium plugin] Use PolyGerrit CSS vars by Quinten Yearsley · 2 weeks ago master
  2. ff40292 [tricium plugin] Change auth state to match buildbucket plugin by Quinten Yearsley · 4 weeks ago
  3. c5d665a [tricium plugin] Update progress request for progress for new API by Quinten Yearsley · 6 weeks ago
  4. beeafef tricium plugin: use async/await in elements by Quinten Yearsley · 9 weeks ago
  5. 648966d tricium plugin: use async/await in tests by Quinten Yearsley · 9 weeks ago

Tricium Plugin for Gerrit

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

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 =


Checking out the code

To check out the Tricium plugin code:

git clone

Running web component tests

The plugin‘s unit tests are web-component-tester unit tests. 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

These tests can be run from the tricium plugin directory root with the wct command with no arguments. 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, 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/tests/example.html.

Testing with Gerrit

You can create a local instance of Gerrit and use this plugin in that instance. To build, check out the gerrit repo:

git clone --recursive

If needed, install bazel, and then build from the Gerrit repo root with 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 with a local instance of Gerrit, you must first 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:

cd gerrit
ln -s /path/to/tricium/plugin/root plugins/tricium
bazel build plugins/tricium

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

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