From 32cafdc57020e2536aa83e71be562f637ac955ed Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 15 May 2025 21:31:01 +0300 Subject: [PATCH] feat(ops/modules/monorepo-gerrit): enable webhooks plugin Fixes: https://git.snix.dev/snix/snix/issues/74 Change-Id: If4ca98cc1886f5e0a26dcc1ebeef4758054d3811 Reviewed-on: https://cl.snix.dev/c/snix/+/30529 Tested-by: besadii Autosubmit: Florian Klink Reviewed-by: Ryan Lahfa --- ops/modules/monorepo-gerrit.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ops/modules/monorepo-gerrit.nix b/ops/modules/monorepo-gerrit.nix index 84b8ae70b..2bfc512ed 100644 --- a/ops/modules/monorepo-gerrit.nix +++ b/ops/modules/monorepo-gerrit.nix @@ -29,6 +29,7 @@ in "download-commands" "hooks" "replication" + "webhooks" ]; plugins = with gerritPlugins; [ @@ -132,6 +133,14 @@ in disabledBranch = "refs/meta/config"; }; + plugin.webhooks = { + connectionTimeout = 3000; + socketTimeout = 2500; + maxTries = 5; + retryInterval = 5000; + threadPoolSize = 3; + }; + # Allow users to add additional email addresses to their accounts. oauth.allowRegisterNewEmail = true;