mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
fix(updater): recover interrupted swaps reliably across deployments
- Ship one POSIX launcher that repairs an interrupted code swap before Node starts, install it atomically before the swap, and keep it out of CODE_ENTRIES so it always survives at the install root. - Restore from the in-progress task backup (state.json task.id -> backups/<id>) first, then the newest complete backup, so a leftover older backup never resurrects an obsolete build. - Add exact-window SIGKILL recovery tests, including the stale-backup case. - Gate Linux arm64 apply behind a capability check; add five-language copy and i18n labels for arm64, lock and unavailable errors. - Harden the L2 runner handshake and recheck runner health before exit.
This commit is contained in:
1 parent
699e606da5
commit
82b58dbd61
16 files changed
+699
-24
No files matched your search
@@ -77,7 +77,8 @@ test("a complete packaged tree is detected as a release package", t => {
|
||||
const info = detectDeployment({ rootDir: root, env: {}, isDocker: false, platform: "linux", architecture: "arm64" });
|
||||
assert.equal(info.mode, "release-package");
|
||||
assert.equal(info.assetKind, "linux-arm64");
|
||||
assert.equal(info.applyAllowed, true);
|
||||
assert.equal(info.applyAllowed, false);
|
||||
assert.equal(info.reasonCode, "LINUX_ARM64_APPLY_UNVERIFIED");
|
||||
assert.equal(detectDeployment({ rootDir: root, env: { WEBSPEAK_DEPLOYMENT_MODE: "docker" }, isDocker: false, platform: "linux" }).mode, "docker");
|
||||
});
|
||||
|
||||
@@ -129,6 +130,20 @@ test("windows release packages are visible but apply stays disabled", t => {
|
||||
assert.equal(linux.reasonCode, null);
|
||||
});
|
||||
|
||||
test("linux arm64 release packages are checkable but apply is gated off", t => {
|
||||
const root = releasePackageRoot(t);
|
||||
const arm64 = detectDeployment({ rootDir: root, env: {}, isDocker: false, platform: "linux", architecture: "arm64" });
|
||||
assert.equal(arm64.mode, "release-package");
|
||||
assert.equal(arm64.assetKind, "linux-arm64");
|
||||
assert.equal(arm64.applyAllowed, false);
|
||||
assert.equal(arm64.reasonCode, "LINUX_ARM64_APPLY_UNVERIFIED");
|
||||
assert.equal(arm64.upgradePath, "release-package");
|
||||
|
||||
const x64 = detectDeployment({ rootDir: root, env: {}, isDocker: false, platform: "linux", architecture: "x64" });
|
||||
assert.equal(x64.applyAllowed, true);
|
||||
assert.equal(x64.reasonCode, null);
|
||||
});
|
||||
|
||||
test("unsupported platforms are visible but cannot apply", t => {
|
||||
const root = releasePackageRoot(t);
|
||||
const info = detectDeployment({ rootDir: root, env: {}, isDocker: false, platform: "linux", architecture: "s390x" });
|
||||
|
||||
Reference in new issue
Block a user