diff --git a/release_notes/2.6.4.md b/release_notes/2.6.4.md index ddbb2c58d..a5dc34c95 100644 --- a/release_notes/2.6.4.md +++ b/release_notes/2.6.4.md @@ -2,7 +2,7 @@ 2.6.4 is mostly a catalog release. Every catalog was checked against its published sources and the object database was rebuilt from the result, so names, positions, types and magnitudes are now cited rather than inherited. A star that several catalogs list is now one object, and a new **Named Stars** catalog holds every star with an official IAU name. The catalog changes have their own page: [PiFinder 2.6.4: Catalog Changes](2.6.4-catalog.md). -Around that, three things you may notice. **Each telescope now keeps its own alignment**, so moving the PiFinder between two telescopes no longer means aligning again. A long-standing fault that could quietly undo a saved setting after a restart, alignment included, is fixed. And the newer 1.5" OLED screens from Waveshare, which stayed blank on earlier software, now work. +Around that, three things you may notice. **Each telescope now keeps its own alignment**, so moving the PiFinder between two telescopes no longer means aligning again. A long-standing fault that could quietly undo a saved setting after a restart, alignment included, is fixed. And recent production Waveshare 1.5" OLED screens, which stayed blank or showed corrupt images on earlier software, now work. These notes cover everything since the `v2.6.3` tag. A few items (the update repair, the rev3 power-off fix and some documentation) reached the release branch in late August without a version change. A PiFinder that was installed fresh or updated after that already has them, and still reports 2.6.3. They are listed here because most units in the field do not have them yet. @@ -50,7 +50,7 @@ Now a save reads the file, changes only its own keys, and replaces the file in o ### The 1.5" OLED Runs at 20 MHz (#701) -Some newer 1.5" OLED screens from Waveshare stayed blank. The 1.5" screen (SSD1351 controller, rev3 and earlier) was driven at 40 MHz, about twice the controller's rated maximum of 20 MHz; older panels tolerated that and newer ones do not. It now runs at 20 MHz everywhere the software drives that screen: the app, the splash screen, the screen-clear script and the bench tools. The rev4's 1.91" screen is unchanged at 40 MHz. +Some recent production 1.5" OLED screens from Waveshare stayed blank or showed corrupt images. The 1.5" screen (SSD1351 controller, rev3 and earlier) was driven at 40 MHz, about twice the controller's rated maximum of 20 MHz; older panels tolerated that and newer ones do not. It now runs at 20 MHz everywhere the software drives that screen: the app, the splash screen, the screen-clear script and the bench tools. The rev4's 1.91" screen is unchanged at 40 MHz. A full screen now takes about 13 ms to send instead of 6.6 ms, against a frame budget of 33 ms. Only the changed parts of the screen are sent, so most frames send much less. diff --git a/release_notes/RELEASE-PLAYBOOK.md b/release_notes/RELEASE-PLAYBOOK.md index 779385ef1..50517929a 100644 --- a/release_notes/RELEASE-PLAYBOOK.md +++ b/release_notes/RELEASE-PLAYBOOK.md @@ -131,7 +131,11 @@ This is the part that has actually bitten us. Work through it before the merge. msgid was removed, and each `.mo` is byte-identical to a fresh `pybabel compile`. Note `messages.pot` is gitignored, so scope the diff to the tracked `.po` files. New menu entries shift menu indexes and break Selenium tests that navigate by counting keypresses; - that has happened twice. + that has happened twice. Count against a fresh extract, not the committed catalogs: 2.6.3 + reported 0 untranslated while `Enter Local Time`, still in the code, sat obsolete in every + catalog and showed in English. After `pybabel update`, check for a msgid that is both + active and obsolete (`msgfmt` stops with "duplicate message definition"); remove the + obsolete copy. - [ ] `default_config.json` diff since the last public tag. Every added key is a visible change on an untouched upgrade. List them in the notes. - [ ] New migration needed? Add `migration_source/vX.Y.Z.sh` **and** register it in @@ -144,8 +148,23 @@ This is the part that has actually bitten us. Work through it before the merge. ## Phase 3, the gates -The plan's shape, reused across 2.6.1, 2.6.2 and 2.6.3. Gates 1 to 3 must pass before the -merge; 4 to 6 before the update is offered. +The plan's shape, reused across 2.6.1, 2.6.2, 2.6.3 and 2.6.4. Gates 1 to 3 must pass before +the merge; 4 to 6 before the update is offered, except the parts of Gate 4 that need the real +in-app update, which can only run after the push. + +**Testing the candidate before the cut.** The in-app update only pulls `release`, so Gates 2 +and 3 update a unit by hand, the way `pifinder_update.sh` would: + +```bash +cd ~/PiFinder +git fetch origin +git checkout -B rc FETCH_HEAD +source pifinder_post_update.sh # recreates python/tetra3, as the real update does +``` + +Start from a newly written card on the last public image; it is the population that +upgrades, and a used card hides problems (2.6.4's Gate 2 found the 2.6.3 settings-clobber bug +that way). | Gate | What | Runs where | |---|---|---| @@ -157,13 +176,27 @@ merge; 4 to 6 before the update is offered. | 6 | Web, API, planetarium protocols | Dev box + phone | Baselines worth recording each time, because the trend catches regressions the suite doesn't: -smoke+unit count (1,238 at the 2.6.2 cut, 1,305 at #631, 1,531 at 2.6.3), msgid count -(694 × 4 catalogs at 2.6.3), sphinx page count. - -Two automation traps: clear the mypy cache first (`rm -rf .mypy_cache`), because a stale cache -reports phantom errors. And reset `language` to `en` in `~/PiFinder_data/config.json` before the -web suite, because the tests assert English titles and a device left in Chinese fails three of -them for no reason. +smoke+unit count (1,238 at the 2.6.2 cut, 1,305 at #631, 1,531 at 2.6.3, 2,421 at 2.6.4), +msgid count (694 × 4 catalogs at 2.6.3, 698 × 4 at 2.6.4), sphinx page count (20 at 2.6.4), +web suite (174 at 2.6.4), first start to Catalogs Fully Loaded (about 2 min at 2.6.4 on +rev4 and rev3). + +Automation traps: + +- Clear the mypy cache first (`rm -rf .mypy_cache`), because a stale cache reports phantom + errors. +- Reset `language` to `en` in `~/PiFinder_data/config.json` before the web suite, because the + tests assert English titles and a device left in Chinese fails three of them for no reason. +- The web suite needs no Selenium Grid: `pytest -m web --local` drives a local Chrome. Back up + `~/PiFinder_data` first; the tests write to it. On macOS the app binds port 80, and its + plate solver needs `bin/cedar-detect-server-arm64 -p 50551` started by hand. +- On macOS, stopping the app with `kill` leaves its child processes running, the web server + among them, still on port 80. Kill every `multiprocessing` child before a restart, or the + tests talk to a dead copy. 2.6.4's first run showed 49 false failures this way. +- A new `nox -s babel` venv needs `setuptools<81` (pinned in `noxfile.py` since 2.6.4): Babel + 2.16 on Python 3.9 finds the jinja2 extractor through `pkg_resources`. +- On a device, the app log is `~/PiFinder_data/pifinder.log`, and the default level is + `ERROR`. INFO and WARNING lines are not written, so a test cannot expect them there. ## Phase 4, the cut @@ -227,12 +260,50 @@ otherwise (see one-time tasks). ## Phase 6, build and publish the image -TODO. The GitHub release for 2.6.3 points at -`https://ddbeeedxfpnp0.cloudfront.net/software/PiFinder_2.6.3.img`, so the 2.x image is built -and uploaded outside this repo. Nothing here describes how. Needs: how the image is built, what -gets baked in (preconfigured hardware settings were documented in #637), how it's uploaded, and -whether anything verifies the upload before the release body links to it. Write this section -while doing it for 2.6.4. +The 2.x image is not built from scratch. Each release image is the previous release image, +updated in place and cleaned. Written down from Rich's 2.6.4 build (2026-11-22). + +- [ ] Write the previous release image to a card and boot it. +- [ ] Add a local WiFi network and restart in client mode. +- [ ] Update with the normal in-app update (Settings → Software). This is also a run of the + upgrade path from the previous release (G4.1). +- [ ] Validate the image: the version, a solve in Test Mode, the first start's catalog load. +- [ ] **Check the boot setup by hand.** An update never runs `pifinder_setup.sh` and never + changes `/boot/config.txt`, so a fix that only `pifinder_setup.sh` makes (for example + #639, the `[cm4]`-gated `gpio-poweroff` block) does not reach an image built this way. + Compare `/boot/config.txt` with what `pifinder_setup.sh` writes, and edit it to match. + For 2.6.4 Rich added the gated block by hand: + ``` + [cm4] + dtoverlay=gpio-poweroff,gpiopin=14,active_low + [all] + ``` +- [ ] Delete the WiFi network you added, and switch to access-point mode. +- [ ] Remove what the validation left behind in `~/PiFinder_data` (2.6.4's first build kept a + test `observations.db`): + - delete `observations.db` (the app creates an empty one), `pifinder.log*`, and the + contents of `captures/`, `screenshots/`, `solver_debug_dumps/` and `telemetry/`; + - delete `PiFinder_backup.zip` and `startup_profile.*` if they exist; + - keep `config.json`, but undo anything the validation changed in it (it carries the + image's preset hardware settings, #637); + - keep `migrations/` (its sentinel files stop migrations running again) and + `cache/catalogs/` (it spares a new owner the 2-minute first catalog load; a stale + cache is simply rebuilt); + - outside the data folder, clear `~/.bash_history`. +- [ ] Shut the PiFinder down, remove the card, dump it to an image file and shrink it with + [PiShrink](https://github.com/Drewsif/PiShrink). That file is `PiFinder_X.Y.Z.img`. + On Linux, with the card at `/dev/sdb` (check with `lsblk` first: `dd` overwrites + whatever `of=` names): + ```bash + dd bs=4M if=/dev/sdb of=PiFinder_X.Y.Z.img conv=fsync status=progress + ./pishrink.sh PiFinder_X.Y.Z.img + ``` +- [ ] Upload it to the S3 bucket behind `https://ddbeeedxfpnp0.cloudfront.net/software/` with + `s3cmd`, which uploads in chunks and can resume. TODO: the bucket path, and whether + CloudFront needs an invalidation. +- [ ] Before the release body links it, check that the URL answers with the right size + (`curl -sI `), and test-boot a card written from the published file on a rev3 and + a rev4: power off must go dark on both (test plan G3.40, G3.41). ## Phase 7, announce @@ -325,6 +396,12 @@ hotfix is needed after the gate opens, close the gate first. `false`. Seven presses of SQUARE land on a beta, so the 90-day rule above applies from day one. `v3.1.3-beta` was built on 2026-11-11. +Outcome: cut on 2026-11-22. `release` and `release_candidate` at `578a00d07` ("Release 2.6.4"), +tag `v2.6.4` on that commit. The 2.6.4 release notes do not mention the migration, by Rich's +decision; testers get their own instructions. Two known gaps for the release that opens the +gate: the rev4 conversion screens are turned (`migration_progress.c` does not rotate the +SSD1333), and 3.1.3-beta drives the 1.5" OLED at 40 MHz (the `nixos` branch has the fix). + ## The `release` branch after NixOS, a transition plan Proposed 2026-11-16. Nothing here has been done yet. @@ -455,8 +532,7 @@ release is one workflow run, so that is the way to publish one. ## Still open -- Phase 6 is a stub. How does the SD image get built, what goes into it, and how does it reach - CloudFront? +- Phase 6 has one TODO: whether CloudFront needs an invalidation after an upload. - Phase 7's three announcement channels need their specifics filled in. - The Software screen's behaviour with the gate open is read from code, not seen on a device. - The two items under "Not decided" in the transition plan. diff --git a/release_notes/release-2.6.4-test-plan.md b/release_notes/release-2.6.4-test-plan.md index 20c51437a..0855b0df9 100644 --- a/release_notes/release-2.6.4-test-plan.md +++ b/release_notes/release-2.6.4-test-plan.md @@ -418,7 +418,7 @@ owners: if an older panel misbehaves at 20 MHz, the fix for new panels breaks ol Owner: Rich. -- [ ] **G4.1** **From the `v2.6.3` tag** (tracked symlink). **Run G6.4 (SkySafari) on this card too.** In-app update is offered, +- [x] **G4.1** **From the `v2.6.3` tag** (tracked symlink). **Run G6.4 (SkySafari) on this card too.** In-app update is offered, completes, Status reads 2.6.4. `python/tetra3` is the relative link `PiFinder/tetra3/tetra3` and the solver starts. - [ ] **G4.2** **From the later `release` tip** (still reports 2.6.3, already untracked). @@ -439,6 +439,12 @@ Owner: Rich. **Blocks:** offering the update. +**Result, after the cut, 2026-11-22 (Rich):** G4.1 on a rev4 with a newly written 2.6.3 card. +The Software screen offered 2.6.4; the in-app update reported **Ok! Restarting**; the unit +came up on `578a00d07` ("Release 2.6.4") with `python/tetra3` recreated by the update and a +clean tree; an observation logged on 2.6.3 (M 101) still shows as observed. G6.4 on the +same unit: SkySafari works (the readout across a telescope switch was not checked). + --- ## 7. Gate 5 — Under the stars @@ -476,7 +482,7 @@ Reset `language` to `en` in `~/PiFinder_data/config.json` before the web suite. path). - [x] **G6.3** `/api/current-selection` and the web object details show the new names (M 82 → Cigar Galaxy) and the joined listings. -- [ ] **G6.4** SkySafari push to the observing list and position readout +- [x] **G6.4** SkySafari push to the observing list and position readout **(carried)**; Stellarium live session if not banked in 2.6.3 **(carried)**. **Result, 2026-11-21 (coordinator):** run on a Mac against a headless PiFinder from @@ -551,8 +557,8 @@ unverified). No dedicated release review was run for this cut. | G1 — Automated | Claude | 2026-11-22 | Pass at `45377bce1`: 2,421 smoke+unit, 225 UI, ruff, mypy, sphinx `-nW`, i18n 698 × 4. G1.7 not run. | | G2 — Bench, standard hardware | Rich | 2026-11-20 | Pass on rev4. G2.9 and G2.40 not run. | | G3 — Migration, catalog off rev4, alignment, OLED, power-off | Rich, mrosseel | 2026-11-22 | Pass: migration on rev4 and Pi 4, catalog on 128 px, OLED (G3.30, G3.32). Accepted as not run: G3.7, G3.20–G3.21, G3.31. G3.40–G3.41 after the image. Known gap: turned rev4 conversion screen. | -| G4 — Upgrade paths | Rich | | After the cut, with G6.4. | +| G4 — Upgrade paths | Rich | 2026-11-22 | G4.1 pass after the cut: a new 2.6.3 card on a rev4, real in-app update. G4.2–G4.8 not run. | | G5 — Under the stars | Rich | 2026-11-22 | **Not run, by decision:** the solver and camera paths did not change (only #666, which does not move a live reading). | -| G6 — Web, API, planetarium | Claude, Rich | 2026-11-21 | G6.1–G6.3 pass (web suite 174, with the language-test fix). G6.4 after the cut. | +| G6 — Web, API, planetarium | Claude, Rich | 2026-11-21 | G6.1–G6.3 pass (web suite 174, with the language-test fix). G6.4 pass after the cut (2026-11-22). | **Migration gates (G3.1–G3.6) passed on Pi 4 and rev4:** 2026-11-22 **Cut authorised by:** Rich **Date:** 2026-11-22