Clone this repo:

Branches

  1. be22818 [tricium] Add Makefile. by Joanna Wang · 4 weeks ago main master
  2. 86e8744 Update auth to use Gerrit JWT by Aravind Vasudevan · 5 weeks ago
  3. 29a8e66 Add object type to parseRpcJson by Gavin Mak · 6 months ago
  4. 76848c6 Convert to TypeScript and Lit by Gavin Mak · 6 months ago
  5. 87ab3e8 Rename file extensions from js to ts by Gavin Mak · 6 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

This plugin must be placed inside the Gerrit plugins directory. To check out the Tricium plugin code:

git clone --recurse-submodules https://gerrit.googlesource.com/gerrit
cd gerrit/plugins
git clone https://chromium.googlesource.com/infra/gerrit-plugins/tricium

Development

Run the commands below in web/.

Running the tests

For running unit tests execute:

make test

For checking or fixing eslint formatter problems run:

make lint_test
make lint_fix

Running with PolyGerrit UI and production data

For testing the plugin with Gerrit FE Dev Helper the command below builds the JavaScript bundle and copies it to the plugins/tricium folder:

make build

and let the Dev Helper redirect from .+/plugins/tricium/static/tricium.js to http://localhost:8081/plugins_/plugins/tricium.js.

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:

[host]
  tricium = tricium-prod.appspot.com