Add bin/repo timers: release timer and queue status at a glance
Wraps systemctl list-timers with the things you actually want when checking on the build host: per-unit enabled state, last run and whether it succeeded, which channels have builds queued (state files), whether the release lock is held by a live process, and any failed units. Units are discovered from systemd/*.timer so the report cannot drift from what setup installs. It forwards over ssh like the other host commands, so the build box's timer state is one command away from a workstation (--local to inspect this machine).
This commit is contained in:
1 parent
db816061a6
commit
9d86123264
3 files changed
+145
-1
No files matched your search
@@ -23,7 +23,7 @@ source "$BUILD_ROOT/helpers/host-helpers.sh"
|
||||
#
|
||||
# Local-machine workflows (list, push, deploy, setup) never forward: push and
|
||||
# deploy exist precisely to move local builds TO the host.
|
||||
FORWARDABLE=" release build sign promote update clean migrate advance bootstrap-rc remove sync "
|
||||
FORWARDABLE=" release build sign promote update clean migrate advance bootstrap-rc remove sync timers "
|
||||
|
||||
LOCAL_OVERRIDE=false
|
||||
STRIPPED_ARGS=()
|
||||
@@ -109,6 +109,7 @@ show_usage() {
|
||||
echo " push Upload local builds to the repository host and publish them there"
|
||||
echo " deploy Build locally, then push: one command from a build machine"
|
||||
echo " setup Install everything the repository host needs"
|
||||
echo " timers Show release timer schedule, last runs, and queued builds"
|
||||
echo ""
|
||||
echo "Typical workflows:"
|
||||
echo " $0 release # Complete release workflow"
|
||||
@@ -202,6 +203,11 @@ setup)
|
||||
"$SCRIPT_DIR/setup" "$@" 2>&1 | tee "$LOG_FILE"
|
||||
exit ${PIPESTATUS[0]}
|
||||
;;
|
||||
timers)
|
||||
# Status output, not a build step: show it, do not log it.
|
||||
"$SCRIPT_DIR/timers" "$@"
|
||||
exit $?
|
||||
;;
|
||||
-h | --help | help)
|
||||
show_usage
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user