Repository navigation
dockhand v0.4.0
The second release of dockhand v3, tagged on 5897a82, the commit of v0.4.0-rc5. It passed the full acceptance stage on an M1 Mac, in its own test account, with dockhand installed from its own Portfile. The stage ran five candidates, rc1 to rc5, and covered an upgrade from rc4 while serve ran, a 24-hour soak of serve across 1102 ports, sleep and reboot during a check, and use over SSH with nobody at the screen. The one harm it found, on rc1, was status failing outright after a Git rename landed on an archived branch's name; it was fixed for rc2. Nothing on rc5 harms work, logins, pushes, or pull requests.
What dockhand does, and what it needs, is in the README. To build this release, clone its tag:
git clone --branch v0.4.0 https://github.com/herbygillot/dockhand.git
cd dockhand
make buildWhat's new since v0.3.1
shipandbump.dockhand ship <port>takes a change from a new release to its pull request: the update, one commit, a check, and the submission, asking once on a terminal.dockhand bump <port>is the same asking nothing, and stops wherever a person should look.ship --minetakes your ports with newer releases, andship --passingsubmits the branches whose checks passed.- Holds. A change nobody looks over waits for a look where one is due: a new major version (
holds.majors), another open pull request for the port, what comparing the upstream archives found, and a commit rule's finding. It also holds a repository transferred or renamed upstream, untilupdate --follow-movespoints github.setup at it; a revision that raises a port's darwin floor ormacosx_deployment_target; and an archive name MacPorts' mirror already holds another file of under a shareddist_subdir, as gopls's was, namingdist_subdir ${name}as the fix. Each says the command to run after the look. - Build profiles. Where a check builds is a profile:
host,minmax(each port's oldest and newest release),macports-ci(the releases MacPorts' CI builds on),all, or one of your own under[build.profiles].build.defaultandbuild.unattendedname which. - Baselines and accepted failures. After a failed check,
check --baselinebuilds the ports that failed at master, andsubmit --accepttakes a failure master shares, which the pull request says. - Scripts. A refusal is one sentence and exits 1,
--yesanswers the questions, and the exit codes are named.checksums --planplans on master, and exits 3 naming each distfile that doesn't match. statusandserve.statusreads stale pull requests itself, in one GraphQL request it shares withserve. serve's daily look notifies when the ports it found changed, andserve --installand--uninstallwait for launchd.- Progress. A check shows the Tart guest's progress as it goes, and says which dependencies build from source. A command that waits says what it's waiting on.
- Branches. A command in a checkout dockhand doesn't track offers to track it. Starting a branch on an archived branch's name offers to rename the old one aside.
adoptnames the ports not yet committed. submit. A commit made on, or amending, someone else's push now submits.--accepttakes a changed port whose baseline fails the same way, and the description says why each accepted failure was accepted.- Updates and fetches. Go toolchain ports, as go-1.26's
go_toolchain.setup, update. A redirect is followed with no Referer, which fixes SourceForge mirrors that served an HTML page. Mirrors behind a new release are said, and tried again later.outdatedcounts the ports it didn't check by reason, says a release that isn't ready, and lists in MacPorts' name order. - Tart and checks. A new image installs this Mac's MacPorts, and one note names stale images.
checkmarks the untracked files in the ports it builds. - The command surface is final for v0.4.0.
-bnames only an existing branch;--new=<name>starts one.shipreplacesupdate --submit,update --outdated,submit --check, andsubmit --passing, andserve.ship_toreplacesserve.for_outdatedandserve.submit_passing.queueandwatchfold intostatus(status --watch).status,path,archive, and the run commands take-b,-p, and--pr.logs --all,outdated --all, anddiff --archivebecome--full,--current, and--source.- The hidden
authcommand is gone:setupnames your GitHub login, andsetup --jsonreports it.
- Fixed from v0.3.1's known issues: a GitHub tag moved after its check, the account a
GH_TOKENsubmits as, who requested changes insubmit --json,dockhand pathfor a merged branch whose worktreecleankept, terraform's stub wording, an old Tart incheckandserve, a deleted base image's restore, and a guest's error tried again three times where it isn't the VM's.
Upgrading from v0.3.1
- The database,
~/.dockhand/dockhand.db, is migrated forward the first time v0.4.0 opens it, and a copy of it as it was is kept beside it. v0.3.1 can't open it after; a migration is refused while a dockhand process on the older schema is working, unless you answer it. - A configuration that names
serve.for_outdatedorserve.submit_passingis refused, with theserve.ship_tothat replaces it:for_outdated = "draft"isship_to = "commit", andsubmit_passing = trueisship_to = "submit". - Scripts that ran
update --submit,submit --check, orsubmit --passingrunshiporbumpinstead. - dockhand builds for macOS and Linux only.
Known issues
Each harms nothing a look wouldn't catch, and each has a workaround. The README's known issues list them in full, as they stand in this release. Ten were found after rc5, and are fixed on main for v0.5.0:
- An update whose license file keeps its licenses but gains labels, copyright lines, or terms of its own, as libxkbcommon 1.13.2's did, holds, saying the file "now reads as no license that's known". Read the license file's change with
dockhand diff --source, then submit after a look. - While a baseline of a passed check runs,
statussays the branch is checking, andserveandship --passingwait to submit it. Let the baseline finish, ordockhand submit --branch <name>. - An update whose configure.ac names a library through a shell variable, as GraphicsMagick 1.3.49's does, says that library was removed. Read configure.ac's change before submitting after a look.
- A failed check offers
check --baselinefor tests the branch adds and master doesn't run, where a baseline has nothing to compare. updaterefuses a port whose PortGroup reads the host as it loads, as qmake5's does, saying the version probe is inconclusive, though its version line and archives read nothing of the host: about 100 ports, LibreCAD, cpi, and the PyQt5 and Qt 5 ports among them. Edit the version line by hand, then rundockhand checksums <port>.dockhand update <port>for a port that pins its source to a commit and tracks a branch, as wezterm does, stops with a Go panic before it changes anything. Edit the commit and the version by hand, asoutdatedsays, thendockhand checksums <port>.tidycommits a Portfile whosepatchfilesnames a new patch that Git doesn't track yet without the patch, and the check then fails fetching it.git adda new patch beforetidy.checkwarns of an untracked file in a port it builds, butshipdoesn't.- A diagnostic check of some of a branch's ports on a release
build.defaultdoesn't name makessubmitask for every port of the branch there. Check the other ports on that release too, or make a diagnostic check on a branch of its own. - The upstream comparison reads build files only at the top of a port's source, so a port that builds from a directory below it, as i2pd's
cmake.source_dirdoes, can say "no build file changes" where that directory's changed.dockhand diff --source --statlists it; read its change before submitting. update --follow-moveson a branch already at the version changes nothing, andsubmitstill holds on the move. Pass--follow-moveson the update that moves the version, or edit github.setup's owner by hand.
One more was found on rc5 itself and is fixed on main (dc5cf24):
- In a branch's worktree before its first check,
dockhand logs <port>says to name a check, as if run outside the worktree. The branch has no check yet: rundockhand checkfirst.
Not covered by the acceptance stage
- A non-English locale, a clock a few minutes off, and the daily look across the US clock change (F10) weren't run again. v0.3.0's stage passed them, and the code they cover hasn't changed since.
- A port whose new release is on Codeberg alone (C4), and a fixture MacPorts master can't hold (D-N2), weren't run.
serverefreshing pull request states overnight had no open pull request to refresh. Updating a pull request was covered bysubmitandship.- Tart checks ran on macOS 27 only, the one release the Mac had images for. Other releases were covered by GitHub Actions on the fork, and by
check --onrefusing them with thesetup tartthat adds them. - Downloads from SourceForge mirrors were covered by field testing on this commit, not by the stage: scons 4.11.1, GraphicsMagick 1.3.49, libpng 1.6.59 and freetype 2.15.0.
- Some rows ran on rc4 and weren't repeated on rc5: device login, uninstall and reinstall, a revoked login, another account's
GH_TOKEN, a pull request updated after review, andport selfupdateduring a check. rc5's rerun repeated the rows its changes touch.