Skip to content
← Back to writing

November 22, 2026

Reading my own pull request line by line

Merging the cache and no-parity setup fixes meant reading every line of two earlier branches, which turned up a backup default that would have left new boxes unprotected.

The biggest merge of November 22 was one pull request that combined two branches I had built the night before. Putting them together cost one CI run instead of two. It also made me read both branches line by line, and that is where I found the bug I most want to write about.

The review step of the Create 8RAID pool dialog, showing one data disk, no parity, two cache disks as a mirrored pool, and a warning that files are not protected from a drive failure.

What the combined change does

The cache step of setup now lists only spare disks and never a member of the array. Two or more cache disks form one btrfs pool with raid1 preselected, the way Unraid does it. Setup can create a SnapRAID or 8RAID array with no parity drive, as Unraid allows, and says plainly that the files are not protected. A box started from a stick never backs up into memory. And the initrd now handles efivarfs, the error my mini PC showed on its restart.

The conflict between the two branches was real. The dev branch had New Config, which for an 8RAID array with unchanged disks must leave the pool record exactly as it was. My cache branch rewrote the same mount path. I changed the cache code so that New Config's mount records no cache members, and left the New Config tests byte for byte as dev had them.

The default that was wrong

The second branch turned backups off by default on every new box. Reading it through, I found that nothing turned them back on, and setup never re-enabled them once a pool existed. New boxes would have kept backups off.

Now setup picks a pool folder and turns daily backups on. A box installed to disk with only its boot drive keeps backing up daily to /backups, as before. Only a box started from a stick with no pool stays off. I added tests that begin from the shipped default, and they fail against the old branch's code. The earlier branch had edited a few tests, so I read each of those edits one at a time. The flip on the no-parity case is what the change asks for, and the others only add stubs and cases.

Then I walked the setup screens on a VM for each criterion, before and after. On the old build, the parity step's Next button stays disabled for both SnapRAID and 8RAID, which is the refusal from the day before. On the new one, Next is enabled with parity set to none, the review says the array is unprotected, and I added a parity drive later from the Storage page.

Two tests that failed only under load

Before that merge, dev's last two CI runs had failed on three different tests. Each was a real defect that shows up only on a loaded runner, and I did not touch a test to get past any of them. Sync Parity answered that a sync had started while it was still waiting for another parity job's slot, so it now waits through that state and answers that the sync is waiting to start. A scheduled run also set waiting before it had looked for another parity process. The third was a clean cluster TLS shutdown reported as failed. The server closes each listener and then asks the HTTP server to shut down, which closes it again, and when the first close had not finished the second returned a closed-connection error that I was treating as a failure. In 600 stress runs with the race detector, dev failed twice and the fixed branch never did.

That day I added two rules to the file every build follows. One is that a test is never changed to make code pass, and a red check is explained before anything else.

Backups that cannot be half done

The backup data-loss fixes merged in the afternoon. A VM backup is marked in progress before any disk is copied and complete only after its definition and every image are verified. Retention, the list and restore all share one check, so an incomplete copy never replaces the last good recovery point. Restore uses one policy for disk writes and the VM definition, rewrites each disk's path and format to where it was written, then reads libvirt's saved definition back and fails unless every disk matches. A backup job that is switched off never gets a next run, and Settings has a Scheduled backup switch that drives the same saved job as the Backup Jobs page. I changed three test doubles so they behave like the real system, and nothing else in the tests. The box proof for those, restoring to a different path and format, runs on the dev box after the merge.

Sweeps, a corrected count and a quieter board

The LXC sweep resumed in the morning, three apps at a time, and by noon I had caught an error in my own count. Every earlier tally had added two different results together: apps seen answering on a port, and apps that installed and ran with nothing answering. The second is not evidence that an app works. At 12:33 the honest tally was 196 of 561 judged, 144 working, 13 installed but unconfirmed and 39 failed. I renamed that verdict installed and unverified, and it no longer counts as a pass.

The Docker sweep started late that morning with six lanes at once. Running it for real found three faults in my own tooling: free disk was measured on the read-only image, so 19 apps were skipped for no disk; Eight.ly's own API allows 60 requests a minute per caller, so six lanes were refused and 23 of the first 32 apps were recorded as rate-limited, which I raised on the test VM; and the Docker Hub login was not used for the image check. I stopped and restarted the run when images filled the test VM's disk. I have raw result files for both sweeps and have not reviewed them, so I will not quote numbers from them yet.

The mini PC's runner VM joined the storage pool after two green ISO builds. In the evening I took the soak box's reading before any update: still on candidate 3, the 8RAID pool blocked, about 252 GB of test data with checksums saved. The board went from 163 open tickets to 54 in one sprint, with 17 batch stories, one batch to a pull request to a CI run. A finding now becomes a line on a batch story and not a new ticket. Release notes for the next candidate and for 3.0.0 merged together in one commit, so 3.0.0 can be tagged on the exact commit that gets tested, and nothing is tagged yet.