The first run of lint and the full Docker smoketest since the CoreDesktop ports found: - opencode's sandbox didn't start. Its profile didn't allow all Unix sockets, so srt added its socket filter, which needs a user namespace inside bubblewrap, and Pop!_OS' AppArmor (bwrap-userns-restrict) denies that. opencode now allows them and hides their paths (/run/user, /run/dbus, Docker, Podman, Tailscale, X11, tmux, ssh-agent), as Hermes and Cline Desktop do. 80-security shows it still can't reach the session D-Bus. - 80-security's agent list was named AGENTS, and 30-agents.sh, loaded later, replaced it with its own, so every sandbox check ran a command that doesn't exist. It's FAKE_AGENTS now. - 50-sandbox's "can't" checks would pass if the sandbox never started; a check that it starts now comes first. - shellcheck read a jq variable named done as bash's keyword (SC1010). TEST.md says to install shellcheck and Docker, which the connector doesn't. PLAN.md: pin srt, try the real opencode, and settle on 24.04 or 26.04. make lint passes. smoketest/run --tier all passed every scenario but 50 and 80 before the opencode change, and 50 and 80 pass after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
122 lines
5.0 KiB
Markdown
122 lines
5.0 KiB
Markdown
# 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
|
|
|
|
They need shellcheck and Docker, which the connector doesn't install. Once:
|
|
|
|
```
|
|
sudo apt install shellcheck docker.io && sudo usermod -aG docker $USER # then log in again
|
|
```
|
|
|
|
```
|
|
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/<domain>`, 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
|
|
- [ ] A file sent from another computer (`tailscale file cp f <this computer>:`)
|
|
lands in Downloads, with a notification whose Show opens the folder
|
|
- [ ] With an exit node on, joining a network with a sign-in page loads the
|
|
page, and once signed in the exit node is used again
|
|
- [ ] On a computer joined before this, `configure` shows Tailscale as to do,
|
|
and `configure tailscale` adds Taildrop without signing in again
|
|
|
|
### 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
|
|
|
|
### Security key and fingerprint
|
|
|
|
- [ ] With a FIDO2 key plugged in, `configure security-key` registers it;
|
|
`sudo true` in a new terminal asks for a touch, and without the key, the
|
|
password. A COSMIC Settings password prompt does the same.
|
|
- [ ] On a laptop with a reader, `configure fingerprint` enrolls a finger and
|
|
`sudo true` takes it; with the lid shut (on an external display), it asks
|
|
for the password straight away
|
|
- [ ] Running each again and stopping puts `/etc/pam.d/sudo` back as it was
|
|
|
|
### AI agents and the sandbox
|
|
|
|
- [ ] Each agent installs and signs in, and runs in the sandbox
|
|
- [ ] Claude Code's notification, from Claude in COSMIC Terminal, shows the
|
|
project folder, and clicking it brings COSMIC Terminal back
|
|
- [ ] 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`
|