commit | fbaa0a68f635a4df54f829b6eea3ead2e9a711b5 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Wed Apr 14 15:19:11 2021 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Tue Apr 20 12:09:54 2021 +0200 |
tree | 20cbd0fa8a7de878542144900f0e29c47c78547b | |
parent | fa71ca5cc7c3077cca8c5e79980d76d63721eca4 [diff] |
Set a default limit for the in-memory code owner config cache For Android and Chrome at Google p95 is mostly below 50 code owner config reads for change. However the worst peek that we observed for p99 is ~6.3k code owner config reads per change. Set a default limit of 10k for the cache that is well above the worst peek. The only purpose of this limit is to ensure that we are not running into out-of-memory errors if a projects has a crazy amount of OWNERS files. If the limit is reached the latency for code owner computations goes down, but that's better then running out of memory. According to a back-of-the-envelope calculation 10k entries should consume about 34 MiB of memory. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Iad98f176b1aea558294e89ee7995a79827bb5bfc
This plugin provides support for defining code owners for files in a repository.
If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.
Also see resources/Documentation/about.md.
IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md.