mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 23:08:36 +00:00
release manifest: a Control-only hotfix (terminal_version 0.2.13.1, control_version 0.1.59.1, engines 0.1.59) passes the check; UPDATES.md example lines follow
This commit is contained in:
1 parent
74f7764e01
commit
b5bff964a0
4 files changed
+30
-7
No files matched your search
@@ -3,7 +3,8 @@
|
||||
"tag": "v0.2.13",
|
||||
"published": "2026-11-09",
|
||||
"product_version": "0.2.13",
|
||||
"control_version": "0.1.59",
|
||||
"terminal_version": "0.2.13.1",
|
||||
"control_version": "0.1.59.1",
|
||||
"engine_version": "0.1.59",
|
||||
"assets": [
|
||||
"SHA256SUMS.txt",
|
||||
|
||||
@@ -39,7 +39,7 @@ Comments are for this document only; actual feed files must be strict JSON.
|
||||
"version": "0.2.13", "notes": "...", "pub_date": "2026-10-20T10:00:00Z",
|
||||
"platforms": {"windows-x86_64": {"url": "app/Strata-0.2.13-windows-x64-setup.exe", "signature": "<minisign, base64>", "sha256": "...", "size": 71000000}}
|
||||
},
|
||||
"control": {"version": "0.1.59", "packages": [{"platform": "linux-x86_64", "format": "tar.gz", "url": "control/...tar.gz",
|
||||
"control": {"version": "0.1.59.1", "packages": [{"platform": "linux-x86_64", "format": "tar.gz", "url": "control/...tar.gz",
|
||||
"size": 0, "sha256": "...", "installed_bytes": 0, "entry": "strata.py"}]},
|
||||
"engine": {"packages": [{
|
||||
"version": "0.1.59", "platform": "linux-x86_64", "backend": "cuda", "variant": "cuda13",
|
||||
@@ -206,9 +206,9 @@ All signing happens on the release PC, on the finished files.
|
||||
|
||||
python packaging/feed_tool.py sign-package <engine package folder> --key <feed-key.json> # every engine package (the Mac app bundles its UNSIGNED copy)
|
||||
python packaging/feed_tool.py pack-engine <engine package folder> --out RELEASE/engine --url-prefix=
|
||||
python packaging/feed_tool.py pack-control <control folder> --version 0.1.59 --platform P --out RELEASE/control --url-prefix= # --format zip for windows-x86_64
|
||||
python packaging/feed_tool.py pack-control <control folder> --version 0.1.59.1 --platform P --out RELEASE/control --url-prefix= # --format zip for windows-x86_64
|
||||
# --url-prefix= (not --url-prefix "") because PowerShell 5.1 drops an empty argument. The Control version is the VERSION file
|
||||
# (0.1.59), not the app version: a Control package newer than the installed one is installed by `strata update`.
|
||||
# (0.1.59.1), not the app version: a Control package newer than the installed one is installed by `strata update`.
|
||||
# Pack Linux and Mac packages on Linux / the Mac or on Windows with this tool: it sets the execute bit from the file header either way.
|
||||
cd apps/desktop && npx tauri build --bundles nsis --config src-tauri/tauri.update.conf.json # Windows installer (no engine inside)
|
||||
# Linux: tauri build --bundles appimage (no engine inside) is the AppImage
|
||||
|
||||
@@ -75,7 +75,8 @@ def code_versions():
|
||||
"""Where the versions come from in the source tree: name -> (value found, manifest key)."""
|
||||
cmake = first("CMakeLists.txt", r"^project\(strata VERSION ([0-9.]+) ")
|
||||
return {
|
||||
"strata_cli/__init__.py": (first("strata_cli/__init__.py", r'^PRODUCT_VERSION = "([^"]+)"'), "product_version"),
|
||||
# the Terminal says the product version, or (a Control-only hotfix such as 0.2.13.1) the manifest's optional terminal_version
|
||||
"strata_cli/__init__.py": (first("strata_cli/__init__.py", r'^PRODUCT_VERSION = "([^"]+)"'), "terminal_version"),
|
||||
"apps/host/package.json": (json.loads(read("apps/host/package.json")).get("version"), "product_version"),
|
||||
"apps/desktop/package.json": (json.loads(read("apps/desktop/package.json")).get("version"), "product_version"),
|
||||
"apps/desktop/src-tauri/Cargo.toml": (first("apps/desktop/src-tauri/Cargo.toml", r'^version = "([^"]+)"'), "product_version"),
|
||||
@@ -127,8 +128,14 @@ def check(manifest):
|
||||
if manifest["tag"] != "v" + manifest["product_version"]:
|
||||
problems.append("tag %s does not match product_version %s" % (manifest["tag"], manifest["product_version"]))
|
||||
for where, (found, key) in code_versions().items():
|
||||
if found != manifest[key]:
|
||||
problems.append("%s says %s, docs/data/release.json %s is %s" % (where, found, key, manifest[key]))
|
||||
want = manifest.get(key, manifest["product_version"]) if key == "terminal_version" else manifest[key]
|
||||
if where == "CMakeLists.txt (engine)":
|
||||
# the CMake project version is Control's. The engine packages carry it, except after a Control-only hotfix (Control 0.1.59.1,
|
||||
# engines still 0.1.59): then Control is the engine version plus one hotfix part.
|
||||
if found != manifest["control_version"] or not (found == want or found.startswith(want + ".")):
|
||||
problems.append("%s says %s, docs/data/release.json %s is %s (control_version %s)" % (where, found, key, want, manifest["control_version"]))
|
||||
elif found != want:
|
||||
problems.append("%s says %s, docs/data/release.json %s is %s" % (where, found, key, want))
|
||||
assets = set(manifest["assets"])
|
||||
for name in expand(manifest):
|
||||
if name not in assets:
|
||||
|
||||
@@ -37,6 +37,21 @@ class ReleaseManifest(unittest.TestCase):
|
||||
self.assertIn("strata_cli/__init__.py says", problems)
|
||||
self.assertIn("asset list has no Strata-0.2.99-windows-x64-setup.exe", problems)
|
||||
|
||||
def test_a_control_only_hotfix_is_allowed_and_a_drifting_control_is_not(self):
|
||||
"""0.2.13.1: the Terminal and Control are one hotfix part ahead of the app and the engines; nothing else may differ."""
|
||||
m = rm.load()
|
||||
self.assertEqual(rm.check(m), [])
|
||||
wrong = copy.deepcopy(m)
|
||||
wrong["control_version"] = m["engine_version"] # the manifest says the hotfix is not there, the source says it is
|
||||
problems = "\n".join(rm.check(wrong))
|
||||
self.assertIn("CMakeLists.txt (Control) says", problems)
|
||||
wrong = copy.deepcopy(m)
|
||||
wrong["engine_version"] = "0.1.58" # engines two builds behind Control: not a hotfix
|
||||
self.assertIn("CMakeLists.txt (engine) says", "\n".join(rm.check(wrong)))
|
||||
wrong = copy.deepcopy(m)
|
||||
del wrong["terminal_version"] # no terminal_version: the Terminal must say the product version
|
||||
self.assertIn("strata_cli/__init__.py says 0.2.13.1", "\n".join(rm.check(wrong)))
|
||||
|
||||
def test_installer_names_in_the_manifest_asset_list(self):
|
||||
m = rm.load()
|
||||
for name in rm.expand(m):
|
||||
|
||||
Reference in new issue
Block a user