commit | 4fe3b6e25d36cee16ac223e20ef336094661ffc6 | [log] [tgz] |
---|---|---|
author | Dmitrii Filippov <dmfilippov@google.com> | Tue Oct 19 10:21:09 2021 +0200 |
committer | Dmitrii Filippov <dmfilippov@google.com> | Tue Oct 26 14:28:56 2021 +0200 |
tree | 5a2067803fb8c46875860b7fd1aa9e3e57ff1e6b | |
parent | abf3c839a4ca349cbbebc60a686ab6f5c55184db [diff] |
Refresh soy templates asynchroniously Existing MailSoySauceProvider implementation allows to update soy templates without restarting the Gerrit server. However, the existing implementation is inneficient - it compiles template on each call to MailSoySauceProvider.get method; and the .get() method is called very often - at least once for every e-mail (but usually 3-4 times). The change introduces cache for storing compiled soy templates. Tests for the cache was done mostly manually. Writing tests requires mocks for Ticker, which leads to significant updates in CacheModule and DefaultMemoeryCacheFactory. This improves performance of our tests significantly. For example on my Mac: ChangeIT - before 4m01s, after 1m1s StickyApprovalsIT - before 3m50s, after: 30s Change-Id: Ief321b76295d74f2b7720fe7172ca27efb78dd5e
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.