[PR #1266] [CLOSED] Add the Update the engine card #3346

Closed
opened 2026-11-07 14:40:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1266
Author: @demetree
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: update-ui


📝 Commits (2)

  • 530bfbe Add the engine updater: verify, stage, all-or-nothing swap, rollback
  • 9b57341 Add the Update the engine card

📊 Changes

9 files changed (+3005 additions, -0 deletions)

View changed files

📝 docs/DETAILS.md (+38 -0)
📝 docs/INSTALL.md (+20 -0)
📝 serve/server.py (+116 -0)
➕ serve/test_update.py (+1061 -0)
➕ serve/test_update_http.py (+501 -0)
➕ serve/update.py (+947 -0)
📝 serve/web/app.css (+24 -0)
📝 serve/web/app.js (+279 -0)
📝 serve/web/index.html (+19 -0)

📄 Description

This card is only the visible half of the engine updater. The updater itself lives in PR #1265 - the base of
this PR - which adds serve/update.py, the /api/update/check|apply|state routes, and the docs describing
what the engine update does and how it was measured.

This half adds the card to the About tab: the installed version, the latest release, a Check for updates
button, and - only when the server says a newer engine is out - an Install the update button. Starting
it shows the nine steps individually with their own status and their own note, and the download percent is
the server's byte count, not a timer. When it finishes, the note reports the engine version the install
actually came back with - not the release tag - because a hotfix release such as v0.1.40.1 ships the v0.1.40
engine, and naming the tag would claim more than happened.

Verified against the live v0.1.40.1 release on this machine in a browser: the card appeared, the check was
established, the download completed at 190.2 MB and the engine restarted and reported its version, and the
backup was left in engine/.previous as documented. Two live rendering bugs were found and fixed while
verifying: one missed bare() on a tag writer that made the card read vv0.1.40.1 (fixed at the setter, so
all eight display writers are consistent), and the About polling overwriting the server's tag with
BUILD.json's engine version, which on the v0.1.40.1-ships-v0.1.40 case offered the already-installed update
again.

This is meant to land after #1265, which adds the updater and the routes this card calls. PR base is
main, and because the two branches share the core commits, the diff of this PR against main shrinks
to just the three web files the moment #1265 merges - that is what GitHub will show, no manual rebase
needed. Until then, git diff update-core..update-ui shows exactly the card on its own: three files,
322 added. Nothing outside serve/web/ is touched.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1266 **Author:** [@demetree](https://github.com/demetree) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `update-ui` --- ### 📝 Commits (2) - [`530bfbe`](https://github.com/Niko1221/Strata/commit/530bfbec76d7b58411b643541776fca52253b696) Add the engine updater: verify, stage, all-or-nothing swap, rollback - [`9b57341`](https://github.com/Niko1221/Strata/commit/9b573414a2afb8361fdf6af05efba3643f0ec496) Add the Update the engine card ### 📊 Changes **9 files changed** (+3005 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+38 -0) 📝 `docs/INSTALL.md` (+20 -0) 📝 `serve/server.py` (+116 -0) ➕ `serve/test_update.py` (+1061 -0) ➕ `serve/test_update_http.py` (+501 -0) ➕ `serve/update.py` (+947 -0) 📝 `serve/web/app.css` (+24 -0) 📝 `serve/web/app.js` (+279 -0) 📝 `serve/web/index.html` (+19 -0) </details> ### 📄 Description This card is only the visible half of the engine updater. The updater itself lives in PR #1265 - the base of this PR - which adds `serve/update.py`, the `/api/update/check|apply|state` routes, and the docs describing what the engine update does and how it was measured. This half adds the card to the About tab: the installed version, the latest release, a **Check for updates** button, and - only when the server says a newer engine is out - an **Install the update** button. Starting it shows the nine steps individually with their own status and their own note, and the download percent is the server's byte count, not a timer. When it finishes, the note reports the engine version the install actually came back with - not the release tag - because a hotfix release such as v0.1.40.1 ships the v0.1.40 engine, and naming the tag would claim more than happened. Verified against the live v0.1.40.1 release on this machine in a browser: the card appeared, the check was established, the download completed at 190.2 MB and the engine restarted and reported its version, and the backup was left in `engine/.previous` as documented. Two live rendering bugs were found and fixed while verifying: one missed `bare()` on a tag writer that made the card read `vv0.1.40.1` (fixed at the setter, so all eight display writers are consistent), and the About polling overwriting the server's tag with BUILD.json's engine version, which on the v0.1.40.1-ships-v0.1.40 case offered the already-installed update again. This is meant to land after #1265, which adds the updater and the routes this card calls. PR base is `main`, and because the two branches share the core commits, the diff of this PR against `main` shrinks to just the three web files the moment #1265 merges - that is what GitHub will show, no manual rebase needed. Until then, `git diff update-core..update-ui` shows exactly the card on its own: three files, 322 added. Nothing outside `serve/web/` is touched. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:50 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3346
No description provided.