Compare commits

...

3 commits

Author SHA1 Message Date
513e0a6ead feat: introduce statcheck worker
Status & checks RPC & event queue.

The status & checks is set by the rest of OfBorg, the web service needs
to be exposed.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-11-14 23:05:29 +01:00
91c0e260f3 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 <masterancpp@gmail.com>
2024-11-14 23:05:29 +01:00
726e2928ad feat: update ofborg
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-11-14 23:05:29 +01:00
2 changed files with 17 additions and 4 deletions

View file

@ -748,11 +748,11 @@
"ofborg": {
"flake": false,
"locked": {
"lastModified": 1731607448,
"narHash": "sha256-Ia/Qn8kCe60pTOsRDbCPdUpkqkp3IyD+BZw11PQCWVk=",
"lastModified": 1731621460,
"narHash": "sha256-aqv8K7mhsRo8fUYzomYf0UzVsFK+ikONqInn9pkWhik=",
"ref": "refs/heads/vcs-generalization",
"rev": "705adbb8e4c215724b9a33ca3cdecf6db10107cc",
"revCount": 1465,
"rev": "c922e6e4557d08d7969c8fb0d4abb1f840dab2de",
"revCount": 1470,
"type": "git",
"url": "https://git.lix.systems/the-distro/ofborg.git"
},

View file

@ -27,9 +27,12 @@ in {
rabbitmq.enable = mkEnableOption "ofborg AMQP queue";
builder.enable = mkEnableOption "ofborg builder worker";
pastebin.enable = mkEnableOption "ofborg pastebin service";
statcheck-worker.enable = mkEnableOption "ofborg status & checks worker";
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 {
@ -73,6 +76,10 @@ in {
db = "$STATE_DIRECTORY/db.json";
};
statcheck = {
db = "$STATE_DIRECTORY/db.sqlite";
};
# We use Gerrit.
vcs = "Gerrit";
gerrit = {
@ -107,6 +114,12 @@ in {
(mkIf cfg.pastebin.enable {
systemd.services.ofborg-pastebin = mkOfborgWorker "pastebin-worker" { };
})
(mkIf cfg.statcheck-worker.enable {
systemd.services.ofborg-statcheck-worker = mkOfborgWorker "statcheck-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" { };
})