mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1265] [CLOSED] Add the engine updater: verify, stage, all-or-nothing swap, rollback #3345
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#3345
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/1265
Author: @demetree
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:update-core📝 Commits (1)
530bfbeAdd the engine updater: verify, stage, all-or-nothing swap, rollback📊 Changes
6 files changed (+2683 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)📄 Description
#1162 split in two so each half is reviewable on its own
The combined PR was +3005 lines across 9 files. The safety-critical engine mechanism and its tests belong to a
maintainer who wants to read the security model; the UI card is separable and thin. They are stacked - PR
"UI" is based on the "core" branch and lands after it - and they share the API routes in
server.py, whichis the one place they legitimately depend on each other.
PR A - the engine updater,
serve/server-side, with the two checker scripts and the docsWhat it is: a new
serve/update.py, the/api/update/check|apply|stateroutes inserve/server.py, thefour step labels enforced against the server responses (no drift), the two test files, and the documentation
of what the update does and how it was measured.
Why it is this shape, one paragraph:
Tests:
serve/test_update.py143 checks,serve/test_update_http.py51 over real HTTP handlers, no network.pytest serve473 passed, 8 skipped.PR B - the card (base:
update-core)Adds the Update the engine card to the About tab, wired to the routes PR A provides. Each step carries
its own status and note from the server, and the
donenote names the engine version the install reportedback, not the release tag - the two are not always the same, and a hotfix release such as v0.1.40.1 ships the
v0.1.40 engine. Verified end to end in a browser against the live v0.1.40.1 release. Two live UI bugs were
found and fixed while doing that: a missed
bare()strip on one writer that readvv0.1.40.1, and/metricspolling overwriting the server's tag with BUILD.json's engine version, which could re-offer an update that
had already finished.
The base is
update-corebecause PR B calls its routes; once PR A merges, GitHub will offer to rebase andthe diff shrinks to just the three web files. Nothing outside
serve/web/is touched.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.