commit | 40d5e710c9154f0075be9f5370aa38c098235a8f | [log] [tgz] |
---|---|---|
author | Gal Paikin <paiking@google.com> | Sun Nov 07 18:51:47 2021 +0100 |
committer | Gal Paikin <paiking@google.com> | Thu Nov 11 14:56:20 2021 +0100 |
tree | 68eed3951b3ddfb6e16762d1ce889e94f3ddfdca | |
parent | 2f4985084e391982bd1805e489a0d52eba9397ef [diff] |
Fix post submit diff size limit The change index has a limit for the cumulative size of comments for each change. At Google, the limit is 5MB. The cumulative comment size that is default and is set at Google is 3MB, which provides a buffer of 2MB for things that don't count against the limit. Post Submit Diff is an example for something that doesn't count against the limit. In the 2 follow-up changes, we will count autogenerated messages and the post submit diff as part of the limit. Hence, we fix the maximum size of this post submit diff to be a tenth of the cumulative size limit that is set (by default that would be 300KB). That way, there is no danger of surpassing the "real" maximum which is 5MB. While at it, we also adjust/fix some of the tests about those limits. Additionally: 1. We do not filter change messages on CommentCumulativeSizeValidator. 2. We check on post submit diff that we do not exceed the limit (and not just "not exceed 10% of the limit"). Change-Id: Ic67e06dbc2f6330519837e1644a3a2fab2110c59
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.