Add PLAN.md and TEST.md

PLAN.md lists what's left after the sibling projects menu: a real-session
test, logs for sibling updates started from the menu, and automated tests.
TEST.md has the manual checks for a real GNOME session: sibling projects,
updates and restarts, and refresh, configure and version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 12:39:36 -07:00
co-authored by Claude Opus 5.5
parent 9e514eb9ed
commit 9a9c2d7955
2 changed files with 116 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Plan
What's left to do in the CoreDesktop GNOME extension. Delete an item once it's
done; git history keeps the record. Checks that need a real GNOME session are
in `TEST.md`.
## Sibling projects
Done in 9e514eb (released as 1.0.r3.g9e514eb): the **Sibling projects** menu
item and dialog, from `sibling check --porcelain`, with **Update** and
**Update all** running `sibling update` in a terminal. A newer sibling counts
as an update for the **Update** pill, the header and the dot. So far it has
only been tried in a headless GNOME Shell 51 with a stub `sibling`.
- [ ] Run the "Sibling projects" part of `TEST.md` on a real session, with
real siblings and a network, on GNOME 48 and 51 at least
- [ ] A sibling update started from the menu writes no log, so when one fails
its notification can't offer **Open log** or **Report problem**. Have
`bin/run-tracked` save the output in `~/.local/state/coredesktop/logs`
for these, or have `sibling update` write its own log the way `update`
does
- [ ] Siblings update one run at a time, like update and refresh (see
`changesSystem` in `extension.js`). Decide whether two different
siblings may update at once
## Testing
- [ ] The extension's only automated check is `make lint`. Add gjs tests for
what doesn't need a shell: parsing `sibling check --porcelain`
(`Cli.checkSiblings`, including `, modified` and `?`) and
`configure --list`, run against stub commands in a temporary `HOME`
- [ ] Script the headless shell run from the README into `make smoke`: start
it with stub commands, open the menu and each dialog from a probe
extension, screenshot them, and fail on any `JS ERROR`
+82
View File
@@ -0,0 +1,82 @@
# Manual tests
Checks that need a real GNOME session, which `make lint` can't do. Run them
on the released package, or on `make install` and a fresh login. Record each
result in the tables below, with the date, the GNOME Shell version
(`gnome-shell --version`) and the extension's commit.
To make a sibling look out of date, move its clone back a commit:
`git -C ~/.local/share/siblings/<name> reset --hard HEAD~1`. The next
`update` or `sibling update <name>` brings it forward again.
## Sibling projects
1. With no siblings installed (`ls ~/.local/share/siblings` is empty), open
the menu. There's no **Sibling projects** item.
2. Install one with `sibling add <url>` and open the menu again. The item
shows, saying "1 installed".
3. Click **Check for updates**. The item says "1 installed, up to date" and
has no pill. The header says **Up to date** if CoreDesktop is.
4. Move the sibling back a commit (above) and click **Check for updates**.
- The item says "Newer: <name>" with a **1 new** pill.
- **Update** has a **New version** pill.
- The header says "A sibling project has a newer version".
- The top bar icon has the blue dot.
5. Click **Sibling projects**. The dialog lists it with its installed version,
"… is available", a **New version** pill and an **Update** button.
6. Click **Update**. A terminal opens running `sibling update <name>`, and the
item's pill says **Running…**. When it ends, a notification says
"Update <name> finished". Without clicking **Check for updates**, the
menu soon shows it up to date, and the dot and pills are gone.
7. Move two siblings back. The dialog has **Update all**, which runs
`sibling update` for every sibling.
8. Edit a tracked file in a sibling's clone. Its row says "with local
changes". Undo the edit with `git -C … checkout .`.
9. Turn off the network and open the dialog. Each row says **Couldn't
check**, and the item says "couldn't check N".
10. Start **Update** and open the dialog: each row says **Running…** and its
**Update** button can't be clicked. Then start **Refresh** instead, and
click a sibling's **Update** while it runs. A notification says to wait
for the current run to finish.
11. Close a sibling update's terminal window before it's done. The
notification says it was stopped.
12. Remove the sibling (`sibling remove <name>`) and open the menu. The item
is gone.
| Date | GNOME | Commit | Result |
|------|-------|--------|--------|
| | | | |
## Updates and restarts
1. On a machine behind CoreDesktop's `main`, click **Check for updates**. The
header says "<version> is available", **Update** has **New version**, and
the icon has the blue dot.
2. Click **Update**. The icon pulses and the header says "Updating…". When it
ends, a notification says how it went.
3. After an update that needs a restart, the header says "Restart to finish
the last update", the dot is orange, and **Restart to finish updating**
shows. Its notification's **Restart now** opens GNOME's restart dialog.
4. Make an update fail (e.g. no network partway through). The notification
offers **Open log** and **Report problem**.
5. Disable and re-enable the extension while an update runs
(`gnome-extensions disable`, then `enable`). Its terminal keeps going,
and the menu still shows **Running…**.
| Date | GNOME | Commit | Result |
|------|-------|--------|--------|
| | | | |
## Refresh, configure and version
1. **Refresh** asks first, with what it does. Turn that off in the settings
and it runs straight away.
2. **Configure** shows **N to do** or **All set**. Its dialog lists every
item with **Done** or **To do**, and **Set up** or **Change** runs
`configure <item>` in a terminal.
3. **Version** shows the report with newer versions highlighted, including
sibling projects. **Copy** copies it and **Update now** runs update.
| Date | GNOME | Commit | Result |
|------|-------|--------|--------|
| | | | |