aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-03-22 15:42:40 +0000
committerChristopher Baines <mail@cbaines.net>2023-03-22 15:56:13 +0000
commitbaa9cd85812ffe0fc44cb5a25f04fed6a962f2dd (patch)
tree826bcab714c986e5a34ed5fe2c0b1bd7a19860a5
parent6cc8fc64e5bda8f748ef427648740c3cabfe2152 (diff)
downloadbuild-coordinator-baa9cd85812ffe0fc44cb5a25f04fed6a962f2dd.tar
build-coordinator-baa9cd85812ffe0fc44cb5a25f04fed6a962f2dd.tar.gz
Include build tags in the coordinator state
-rw-r--r--guix-build-coordinator/client-communication.scm12
1 files changed, 9 insertions, 3 deletions
diff --git a/guix-build-coordinator/client-communication.scm b/guix-build-coordinator/client-communication.scm
index 07640a5..7e84199 100644
--- a/guix-build-coordinator/client-communication.scm
+++ b/guix-build-coordinator/client-communication.scm
@@ -517,9 +517,15 @@
agent-id)))
(builds
. ,(list->vector
- (datastore-list-agent-builds
- datastore
- (assq-ref agent-details 'uuid)))))))
+ (map
+ (lambda (build)
+ `(,@build
+ (tags . ,(datastore-fetch-build-tags
+ datastore
+ (assq-ref build 'uuid)))))
+ (datastore-list-agent-builds
+ datastore
+ (assq-ref agent-details 'uuid))))))))
(datastore-list-agents datastore)))))))))
(('GET "events")
(list (build-response