commit | be1edd1560dc3ed112118cb982d4527fe810402f | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Sat Mar 08 01:18:46 2025 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Mon Mar 10 12:46:06 2025 +0000 |
tree | 236795559f5567dc2f602c713ff63735a1da1b7f | |
parent | 075a70a3d65a6d2f9e59820074b2a44fe817ae54 [diff] |
Improve ref-update validators tests Make sure that ref-update validators tests are more representative of a real scenario, having the local ref-update to actually perform the operation or, when used as a mock, simulate the before and after the update local ref status. Change-Id: I1c05dc3d9521cd2579ca0d3d8ec21024a26b47a5
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 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.