AAA
4dbfd8157f
fix(deploy): a cleanup with nothing to remove says so when recovery runs from a trap
...
cleanup_release left through a bare return when the release was no longer
owned by the run or did not exist. Inside a trap handler bash gives a bare
return the status of the last command executed before the trap, which for
recovery is the command that failed. So recover read "nothing to remove"
as a failed cleanup, printed cleanup_ok=0 and exited 90 in place of the
failure's own code, for every failure after the new program had been
started.
Seen as tests/release-server.test.ts failing on bash 5.2.37 in the
scenario "a start attempt may write durable data": deployment_failed=1
phase=starting cleanup_ok=0, exit 90 where 1 is expected. A four-line
script shows the rule alone: a function that leaves by a bare return gives
0 when called directly and 1 when called from an EXIT trap after `false`.
Every early exit of cleanup_stage and cleanup_release now states its
status. The test's stand-ins for readlink, ln and mv return the status of
the command they ran, for the same reason: recover reads ln's and mv's.
History
..
2026-11-29 06:47:24 -05:00
2026-11-29 09:47:54 -05:00
2026-11-28 22:01:14 -05:00
2026-11-28 22:01:14 -05:00
2026-11-13 14:06:18 -04:00
2026-11-29 06:39:46 -05:00
2026-11-29 09:47:54 -05:00
2026-11-29 05:53:08 -05:00
2026-11-16 07:03:38 -04:00
2026-11-08 07:30:09 -04:00
2026-10-19 01:58:33 +08:00
2026-11-01 12:00:26 -04:00
2026-11-28 16:21:30 -05:00
2026-11-29 05:53:08 -05:00
2026-10-02 01:36:45 +08:00
2026-11-28 23:55:37 -05:00
2026-11-25 02:51:19 -05:00
2026-11-20 15:30:36 -05:00
2026-10-24 12:30:39 -04:00
2026-11-27 19:20:14 -05:00
2026-11-28 22:01:14 -05:00
2026-11-23 18:36:15 -05:00
2026-11-03 19:03:16 -04:00
2026-11-29 22:18:43 +08:00
2026-11-29 06:16:34 -05:00
2026-11-28 05:45:06 -05:00
2026-11-29 09:47:54 -05:00
2026-11-27 04:08:31 -05:00
2026-11-29 22:18:43 +08:00
2026-11-29 06:39:46 -05:00
2026-11-27 15:00:54 -05:00
2026-11-29 09:47:54 -05:00
2026-11-29 09:47:54 -05:00
2026-11-15 02:43:09 -04:00
2026-11-29 06:39:46 -05:00
2026-11-27 04:08:31 -05:00
2026-11-29 09:47:54 -05:00
2026-11-28 18:07:21 -05:00
2026-11-29 22:18:43 +08:00
2026-11-29 09:47:54 -05:00
2026-11-29 09:47:54 -05:00
2026-11-29 23:16:25 +08:00
2026-11-29 09:47:54 -05:00
2026-11-26 18:57:48 -05:00
2026-11-29 22:19:14 +08:00
2026-11-29 06:39:46 -05:00
2026-11-29 02:50:22 -05:00
2026-11-21 11:15:48 -05:00
2026-11-28 22:01:14 -05:00
2026-11-29 02:50:22 -05:00
2026-11-29 05:53:08 -05:00
2026-11-27 15:00:54 -05:00
2026-11-29 08:06:41 -05:00
2026-11-23 09:41:30 -05:00
2026-10-30 22:32:06 -04:00
2026-11-16 07:03:38 -04:00
2026-11-29 08:06:41 -05:00
2026-11-23 10:24:43 -05:00
2026-11-26 20:40:05 -05:00
2026-11-25 11:29:54 -05:00
2026-11-24 15:25:02 -05:00
2026-11-26 14:23:05 -05:00
2026-11-29 06:16:34 -05:00
2026-11-29 06:16:34 -05:00
2026-11-25 18:44:03 +08:00
2026-11-25 23:06:38 -05:00
2026-11-29 09:47:54 -05:00
2026-11-22 17:07:49 -05:00
2026-11-25 18:30:26 +08:00
2026-11-16 07:03:38 -04:00
2026-11-25 18:44:03 +08:00
2026-09-01 23:42:36 +08:00
2026-11-23 09:41:30 -05:00
2026-11-23 14:30:51 -05:00
2026-11-27 15:00:54 -05:00
2026-11-27 10:17:10 -05:00
2026-11-28 15:32:23 -05:00
2026-11-29 06:16:34 -05:00
2026-11-29 06:16:34 -05:00
2026-11-27 15:00:54 -05:00
2026-11-28 15:50:56 -05:00
2026-11-26 09:37:17 -05:00
2026-11-03 18:20:06 -04:00
2026-11-16 07:03:38 -04:00
2026-11-28 16:21:30 -05:00
2026-11-16 12:08:58 -04:00
2026-10-26 13:37:33 -04:00
2026-09-12 22:09:12 +08:00
2026-10-19 01:58:33 +08:00
2026-11-25 22:44:51 -05:00
2026-10-19 01:58:33 +08:00
2026-11-03 20:32:46 -04:00
2026-11-08 15:29:47 -04:00
2026-11-29 09:47:54 -05:00
2026-11-29 09:47:54 -05:00
2026-11-29 05:53:08 -05:00
2026-11-24 22:50:55 -05:00
2026-11-29 06:39:46 -05:00
2026-11-18 07:42:27 -04:00
2026-11-29 09:47:54 -05:00
2026-11-13 09:59:23 -04:00
2026-11-29 23:18:01 +08:00
2026-09-16 13:13:06 +08:00
2026-11-29 06:39:46 -05:00
2026-11-23 17:37:23 -05:00
2026-11-03 20:27:39 -04:00
2026-11-29 06:47:24 -05:00
2026-11-26 19:25:48 -05:00
2026-11-29 09:47:54 -05:00
2026-11-24 15:25:02 -05:00
2026-11-26 19:25:48 -05:00
2026-10-26 13:37:33 -04:00
2026-11-26 11:14:03 -05:00
2026-11-27 11:20:53 -05:00
2026-11-25 07:50:55 +08:00
2026-11-25 16:27:39 +08:00
2026-11-28 15:32:23 -05:00
2026-11-25 18:30:26 +08:00
2026-11-25 21:35:56 -05:00
2026-11-29 08:06:41 -05:00
2026-11-25 13:38:47 +08:00
2026-11-28 22:01:14 -05:00
2026-11-26 18:57:48 -05:00
2026-11-29 14:42:14 +08:00
2026-11-27 11:20:53 -05:00
2026-11-27 15:00:54 -05:00
2026-11-29 14:42:14 +08:00
2026-10-14 08:09:45 -04:00
2026-11-22 20:28:37 -05:00
2026-11-25 22:00:26 -05:00
2026-11-20 17:13:11 -05:00
2026-11-25 18:30:26 +08:00
2026-11-21 05:04:33 -05:00
2026-11-24 13:28:35 -05:00
2026-11-25 21:32:17 -05:00
2026-11-29 23:08:25 +08:00
2026-11-25 13:59:43 +08:00
2026-11-25 02:51:19 -05:00
2026-11-27 09:13:45 -05:00
2026-11-29 08:06:41 -05:00
2026-11-29 06:16:34 -05:00
2026-11-24 13:28:35 -05:00
2026-11-27 10:05:04 -05:00
2026-11-27 15:15:14 -05:00
2026-11-29 08:06:41 -05:00
2026-11-29 06:16:34 -05:00
2026-11-29 08:06:41 -05:00
2026-11-28 22:07:42 -05:00
2026-11-21 03:26:54 -05:00
2026-11-22 12:12:44 -05:00
2026-11-28 11:42:20 -05:00
2026-11-28 22:07:42 -05:00
2026-11-29 09:47:54 -05:00
2026-11-29 08:06:41 -05:00
2026-11-29 06:16:34 -05:00
2026-11-28 11:42:20 -05:00
2026-11-29 09:47:54 -05:00
2026-11-27 18:23:11 -05:00
2026-11-29 16:48:05 +08:00
2026-11-29 06:39:46 -05:00
2026-11-29 23:16:25 +08:00
2026-11-22 17:07:49 -05:00
2026-11-29 06:16:34 -05:00
2026-11-22 11:08:50 -05:00
2026-11-28 23:55:41 -05:00
2026-11-27 22:00:19 -05:00
2026-11-28 22:07:42 -05:00