From cf31ffc9291feed9abf51b3b96dcf9d175bb79bc Mon Sep 17 00:00:00 2001 From: David Young Date: Sat, 28 Nov 2026 12:53:30 -0700 Subject: [PATCH] Add PLAN.md and TEST.md PLAN.md tracks what's left to do: packaging Federated Calendar for Pop!_OS, and keeping in step with CoreDesktop's configure, with the CoreDesktop commit last compared and what's changed there since. This project stays separate from CoreDesktop rather than merging into it. TEST.md is the test plan: lint and the smoketest for every change, and a checklist for a real Pop!_OS machine and Core. Co-Authored-By: Claude Opus 5.5 --- PLAN.md | 71 +++++++++++++++++++++++++++++++++++++++++ TEST.md | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 168 insertions(+) create mode 100644 PLAN.md create mode 100644 TEST.md diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 0000000..f5f18b5 --- /dev/null +++ b/PLAN.md @@ -0,0 +1,71 @@ +# Plan + +What's left to do in the Federated Connector for Pop!_OS. Delete an item once +it's done; git history keeps the record. How to test is in [TEST.md](TEST.md). + +This project stays separate from CoreDesktop: Pop!_OS needs its own setup +(apt, Flathub, COSMIC, Evolution), but it keeps roughly in step with +CoreDesktop's `configure`, with the same items, working the same way. + +## Federated Calendar + +CoreDesktop installs Federated Calendar (based on GNOME Calendar, adds +invitations and Jitsi meetings) from the `[federated]` pacman repo. It isn't +built for Pop!_OS yet: the +[federated-calendar](https://gitea.federated.computer/Federated_Computer/federated-calendar) +repo only has `build-aux/arch/`. + +- [ ] Choose how to ship it. A Flatpak is the likely choice: upstream's + `build-aux/org.gnome.Calendar.json` is a starting point, it runs + the same on any Pop!_OS release, and it updates in the COSMIC Store with + Element. The other choice is a `.deb` in an apt repo on Gitea, which + would need building for each Ubuntu release. +- [ ] Build it in federated-calendar's Gitea Actions next to the Arch package, + and publish it (a Flatpak repo on Gitea, or a `.flatpakref`) +- [ ] Federated Calendar finds the Core in `~/.config/coredesktop/cores/*.conf`; + the connector writes `~/.config/federated-connector/cores/*.conf`. Have + Federated Calendar look in both, or the connector write both. A Flatpak + also needs read access to that folder (`--filesystem=xdg-config/...:ro`). +- [ ] Check that, without GNOME, it sees the Core's calendars in GNOME Online + Accounts and Evolution Data Server, as Evolution does. A Flatpak talks to + them over D-Bus (`--talk-name=org.gnome.OnlineAccounts`, + `org.gnome.evolution.dataserver.*`). +- [ ] Install it in `configure core`, after the calendars are added, and say + so in the README, alongside Evolution +- [ ] `update`: restart it after a new version, as CoreDesktop's PLAN.md + describes (it keeps running in the background after its window closes) + +## Keep in step with CoreDesktop + +Last compared with CoreDesktop at `4a4a3bd` (2026-11-11), when the port was +made. Port what applies to Pop!_OS, then move this marker to the CoreDesktop +commit compared with. To see what's new: + +``` +git -C ../coredesktop log --oneline ..HEAD -- configure configure.d sandbox system +``` + +Since `4a4a3bd`, to look at: + +- [ ] `16e5a9c` Find storage and AI servers on the tailnet, not only over mDNS +- [ ] `e991264` Let Hermes' gateway reach only a Matrix server you've allowed +- [ ] `d974b91` configure: treat an empty settings file like a missing one +- [ ] `05b13b2` Test the agent sandbox from inside, and hide CoreDesktop's settings +- [ ] `4fb3539` Claude notifications: clicking one brings back the app Claude runs in +- [ ] `9dc5eb1` Upgrade safeguards, hardware setup, sign-in options and Taildrop: + Taildrop is likely to apply; the rest is probably Arch-only +- [ ] `ffbaf71` Keep other machines on the network from reaching Docker + containers: only if the connector ever installs Docker + +Arch or GNOME only, nothing to port: `e14a345` and `ba4dc17` (login screen +logo), `1e2581d` (kernel modules), `d456e31` (initramfs), `5d7db2c` (reboot +after update: Pop!_OS' own updates handle this). + +- [ ] CoreDesktop's PLAN.md still plans to merge Pop!_OS support into its + `configure` and archive this repo ("Merge Pop!_OS support into + configure"). Update it there to say this project stays separate. + +## Pop!_OS-specific + +- [ ] The manual checks in [TEST.md](TEST.md) on a real Pop!_OS 24.04 machine, + against a real Core. None have been done yet. diff --git a/TEST.md b/TEST.md new file mode 100644 index 0000000..567b9a9 --- /dev/null +++ b/TEST.md @@ -0,0 +1,97 @@ +# Test plan + +How to check the Federated Connector for Pop!_OS before a push to `main`, +which every computer gets with its next `update` or install. + +There are two parts: the smoketest, which runs in Docker containers, and the +manual tests below, which need a real Pop!_OS machine and a real Federated +Core. Run lint and the quick smoketest for every change. Run the manual tests +that cover what changed, and all of them before a release is announced. + +## Automated tests + +``` +make lint # shellcheck, and the Python compiles +smoketest/run # the quick scenarios +smoketest/run --tier all # everything, including the downloads +``` + +What each scenario covers, and how to write one, is in +[smoketest/README.md](smoketest/README.md). Add or extend a scenario with +every change that a container can check. + +## Setting up for manual tests + +You need: + +- A computer with Pop!_OS 24.04 and COSMIC, logged in as an administrator. + A fresh install, or a VM, is best for the install tests. +- A Federated Core you can test with: its Superpanel address, and an email + address and password on it. +- For Tailscale and storage: the Core's headscale, and an SMB or SFTP server. + +Install the version under test from its branch, rather than from `main`: +copy the working copy to the machine and run `bash install.sh` there, or push +the branch and check its archive. + +## Manual tests + +Tick each one as it passes, with the date and the commit tested. Clear the +ticks when the item changes. + +### Install and update + +- [ ] `curl -fsSL https://federated.sh/pop | bash` on a fresh Pop!_OS installs, + puts `configure` and `update` on PATH in a new terminal, and offers to + run `configure` +- [ ] `update` shows what changed and installs it, while a backup runs +- [ ] On another Ubuntu 24.04-based system, `configure` says it isn't Pop!_OS + +### Your Federated Core (`configure core`) + +- [ ] Evolution shows the Core's email, calendars and contacts +- [ ] The Nextcloud app password "Pop!_OS on {computer}" is in Nextcloud + under Settings > Security +- [ ] Superpanel is in the COSMIC launcher and app library, with its icon +- [ ] The Core's files mount at `/mnt/`, show in the COSMIC Files + sidebar, and mount again after logging out and in +- [ ] Element opens, set up for the Core's Matrix server +- [ ] The email watcher's notification shows when the password stops working, + and clicking it opens `configure core` in COSMIC Terminal +- [ ] Running `configure core` again changes nothing; testing the Core passes + +### Federated Calendar + +Once it's packaged for Pop!_OS (see [PLAN.md](PLAN.md)): + +- [ ] It's installed by `configure core` and opens from the launcher +- [ ] It shows the Core's calendars that Evolution shows +- [ ] An event with an invited email address sends the invitation from the + Core, and updating and cancelling the event send those too +- [ ] Adding a Jitsi meeting uses the Core's Jitsi server +- [ ] After `update` brings a new version, the new one runs + +### Tailscale + +- [ ] `configure tailscale` joins the Core's headscale, and `tailscale status` + shows the other machines + +### Backups + +- [ ] `configure backup` makes a first backup; the timer is on + (`systemctl --user list-timers`) +- [ ] A file restores from it + +### Storage and printers + +- [ ] An SMB share and an SFTP server mount, and show in the COSMIC Files + sidebar +- [ ] A network printer found by `configure printers` prints a test page from + a GTK app's print dialog + +### AI agents and the sandbox + +- [ ] Each agent installs and signs in, and runs in the sandbox +- [ ] If Pop!_OS restricts user namespaces, the AppArmor profile for + bubblewrap lets the sandbox start +- [ ] An AI server on the network or tailnet is found by `configure ai-servers`