commit | 3ca47e5005c52253c995da64b50819b04443f2b2 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Mon Mar 10 22:03:50 2025 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Mon Mar 10 22:03:50 2025 +0000 |
tree | 4c517cd377b7ad760ef8bc271250c8ae61773fae | |
parent | ebe85a57e43543b06e0cec2b89037e6ae9ddb0a8 [diff] | |
parent | af2d2b1cd1cf3c11227f9dd9ea891fedc1df7f54 [diff] |
Merge branch 'stable-3.11' * stable-3.11: Add sentinel to prevent out of sync with global-refdb Improve ref-update validators tests Reformat with GJF 1.24.0 Change-Id: I98561ea5a4ec3c621bec484487262004988e3e7d
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://gerrit.googlesource.com/gerrit git clone https://gerrit.googlesource.com/modules/global-refdb cd gerrit/plugins ln -s ../../global-refdb .
From the Gerrit source tree issue the command bazelisk build plugins/global-refdb
Example:
bazelisk build plugins/global-refdb
The libModule jar file is created under bazel-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.