commit | 37390f054ac467c809203e402f61897618c8cada | [log] [tgz] |
---|---|---|
author | Han-Wen Nienhuys <hanwen@google.com> | Thu Aug 24 12:40:45 2023 +0200 |
committer | Han-Wen Nienhuys <hanwen@google.com> | Mon Sep 04 13:50:27 2023 +0000 |
tree | d70dd6c66e2716ecd4b20e77ee226094f98a53e0 | |
parent | b8fab168b2c0ced101e8761eb639615b8e1fc47c [diff] |
Add change.propagateSubmitRequirementErrors option When used, attempting to fetch a ChangeInfo with SubmitRequirements in the ERROR state will generate a 500 HTTP status. This makes Gerrit unusable for such a change, but it is still useful at Google, as we have automated roll-out systems that will revert a new release if the new release shows HTTP 500 errors. When this happens, it means that an exception got wrapped in a String in SubmitRequirementEvaluatorImpl, and then ChangeData generates a new exception, without referring to the original exception. The original exception is still logged though. I did it this way to keep the SubmitRequirementEvaluatorImpl API simple: QueryParseException is a checked exception, and would have to be declared in all intermediate function signatures. Change-Id: I98169a1812445f963d8c58b7777b66b167d9d5b4 Bug: Google b/269077185 Release-Notes: allow SubmitRequirement errors to be HTTP 500 errors
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.