public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/buildbot] epel10.2: Upgrade master DB and restart all masters and workers on upgrade
@ 2026-10-09 14:34 Gwyn Ciesla
  0 siblings, 0 replies; only message in thread
From: Gwyn Ciesla @ 2026-10-09 14:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/buildbot
Branch : epel10.2
Commit : 74a9daca01b4d875bef7ba283adc8937cf5c8e7f
Author : Gwyn Ciesla <gwync@protonmail.com>
Date   : 2023-09-29T09:44:56-05:00
Stats  : +16/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/buildbot/c/74a9daca01b4d875bef7ba283adc8937cf5c8e7f?branch=epel10.2

Log:
Upgrade master DB and restart all masters and workers on upgrade

---
diff --git a/buildbot.spec b/buildbot.spec
index 6a87e87..9ed9899 100644
--- a/buildbot.spec
+++ b/buildbot.spec
@@ -21,7 +21,7 @@
 
 Name:           buildbot
 Version:        3.9.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 
 Summary:        Build/test automation system
 License:        GPL-2.0-only
@@ -147,6 +147,13 @@ getent passwd buildbot-master >/dev/null || \
     -c "Service account for the Buildbot master" buildbot-master
 exit 0
 
+%post master
+for master in $(systemctl list-units 'buildbot-master@*.service' --all --plain --no-legend | cut -d '@' -f 2 | cut -d '.' -f 1); do
+  systemctl stop buildbot-master@"$master".service
+  su - buildbot-master -c "buildbot upgrade-master /var/lib/buildbot/master/$master"
+  systemctl start buildbot-master@"$master".service
+done
+
 %files master
 %doc CREDITS NEWS UPGRADING
 %license COPYING
@@ -268,6 +275,11 @@ getent passwd buildbot-worker >/dev/null || \
     -c "Service account for the Buildbot worker" buildbot-worker
 exit 0
 
+%post worker
+for worker in $(systemctl list-units 'buildbot-worker@*.service' --all --plain --no-legend | cut -d '@' -f 2 | cut -d '.' -f 1); do
+  systemctl restart buildbot-worker@"$worker".service
+done
+
 %files worker
 %doc NEWS UPGRADING
 %license COPYING
@@ -398,6 +410,9 @@ trial buildbot.test
 %endif
 
 %changelog
+* Thu Sep 28 2023 Gwyn Ciesla <gwync@protonmail.com> - 3.9.2-3
+- Upgrade master databases and restart masters and workers on upgrade.
+
 * Fri Sep 08 2023 Gwyn Ciesla <gwync@protonmail.com> - 3.9.2-2
 - Adjust twisted pin.
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 14:34 [rpms/buildbot] epel10.2: Upgrade master DB and restart all masters and workers on upgrade Gwyn Ciesla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox