Files
coredesktop-extension/PLAN.md
T
2026-11-30 06:18:03 -07:00

76 lines
4.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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`.
## Install and update with CoreDesktop
The extension is the `gnome-shell-extension-coredesktop` package in the
`[federated]` pacman repo, like Federated Calendar. `build-aux/arch/PKGBUILD`
builds it, `.gitea/workflows/release.yml` (or `make release`) publishes it,
and CoreDesktop installs it from `packages.conf` and turns it on
(`gnome/gnome-extensions.sh`, `migrations/1795806218.sh`). Still to check:
- [ ] The first run of the Release workflow on Gitea works: the runner has the
`ubuntu-latest` label and can run the `archlinux:base-devel` container,
and Gitea's Arch API answers the upload with 201 (409 for a version it
already has), as `release.sh` expects. Only tested against a fake
registry in a local container so far.
- [ ] After the first `update` with the package and a re-login,
`gnome-extensions info coredesktop@federated.computer` shows the path
under `/usr/share/gnome-shell/extensions` and `State: ACTIVE`
- [ ] A new install (or `refresh`) turns the menu on through
`gnome/gnome-extensions.sh`
- [ ] The license: the PKGBUILD says MIT, to match CoreDesktop, but the
repo has no LICENSE file. Add one, or change `license=` to the right one.
## 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`
## Other
- [ ] `refresh` turns the menu back on for a user who turned it off, since
`gnome/gnome-extensions.sh` runs `enable_gnome_extension` every time.
Fix with a once-per-user marker (e.g. in `~/.local/state/coredesktop/`)
if anyone minds.
- [ ] Add each new GNOME Shell version to `shell-version` in `metadata.json`
when it comes out (48–51 now). GNOME disables an extension that doesn't
list the running version, and CoreDesktop's `80-gnome-extensions.sh`
doesn't look at system extensions, so nothing else catches it.
- [ ] `release.sh` builds the newest commit on Gitea's `main`, not the commit
that started the workflow. Two quick pushes can release the second one
twice (the second run then succeeds with "nothing to do"). Fine as is;
pin the PKGBUILD's source to the commit if it ever matters.
- [ ] Federated Calendar has the same gap this repo had: publishing is a
manual `makepkg` and upload. Copy `release.sh`, the `release` make
target and the workflow there, with its own repo-level `PACKAGE_TOKEN`
secret. The calendar's build needs `meson` and its dependencies, so it
can't use `--nodeps` and needs `makepkg --syncdeps` in the container.