mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1266] [CLOSED] Add the Update the engine card #3346
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3346
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
530bfbeAdd the engine updater: verify, stage, all-or-nothing swap, rollback9b57341Add 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|stateroutes, and the docs describingwhat 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/.previousas documented. Two live rendering bugs were found and fixed whileverifying: one missed
bare()on a tag writer that made the card readvv0.1.40.1(fixed at the setter, soall 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 againstmainshrinksto 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-uishows 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.