commit | ebb7ef7c67afc94906094cc0f68d673989e183b6 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Sat Nov 18 01:24:31 2023 +0000 |
committer | Daniele Sassoli <danielesassoli@gmail.com> | Tue Jan 23 06:04:17 2024 -0800 |
tree | 6258ca946bdce16d5d26ca7f1f9f6b3401418f1a | |
parent | fd21061500029e6386da2bc5716fe2a808782fc1 [diff] |
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
This repository contains a collection of Gerrit scripting plugins that are intended to provide simple and useful extensions.
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.