teknium1
bbdb279a68
fix: desktop promotion rides out a transient Windows file lock on release/win-unpacked
...
The stage-and-swap promotion in hermes_cli/main_desktop.py::_swap_staged_desktop_app
did three bare os.rename calls (live -> .previous, staged -> live, and the rollback).
A real-time file scanner (AV/EDR) that holds a short exclusive handle on the freshly
packed tree turns any of them into a PermissionError (WinError 32 / 5), so the updater
printed "Could not install the rebuilt desktop app into .../release" even though the
identical rename succeeds a second later. Worse: when the lock hit the ROLLBACK
rename, the live app was left stranded under <unpacked>.previous while the log
claimed "live app kept".
Retry only PermissionError, five attempts with 0.5/1/1/1 s backoff, log each retry,
and let the final OSError propagate to the existing "live app kept" warning.
EXDEV/ENOENT-class failures are permanent and are not retried.
Windows cannot be exercised on this host; the probe monkeypatches os.rename to raise
PermissionError twice then succeed (red on base, green after).
Part of #112544 (promotion atom).
2026-09-17 09:19:19 -07:00
..
2026-09-13 09:40:44 -07:00
2026-09-16 21:32:45 -04:00
2026-09-15 21:46:37 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 20:33:31 +05:30
2026-09-14 09:02:28 -07:00
2026-09-15 04:11:11 -07:00
2026-09-16 17:51:11 -07:00
2026-09-15 04:11:11 -07:00
2026-09-16 16:48:42 -07:00
2026-09-15 03:58:44 -07:00
2026-09-15 03:58:44 -07:00
2026-09-17 00:02:09 -07:00
2026-09-17 12:28:25 +05:30
2026-09-15 20:44:42 +05:30
2026-09-15 04:57:29 -07:00
2026-09-16 14:34:59 -07:00
2026-09-16 14:34:59 -07:00
2026-09-15 20:44:42 +05:30
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 16:16:24 +05:30
2026-09-16 14:34:59 -07:00
2026-09-12 22:07:41 -07:00
2026-09-15 03:38:29 -07:00
2026-09-12 22:07:41 -07:00
2026-09-16 14:34:59 -07:00
2026-09-16 17:16:06 -07:00
2026-09-17 00:34:50 -05:00
2026-09-15 18:26:38 -07:00
2026-09-15 19:06:54 -07:00
2026-09-16 16:53:40 -07:00
2026-09-15 18:24:22 -07:00
2026-09-12 08:25:54 -07:00
2026-09-17 08:59:22 -07:00
2026-09-12 08:25:54 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 19:28:32 -07:00
2026-09-16 17:49:48 -07:00
2026-09-15 06:29:50 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 14:52:26 +05:30
2026-09-17 08:59:22 -07:00
2026-09-15 18:25:46 -07:00
2026-09-13 14:35:32 -07:00
2026-09-17 09:06:59 -07:00
2026-09-12 22:00:02 -07:00
2026-09-13 14:35:32 -07:00
2026-09-15 04:08:53 -07:00
2026-09-15 20:47:06 +05:30
2026-09-15 04:12:13 -07:00
2026-09-17 18:36:22 +05:30
2026-09-13 20:50:10 -07:00
2026-09-15 19:05:29 -07:00
2026-09-15 19:05:29 -07:00
2026-09-15 06:29:50 -07:00
2026-09-12 08:25:36 -07:00
2026-09-13 20:41:41 -07:00
2026-09-12 16:17:04 -07:00
2026-09-17 09:02:55 -07:00
2026-09-15 06:29:50 -07:00
2026-09-15 21:47:48 -07:00
2026-09-15 05:25:39 -07:00
2026-09-15 00:41:13 +05:30
2026-09-17 08:53:48 -07:00
2026-09-17 08:53:48 -07:00
2026-09-17 09:06:59 -07:00
2026-09-16 08:57:18 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 05:09:06 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 05:38:31 -07:00
2026-09-17 09:04:11 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 23:13:20 -04:00
2026-09-15 04:12:13 -07:00
2026-09-13 05:09:06 -07:00
2026-09-16 17:02:34 -07:00
2026-09-16 23:19:45 +05:30
2026-09-15 04:12:13 -07:00
2026-09-15 12:06:08 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 20:51:06 -07:00
2026-09-12 21:39:10 -07:00
2026-09-14 08:10:36 -07:00
2026-09-15 20:44:42 +05:30
2026-09-15 04:12:13 -07:00
2026-09-16 08:57:18 -07:00
2026-09-16 00:33:03 -07:00
2026-09-16 08:57:18 -07:00
2026-09-16 08:57:18 -07:00
2026-09-15 03:44:36 -07:00
2026-09-15 04:07:13 -07:00
2026-09-16 16:52:59 -07:00
2026-09-17 00:32:12 -04:00
2026-09-16 16:43:08 -07:00
2026-09-17 08:49:38 -07:00
2026-09-17 20:56:27 +05:30
2026-09-16 00:32:15 -07:00
2026-09-16 17:11:01 -07:00
2026-09-16 16:58:43 -07:00
2026-09-17 08:55:01 -07:00
2026-09-14 16:14:33 -07:00
2026-09-16 16:51:45 -07:00
2026-09-17 08:52:53 -07:00
2026-09-13 05:09:06 -07:00
2026-09-15 18:35:32 -07:00
2026-09-15 18:34:40 -07:00
2026-09-15 18:33:43 -07:00
2026-09-15 18:34:40 -07:00
2026-09-16 16:56:22 -07:00
2026-09-17 20:56:27 +05:30
2026-09-15 04:12:13 -07:00
2026-09-17 00:02:09 -07:00
2026-09-15 04:12:13 -07:00
2026-09-17 09:19:19 -07:00
2026-09-15 18:35:59 -07:00
2026-09-12 08:25:54 -07:00
2026-09-16 17:09:50 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 16:18:17 -05:00
2026-09-17 09:06:59 -07:00
2026-09-15 06:29:50 -07:00
2026-09-17 08:44:33 -07:00
2026-09-16 15:16:09 -05:00
2026-09-16 15:16:09 -05:00
2026-09-15 04:12:13 -07:00
2026-09-15 19:06:54 -07:00
2026-09-15 03:38:29 -07:00
2026-09-17 09:03:29 -07:00
2026-09-16 17:11:01 -07:00
2026-09-15 05:34:29 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 20:54:50 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 03:39:45 -07:00
2026-09-16 17:11:01 -07:00
2026-09-16 17:06:26 -07:00
2026-09-17 08:55:04 -07:00
2026-09-16 10:52:32 -07:00
2026-09-15 18:58:02 -07:00
2026-09-17 08:59:22 -07:00
2026-09-14 22:01:32 +00:00
2026-09-16 18:12:34 -07:00
2026-09-16 00:32:15 -07:00
2026-09-16 14:18:39 -07:00
2026-09-16 17:15:38 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 00:11:27 -07:00
2026-09-15 18:48:59 -07:00
2026-09-17 09:03:29 -07:00
2026-09-16 17:08:25 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 00:11:27 -07:00
2026-09-16 17:08:25 -07:00
2026-09-16 00:32:15 -07:00
2026-09-13 14:33:11 -07:00
2026-09-16 14:21:14 -07:00
2026-09-16 14:34:59 -07:00
2026-09-15 06:22:15 -07:00
2026-09-16 14:34:22 -07:00
2026-09-16 17:02:38 -07:00
2026-09-13 05:08:29 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:11 -07:00
2026-09-15 06:36:19 -07:00
2026-09-16 17:19:58 -07:00
2026-09-14 19:49:12 +05:30
2026-09-15 03:44:36 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 05:07:50 -07:00
2026-09-17 09:02:26 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 00:35:00 -07:00
2026-09-15 18:30:05 -07:00
2026-09-17 21:17:15 +05:30
2026-09-16 17:02:13 -07:00
2026-09-15 18:25:46 -07:00
2026-09-13 05:32:38 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 17:57:48 -07:00
2026-09-12 08:25:54 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-12 08:25:54 -07:00
2026-09-13 05:08:29 -07:00
2026-09-12 21:47:53 -07:00
2026-09-13 05:21:02 -07:00
2026-09-14 08:10:36 -07:00
2026-09-16 17:58:25 +00:00
2026-09-15 03:53:13 -07:00
2026-09-15 18:55:47 -07:00
2026-09-16 00:32:15 -07:00
2026-09-15 14:52:26 +05:30
2026-09-15 04:12:13 -07:00
2026-09-12 08:34:43 -07:00
2026-09-16 16:42:47 -07:00
2026-09-16 16:42:47 -07:00
2026-09-12 08:25:54 -07:00
2026-09-17 00:02:09 -07:00
2026-09-17 00:02:09 -07:00
2026-09-17 08:44:06 -07:00
2026-09-13 05:08:20 -07:00
2026-09-17 00:02:09 -07:00
2026-09-16 17:44:36 -07:00
2026-09-17 00:02:09 -07:00
2026-09-16 17:13:56 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 00:11:27 -07:00
2026-09-17 00:02:09 -07:00
2026-09-17 00:02:09 -07:00
2026-09-15 04:12:13 -07:00
2026-09-17 00:02:09 -07:00
2026-09-13 19:19:32 -07:00
2026-09-15 03:40:26 -07:00
2026-09-16 08:57:18 -07:00
2026-09-15 18:48:59 -07:00
2026-09-15 04:37:41 -07:00
2026-09-17 00:34:50 -05:00
2026-09-17 00:34:50 -05:00
2026-09-14 08:10:36 -07:00
2026-09-12 18:35:21 -07:00
2026-09-15 20:44:42 +05:30
2026-09-16 16:44:53 -07:00
2026-09-16 17:11:08 -07:00
2026-09-13 21:30:02 -07:00
2026-09-13 20:55:29 -07:00
2026-09-15 18:27:06 -07:00
2026-09-16 16:43:08 -07:00