From 91c0e260f356209cebfdaa929f190d8713434b4c Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 14 Nov 2024 23:04:42 +0100 Subject: [PATCH] feat: introduce ofborg gerrit streamer This pipes events from Gerrit into the whole AMQP broker and enable all the system to react to VCS changes. We need a filter to transform raw Gerrit events into ofBorg specific events that we will continue to send in the system. Signed-off-by: Raito Bezarius --- services/ofborg/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/ofborg/default.nix b/services/ofborg/default.nix index 2136055..e666788 100644 --- a/services/ofborg/default.nix +++ b/services/ofborg/default.nix @@ -30,6 +30,8 @@ in { mass-rebuilder.enable = mkEnableOption "ofborg evaluator worker for mass rebuilds jobs"; stats.enable = mkEnableOption "ofborg prometheus worker"; + gerrit-events-streamer.enable = mkEnableOption "ofborg's Gerrit event streamer"; + package = mkPackageOption pkgs "ofborg" { }; settings = mkOption { @@ -107,6 +109,9 @@ in { (mkIf cfg.pastebin.enable { systemd.services.ofborg-pastebin = mkOfborgWorker "pastebin-worker" { }; }) + (mkIf cfg.gerrit-events-streamer.enable { + systemd.services.ofborg-gerrit-streamer = mkOfborgWorker "gerrit-events-streamer" { }; + }) (mkIf cfg.mass-rebuilder.enable { systemd.services.ofborg-mass-rebuilder = mkOfborgWorker "mass-rebuilder" { }; })