commit | 84229b5e61f91db3e9dc9e2c376d1a1b4b16c410 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Mon Jul 15 06:28:01 2024 +0000 |
committer | Edwin Kempin <ekempin@google.com> | Mon Jul 15 06:28:01 2024 +0000 |
tree | 6cf0969921439ee49b482a3d3df996e12644ac29 | |
parent | cda696ab0b1e02cb6b9f9d88ff030039d62bc1a7 [diff] |
Record in reject count metric whether the push was done by a service user The reject count metric counts rejection reasons for git pushes. This change extends the push kind so that we can not only distinguish between magic and direct pushes, but also between pushes by a human user and pushes by a service user (ideally those would be different fields, but metrics can have at most 3 fields). Knowing whether the git push was done by a human user or service user is important if we want to conclude if improving messages for common rejection reasons makes sense. E.g. if pushes from human users are often rejected with a certain reason, we might want to improve the error message to inform the user better what's wrong and what they need to do. On the other hand improving error messages for rejection reasons that are often hit by service users has likely much less impact. Hence we would like to be able to distinguish between pushes from human users and pushes from service users. Bug: Google b/151127672 Release-Notes: skip Change-Id: I4eb349fbb44b4b23319410ea823f14c55b90a31f Signed-off-by: Edwin Kempin <ekempin@google.com>
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.