Contribute packed-refs.lock staleness checker

Add a general utility that exposes the age of the packed-refs.lock
file as a metric

The presence of $GIT_DIR/packed-refs.lock prevents multiple
threads or processes from updating the packed-refs file
concurrently. However, if one of the threads or processes
dies in the middle of updating the refs, the repository
packed-refs are locked forever.

The list of projects prefixes, the frequency of the checks
and the max age for a lock file for being considered stale is
configurable as plugin setting in gerrit.config.

Change-Id: Ie8714f28e1191b1ef255d1aeffa1ca6a73a6a959
2 files changed
tree: 6258ca946bdce16d5d26ca7f1f9f6b3401418f1a
  1. admin/
  2. multi-primary/
  3. .gitignore
  4. README.md
README.md

Gerrit scripting plugins collection

Overview

This repository contains a collection of Gerrit scripting plugins that are intended to provide simple and useful extensions.

How to run the scripting plugins

Gerrit needs to be able to recognise the scripts syntax and being able to load them as plugins.

In order to be able to run Groovy scripts, you need to install first the Groovy scripting provider and then copy the Groovy scripts under your Gerrit /plugins directory.

Similarly for Scala scripts, you need to install the Scala scripting provider and then copy the Scala scripts under your Gerrit /plugins directory.

Administration Scripts

Gerrit multi-primary Scripts