Files
David YoungandClaude Opus 5.5 7ea0ce77bb Add PLAN.md, for work to do, and TEST.md, for tests to run
PLAN.md has what the smoketest runs left open; TEST.md says which
scenarios to run when, and what to test by hand on a Mac.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 14:54:29 -07:00

2.7 KiB

Plan

Work to do, roughly in order. Tests to run are in TEST.md.

Backups without Full Disk Access

Without Full Disk Access, reading some folders makes macOS ask, and restic waits for the answer, which no one gives at night. system/backup leaves out the ones the smoketest found: Desktop, Documents, Downloads, ~/Library/Containers, ~/Library/Group Containers, ~/Library/Photos and Photos libraries in ~/Pictures.

  • Find the rest on a Mac that's in use. The smoketest VM has no ~/Library/Calendars or ~/Library/Reminders, so whether they ask is unknown. Run a backup without Full Disk Access on a Mac with Calendar, Reminders, Contacts and Photos data, and check tccd's log for AUTHREQ_PROMPTING from computer.federated.connector.backup (see TEST.md).
  • Notice a stuck backup. A restic stuck on a prompt ignores TERM, and only KILL stops it. Today a new prompt would hang the backup until someone answers it, with no notification. Consider a time limit, or a notification when a backup has run for hours.

SFTP folders

  • Check on a Mac with macOS 26 whether pluginkit -m -A -D -p com.apple.fskit.fsmodule lists macFUSE's module once macFUSE is installed. In the VM it doesn't, even after pluginkit -a and lsregister. If it doesn't on a Mac either, fskit_enabled can never tell. Then add_sftp never shows how to turn the extension on. Instead it mounts, waits 30 seconds and only then hints at it. If so, treat "can't tell" as off and show the instructions first, or find another way to tell.

Smoketest coverage

  • Make a VM image that allows apps from identified developers. Without it, 70-apps skips installing Element, Nextcloud and Tailscale, because the vanilla image allows only App Store apps and only a click can change that. The README says how. The same image could also have macFUSE installed with its extension turned on, so 85-sftp could test mounting.
  • Look out for more timing races like the one in 30-core-local, where an app opened again while it was still quitting failed with -600. It failed once in three runs.

Tidying

  • xml_escape is copied into configure.d/lib/profile.sh, configure.d/20-backup.sh and configure.d/60-storage.sh. Have the two items source lib/profile.sh (or move it to a shared lib), so a fix lands once. Bash 3.2 kept the backslash in ${s//&/\&amp;} in all three.

Open questions

  • The first smoketest run on a Mac couldn't ssh to its first three VMs ("No route to host"), then could. That fits macOS asking for Local Network access for the terminal app, but it wasn't confirmed. If it happens again, smoketest/run now shows ssh's error and points to System Settings > Privacy & Security > Local Network.