public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/buildbot] epel10.2: Upgrade master DB and restart all masters and workers on upgrade
Date: Fri, 09 Oct 2026 14:34:40 GMT [thread overview]
Message-ID: <179155648049.1.16738049221297263724.rpms-buildbot-74a9daca01b4@fedoraproject.org> (raw)
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.
reply other threads:[~2026-10-09 14:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179155648049.1.16738049221297263724.rpms-buildbot-74a9daca01b4@fedoraproject.org \
--to=gwync@protonmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox