Repository navigation
Release v2.3.0
[2.3.0] - 2026-10-10
Minor release: new features, no removals.
Added
-
.github/required-checks.txt, and a test that keeps it honest. The
required status check names inmain's branch protection have to match the
job namesquality.ymlactually produces. When the runners were renamed from
ubuntu-latest/macos-latesttoubuntu-24.04/macos-15, branch protection
still required the old names and blocked a merge of an entirely green PR.
tests/required-checks.batsnow derives the expected names from the workflow
itself and fails with instructions if they drift from the file. -
make verify-protection. Local and read-only: asks GitHub what the
required checks actually are and compares them with the file. Not in CI and
not inci-local, because it needsghand because it asserts remote state. -
scripts/lib/ruby_gem_health.shand the Ruby/gem guard.
On 2026-09-16 a rootgem update --systemwrote a 591-file RubyGems tree into
/opt/homebrew/lib/ruby/site_ruby, blockingbrew linkandbrew cleanup
while every other check still read PASS. The new library checks root
ownership under Homebrew and~/.gem,site_rubyoverrides,gem -v
against the RubyGems actually shipped by the active Homebrew Ruby, dangling
plugins and dead shebangs, and duplicate gem versions. -
templates/guard.zsh. The zsh guard is now under version control instead
of living only in one machine's~/.config/zsh. It refusessudoforgem
orbrewby basename, refuses any unambiguous abbreviation ofgem update --system(--sy,--sys,--syst,--syste), prints a refusal that names
the command refused, and prints a bypass line that is runnable as typed. It
covers interactive shells only and does not cover a program that shells out,
such as topgrade; that limit is documented in the file and asserted by test. -
scripts/mac-routine.sh. Runs topgrade,mo clean,brew doctorand
brew cleanupin order, measuring root-owned counts andgem -vbetween
steps and stopping the routine the moment either drifts. Never usessudo,
never deletes, passes--no-ask-retryso a prompt cannot hang it. -
make ci-local. Prints the localbash,bats,shellcheckandshfmt
versions, warns when any differs from the pins in
.github/workflows/quality.yml, then runs CI's steps in order. -
make test-bash32. Runs the whole suite under/bin/bash, which is bash
3.2 on macOS and older than anything a Linux CI runner has. Skips with a
clear message where/bin/bashdoes not exist. -
tests/safety.bats. A suite-wide PATH fence puts recording fakes for
gem,sudoandbrewin front of the real ones, plus a canary, a static
scan for commands that can damage the machine, a scan for mid-test bare!
negations that bats never checks, and one-pass scanners for duplicate
@testnames and@testtext inside heredocs.
Changed
- Every
.batsfile is machine-independent. Fixtures live in
tests/fixtures/; the root-ownership tests build their own tree and stand in
for root withRGH_ROOT_USER; the container-runtime test puts failing shims
first on PATH instead of deleting a working one; the shebang test creates a
real interpreter. The one test that asserted the state of this machine was
removed from bats - that check still runs, throughrgh_report. make lintusesshellcheck -x, matching CI exactly. Without-xthe
local target and the CI step were not the same command.- CI runners are pinned to
ubuntu-24.04andmacos-15with
timeout-minutes: 15, because the pinned apt package versions
(shellcheck=0.9.0-1,shfmt=3.8.0-1,bats=1.10.0-1) only exist on the
distribution they were taken from.strategy.fail-fastisfalse, so a
failure on one OS no longer hides the other.