commit | ab49a63f5c159bda42d9ad1bdb9286bede6c5de4 | [log] [tgz] |
---|---|---|
author | Ben Rohlfs <brohlfs@google.com> | Mon Nov 23 14:33:47 2020 +0100 |
committer | Ben Rohlfs <brohlfs@google.com> | Mon Nov 23 13:45:25 2020 +0000 |
tree | 92f126b35483c0332c860f78c6ed570478fbaf8d | |
parent | c6b699bdf2c0e520c0c209acbd43778a3fd8f72d [diff] |
Add support for new reboot ChecksApi The plan is to switch the Checks Plugin to the new standard API and its UI at some point. This will be done via an experiment flag. This change adds basic support for this flag and converting/providing its data to the new plugin API. At the moment the flag is turned off for everyone, so this is currently for developing/debugging only. This was tested by using the Dev Helper and adding a few lines of code to the ChecksApi such that the provider was called. It was manually verified that the provider has converted and returned data. Unit tests will be added in later changes. Change-Id: Ib6b9f66f6bf34471db7b167495acccf7fac4d216
This plugin provides a unified experience for checkers (CI systems, static analyzers, etc.) to integrate with Gerrit Code Review.
When upgrading the plugin, please use init:
java -jar gerrit.war init -d site_path
More details about “init” in https://gerrit-review.googlesource.com/Documentation/pgm-init.html
To run UI tests here will need install dependencies from both npm and bower.
npm run wct-test
should take care both for you, read more in package.json
.
You will need polymer-bridges
which is a submodule you can clone from: https://gerrit-review.googlesource.com/admin/repos/polymer-bridges
bazel build gr-checks:gr-checks
gerrit/plugins/checks/
folder and it will automatically served at http://localhost:8081/plugins_/checks/
(no need to pass it to --plugins flag)If your plugin is already enabled, then you can block it and then inject the compiled local verison.
See more about how to use dev helper extension to help you test here: https://gerrit.googlesource.com/gerrit-fe-dev-helper/+/master