public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/oscillatord] rawhide: rebuild: build EPEL first and print each Bodhi link as soon as it is filed
@ 2026-11-25 12:22 Oleg Obleukhov
0 siblings, 0 replies; only message in thread
From: Oleg Obleukhov @ 2026-11-25 12:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/oscillatord
Branch : rawhide
Commit : c542f53afbb53d391cd126ec389ddbd9387958d6
Author : Oleg Obleukhov <leoleovich@fedoraproject.org>
Date : 2026-11-25T12:20:49+00:00
Stats : +45/-21 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/oscillatord/c/c542f53afbb53d391cd126ec389ddbd9387958d6?branch=rawhide
Log:
rebuild: build EPEL first and print each Bodhi link as soon as it is filed
CentOS 10 is the build needed soonest, and a dropped session used to leave it unbuilt. EPEL branches now start first, and each branch's Bodhi update is filed and its link printed the moment that branch is built, instead of after every branch finishes, so it can collect karma while the rest build.
[skip changelog]
---
diff --git a/rebuild/README.md b/rebuild/README.md
index b0ff944..442a7f5 100644
--- a/rebuild/README.md
+++ b/rebuild/README.md
@@ -17,18 +17,20 @@ rebuild/release.sh 3.10.5
It bumps `Version:` in both specs on rawhide, uploads the tarballs with `fedpkg new-sources`,
commits and pushes, and fast-forwards every release branch to rawhide. Then, for all branches at
-once, it requests a side tag, builds disciplining-minipod, builds oscillatord against it
-(`koji build --wait-build`) and files one Bodhi update from the side tag:
+once (EPEL first), it requests a side tag, builds disciplining-minipod, builds oscillatord against
+it (`koji build --wait-build`) and files one Bodhi update from the side tag. Each update's link is
+printed the moment its branch is built (`epel10.3 Bodhi update for karma: https://...`), so it
+can collect karma while the other branches build. The summary repeats them all:
```
== Summary
+epel10 oscillatord-3.10.5-1.el10_4 https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-...
+epel10.3 oscillatord-3.10.5-1.el10_3 ...
+epel9 ...
rawhide oscillatord-3.10.5-1.fc46 https://bodhi.fedoraproject.org/updates/FEDORA-2026-...
f45 oscillatord-3.10.5-1.fc45 https://bodhi.fedoraproject.org/updates/FEDORA-2026-...
f44 ...
f43 ...
-epel10 oscillatord-3.10.5-1.el10_4 https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-...
-epel10.3 oscillatord-3.10.5-1.el10_3 ...
-epel9 ...
```
Branches come from Bodhi: rawhide plus every active `fNN`, `epelNN` and EPEL minor branch
diff --git a/rebuild/release-inner.sh b/rebuild/release-inner.sh
index a642e97..21dc55f 100755
--- a/rebuild/release-inner.sh
+++ b/rebuild/release-inner.sh
@@ -105,6 +105,12 @@ if [ -z "$branches" ]; then
fi
IFS=, read -r -a targets <<<"$branches"
[ ${#targets[@]} -gt 0 ] || die "no branches to release"
+# EPEL (CentOS) first: those builds and updates are needed soonest.
+epel=() rest=()
+for b in "${targets[@]}"; do
+ if [[ $b == epel* ]]; then epel+=("$b"); else rest+=("$b"); fi
+done
+targets=("${epel[@]}" "${rest[@]}")
echo "branches: ${targets[*]}"
need=()
@@ -250,32 +256,47 @@ run_branch() {
echo "$sidetag $nvr" >"$run_dir/$b.ok"
}
+notes="Update to $ver: https://github.com/leoleovich/oscillatord/releases/tag/v$ver"
+declare -A update_url
+show_update() { printf '\033[1m%-9s Bodhi update for karma: %s\033[0m\n' "$1" "$2"; }
+file_update() {
+ local b=$1 sidetag nvr
+ [ -s "$run_dir/$b.ok" ] || return 0
+ read -r sidetag nvr <"$run_dir/$b.ok"
+ update_url[$b]=$(python3 /rebuild/bodhi_helper.py ensure-update "$notes" "$sidetag" "$nvr" 2>>"$run_dir/$b.log") || true
+ if [ -n "${update_url[$b]}" ]; then
+ show_update "$b" "${update_url[$b]}"
+ else
+ printf '%-9s built, but filing the Bodhi update failed (log: %s)\n' "$b" \
+ "${STATE_DIR:-~/.cache/oscillatord-release}/work/state/$ver/$b.log"
+ fi
+}
+
log "Building ${release[*]} in parallel"
exec 3>&1
+declare -A branch_of=()
for b in "${release[@]}"; do
# A branch that already has its update is done; its side tag may be merged and gone.
nvr=$(verrel oscillatord "$b")
- if [ -n "$(python3 /rebuild/bodhi_helper.py find "$nvr" || true)" ]; then
+ url=$(python3 /rebuild/bodhi_helper.py find "$nvr" || true)
+ if [ -n "$url" ]; then
echo "$(cat "$run_dir/$b.sidetag" 2>/dev/null || echo -) $nvr" >"$run_dir/$b.ok"
- printf '%-9s %s already has a Bodhi update\n' "$b" "$nvr"
+ update_url[$b]=$url
+ show_update "$b" "$url"
continue
fi
run_branch "$b" >"$run_dir/$b.log" 2>&1 &
job[$b]=$!
+ branch_of[$!]=$b
done
-for b in "${release[@]}"; do
- [ -n "${job[$b]:-}" ] || continue
- wait "${job[$b]}" || true
+# File each update the moment its branch is built, so its link is up for karma while the rest build.
+while [ ${#job[@]} -gt 0 ]; do
+ pid=""
+ wait -n -p pid "${job[@]}" || true
+ [ -n "$pid" ] || break
+ b=${branch_of[$pid]}
unset "job[$b]"
-done
-
-log "Bodhi updates"
-notes="Update to $ver: https://github.com/leoleovich/oscillatord/releases/tag/v$ver"
-declare -A update_url
-for b in "${release[@]}"; do
- [ -s "$run_dir/$b.ok" ] || continue
- read -r sidetag nvr <"$run_dir/$b.ok"
- update_url[$b]=$(python3 /rebuild/bodhi_helper.py ensure-update "$notes" "$sidetag" "$nvr" 2>>"$run_dir/$b.log") || true
+ file_update "$b"
done
log "Summary"
diff --git a/rebuild/release.sh b/rebuild/release.sh
index 7693dfc..ff74092 100755
--- a/rebuild/release.sh
+++ b/rebuild/release.sh
@@ -9,8 +9,9 @@ Usage: rebuild/release.sh VERSION [options]
Bumps disciplining-minipod and oscillatord to VERSION on rawhide, fast-forwards
every active Fedora and EPEL branch to rawhide, then, for all branches in
-parallel, builds both packages in one Koji side tag per branch and files a
-Bodhi update from it. Prints the Bodhi links at the end.
+parallel (EPEL first), builds both packages in one Koji side tag per branch and
+files a Bodhi update from it as soon as that branch is built, printing its link
+right away. Prints all Bodhi links again at the end.
-b, --branches LIST comma-separated branches (default: rawhide plus every
active fNN/epelNN branch in Bodhi, except epel8)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 12:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 12:22 [rpms/oscillatord] rawhide: rebuild: build EPEL first and print each Bodhi link as soon as it is filed Oleg Obleukhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox