Skip to content
← Back to writing

August 13, 2026

The changelog that erased itself

A HomelabARR build that took 2 hours 17 minutes, a workflow that blanked a published page, and an alert that had been set up for a webhook nobody owned. One night of CI and ops fixes, and what each one had quietly been doing.

Between midnight and three in the morning on August 13th I closed five HomelabARR tickets that all had the same flavor. Each one was a piece of automation that looked finished and was doing something other than its job. A build was slow in a way nobody could see, a workflow was deleting a public page, and an alert had been delivering to nobody. This is what each of them turned out to be.

The HomelabARR changelog on wiki.homelabarr.com after the fix, with the v2.3.0 section listing the release's real changes under Features, Bug Fixes, Documentation and Dependencies.

A docs change built in 13 minutes, a code change in 2 hours 17

HomelabARR publishes its images for amd64 and arm64. The workflow built both in one step on an amd64 runner, which means every arm64 layer ran under QEMU emulation, including npm ci and the native SQLite binding, one instruction at a time.

A warm cache hid this. A docs-only change finished in 13 minutes, so nothing looked wrong. Then a change touched src/components/ApiKeysModal.tsx and vite.config.ts, which invalidated the npm-install and vite-build layers, and the build took 2 hours 17 minutes. A merged security fix sat behind it, unable to reach the demo.

I made a mistake in the middle of that. With no log output and a 13-minute baseline in my head, I called the build hung and cancelled it, then started another. It was not hung. The original run finished successfully at 2h17m, and the rerun cost another hour of emulated build time. I wrote that one down as a rule for myself: slow is not stuck, and I do not say hung without a measured baseline and evidence of what the build is doing right now.

HLCE-322 replaced the single step with a matrix. Each architecture builds on its own native runner, amd64 on ubuntu-latest and arm64 on GitHub's hosted ubuntu-24.04-arm, pushing by digest. A merge job joins the two digests into one manifest with docker buildx imagetools create, then signs and scans the merged result. I did not take hosted ARM availability on trust. A throwaway probe workflow ran first and printed aarch64 from the runner, and I deleted it in the same PR.

The numbers from the ticket:

  • Before, cold, QEMU: 2h 17m
  • After, cold cache, native: 4m 25s
  • After, warm rebuild with no changes: 2m 21s
  • After, on main, publishing :latest: 4m 46s

I also pulled the natively built image onto an arm64 Mac and ran it. The container reported aarch64, stayed up with zero restarts, answered /health with 200 and served 117 apps. Zero restarts mattered most, because a native SQLite binding that fails to build is exactly what the emulated build had been papering over. The workflow now also fails if the merged manifest loses an architecture, so a one-architecture image cannot ship quietly.

The workflow that rewrote the wiki page

HomelabARR's wiki has a changelog page, and a workflow generates release notes and opens a PR against it. One of those PRs, #458, showed 63 lines removed and 2 added. I closed it, and filed HLCE-316 to stop the workflow blanking the page.

Reading the workflow, I found two problems before touching the generator. It truncated changelog.md with > before it knew whether the generator had produced anything. And even when the output was non-empty, the generator only emits the latest release, while the page holds every release, so each run replaced history with one release's notes.

The fix makes the page append-only. A new section is spliced in above the newest versioned release, and the script then verifies that every non-empty line that existed before is still there. A second check in the PR step aborts if git diff --numstat reports any deletion at all. Empty or degenerate notes fail the run and leave the page untouched.

The guard then did something I had not planned for: it proved the generator was broken. The first real run against v2.3.0 came back empty, reproducing #458. The generator's own log said it had sorted pull requests into 5 categories and written 0 categorized ones down, and 3,340 characters of uncategorized ones. Four faults in .github/changelog-config.json explained it. The label extractor matched against the PR body while every pattern was a conventional-commit title prefix. The template only printed categorized entries. Nothing matched this repo's HLCE-NNN: title shape. And a 50-PR, 90-day limit truncated a range that spans four months and 563 commits, with the warnings sitting in the log.

I fired the acceptance checks against main instead of reading code. An empty run (from_tag and to_tag both v2.3.0) failed with the page's blob SHA identical before and after. A real run added v2.3.0 with 209 entries, taking the file from 65 lines to 289, in a PR with 224 additions and 0 deletions. That is the screenshot above. The page is live and still carries v2.2.0 and v2.0.0 below it.

An alert that failed every five minutes

On August 12th I had put a small systemd unit on one of my hypervisors that checks disk space and watches for paused virtual machines. It was enabled, active and firing on a five-minute timer. It was also configured with WEBHOOK_URL=REPLACE_ME, because it needed a Discord webhook that somebody had to create by hand. So every five minutes it exited with status 78 and told no one.

The Discord webhook HomelabARR's alerts pointed at had been dead since February and still returned 404 Unknown Webhook. I searched the hypervisor, ce-prod, the VPS and my local repos for a live webhook and found only a placeholder. A webhook's 204 says a request was accepted. It does not say a human will ever read it.

HLCE-318 switched delivery to email over the SMTP identity the rest of the estate already uses, so nothing new had to be created. If both email and Discord are configured, both must accept the message, so one channel cannot go dead unnoticed again. I tested it by causing the conditions. A forced disk threshold produced a message I found in my inbox at 06:09 UTC. I ran virsh suspend web-dev, which is the VM serving dev.mjashley.com, and the installed timer sent paused:web-dev at 06:10 on its own. Resuming the VM sent a cleared notice and the site came back with a 200. I did not accept "delivered by email" in the journal as proof, so I located each message in the inbox by subject.

Dependabot, and a check I refused to require

HLCE-323 was meant to stop dependency updates from needing me. npm moved from daily to weekly with grouped PRs, and a workflow approves and auto-merges patch and minor bumps while major versions get a label and wait. The part that decides whether auto-merge is safe is the list of required checks on main, since gh pr merge --auto merges as soon as a branch is mergeable. I chose four from check-run data on recent PRs: lint, type-check and tests, the seeded end-to-end run, the CVE scan and the license audit.

I left the ce-dev smoke test off the list, and the reason is arithmetic. It runs Playwright against a live shared environment, and that environment sits behind a proxy that makes every client look like one address, so all callers share one login bucket of 25 per 15 minutes. The smoke project runs 19 tests with two CI retries. A run that passed 17 and failed 2 made about 23 login attempts. Making that check required would have deadlocked main on ordinary days. I also logged in once by hand during the night, spent part of the bucket, and failed an otherwise clean re-run, which confirmed it.

One finding from that arithmetic went into a follow-up. Because the proxy setting is unset, any HomelabARR behind a reverse proxy shares a single 25-per-15-minutes login bucket across all of its users. It fails safe rather than open, so it is not urgent, but it is why the limiter cannot tell clients apart on ce-dev or the demo, and I have not fixed it yet.