$ the-wire · showcase
buildbtw isolates instance directories, adds log filtering
By RepoJournal · Filed · About Arch Linux · Composed from the cited sources · methodology
Arch Linux's buildbtw moved each instance to its own directory under /var/lib/buildbtw and gained query filtering by architecture and pkgbase, changes that affect anyone running or reviewing builds.
The infrastructure change that matters most lands first: buildbtw instances used to share a single directory at /var/lib/buildbtw, which Sven-Hendrik Haase described as "especially annoying for the review instances where we'd get 10s of databases in the same dir." The switch to instance-dirs now also cleans up old instance directories [1]. A separate fix stops the systemd unit from being restarted, a left-over from a rename a few months prior [2].
On the CLI side, `bbtw log` now accepts a buildspace/pkgbase argument [3], and a new `--no-wait` option exits early if the log is unavailable rather than blocking [4]. Build queries can be filtered by architecture and pkgbase [5], and BuildArchitecture now defaults to the primary architecture when unset [6]. Streamed build logs to an HTTP endpoint came in via the cli/log merge [7].
The package desk kept its usual pace: marked 16.0.0-1 in extra-any [8], harper 2.10.0-1 in extra-x86_64 [9], deepin-screen-recorder 6.5.22-1 [10], deepin-util-dfm 1:1.3.21-1 [11], and perl-params-someutil 1.11-1 [12].
Action items
- → Review buildbtw instance directory layout if you run review instances archlinux/infrastructure [monitor]
- → Adopt bbtw log --no-wait in scripts that poll for build logs archlinux/buildbtw [plan]
- → Pick up marked 16.0.0-1 and harper 2.10.0-1 on next sync archlinux/state [plan]
References
- [1] buildbtw: Switch to instance-dirs ↗ archlinux/infrastructure
- [2] buildbtw: Fix bug where from systemd unit would get restarted ↗ archlinux/infrastructure
- [3] cli(log): Allow passing buildspace/pkgbase as argument ↗ archlinux/buildbtw
- [4] Add bbtw log --no-wait option to early exit if log is unavailable ↗ archlinux/buildbtw
- [5] builds: Allow query filtering by architecture and pkgbase ↗ archlinux/buildbtw
- [6] Provide default for BuildArchitecture using the primary architecture ↗ archlinux/buildbtw
- [7] Merge branch 'cli/log' into 'main' ↗ archlinux/buildbtw
- [8] update marked to 16.0.0-1 in extra-any ↗ archlinux/state
- [9] update harper to 2.10.0-1 in extra-x86_64 ↗ archlinux/state
- [10] update deepin-screen-recorder to 6.5.22-1 in extra-x86_64 ↗ archlinux/state
- [11] update deepin-util-dfm to 1:1.3.21-1 in extra-x86_64 ↗ archlinux/state
- [12] update perl-params-someutil to 1.11-1 in extra-x86_64 ↗ archlinux/state