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
@@ -725,6 +725,19 @@ test("settings and operations render explicit localized sections with valid deep
|
||||
}
|
||||
});
|
||||
|
||||
test("update error codes resolve to their dedicated five-language labels", async () => {
|
||||
const { adminOrganizationCopy } = await vite.ssrLoadModule("/src/i18n/admin-organization.ts");
|
||||
await mount("/admin/server");
|
||||
for (const language of ["zh", "en", "de", "ru", "ja"]) {
|
||||
state.language = language;
|
||||
const copy = adminOrganizationCopy[language];
|
||||
assert.equal(state.i18n.errorText("UPDATE_LOCK_FAILED"), copy.updateErrorLockFailed);
|
||||
assert.equal(state.i18n.errorText("UPDATE_UNAVAILABLE"), copy.updateErrorUnavailable);
|
||||
assert.equal(state.i18n.errorText("UPDATE_RESTART_UNAVAILABLE"), copy.updateErrorUnavailable);
|
||||
assert.notEqual(state.i18n.errorText("UPDATE_LOCK_FAILED"), copy.updateErrorGeneric);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
test("loading saved custom Query ports never treats them as unsaved transport defaults", async () => {
|
||||
for (const [transport, queryPort] of [["ssh", 10011], ["tcp", 10022]]) {
|
||||
|
||||
Reference in new issue
Block a user