From 63009c2462048fbcf84a4343977fa1576633ef26 Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Fri, 9 Oct 2026 16:54:57 +0200 Subject: [PATCH] Add check-builds: A script for checking the running package builds on the build server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simple script to check the running package builds on the build server. Output looks like this: ```text lahwaacz ├── nvhpc grazzolini ├── dracut ├── keepass ├── libcacard alerque ├── biome ├── gnumeric ├── python-backports-zstd ├── tinymist ├── ty ``` Relates to https://gitlab.archlinux.org/archlinux/infrastructure/-/work_items/832 --- Makefile | 1 + package/check-builds | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 package/check-builds diff --git a/Makefile b/Makefile index 4df59d6..2a170c7 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ BASH_SCRIPTS = \ admin/checkservices \ aur/review \ aur/show-aur-changes \ + package/check-builds \ package/greposcope \ package/packages-signed-by \ package/parse-submodules \ diff --git a/package/check-builds b/package/check-builds new file mode 100755 index 0000000..e42aa33 --- /dev/null +++ b/package/check-builds @@ -0,0 +1,13 @@ +#!/bin/bash + +# SPDX-License-Identifier: GPL-2.0 +# Check running package builds on the build server + +set -eou pipefail + +HOST="build.archlinux.org" + +ssh "${HOST}" ps -eo user:30=,args= \ + | awk 'match($0,/pkgctl offload.*offload\/([^.\/]+)/,m){print $1, m[1]}' \ + | sort -u \ + | awk '{u[$1]=u[$1]" ├── "$2"\n"} END{for(i in u) printf "%s\n%s\n",i,u[i]}'