Teknium
b82d35571c
test: browser tree-kill unit tests no longer SIGKILL real processes under PID 999
...
Two mocked tests drive _legacy_kill_process_tree down its shared-group
branch with a MagicMock proc whose pid is 999. That branch snapshots
psutil.Process(proc.pid).children(recursive=True) and SIGKILLs each
descendant, and psutil was never patched: the tests killed the real
descendants of whatever the machine runs as PID 999. On macOS runners
PIDs are allocated system-wide, and when 999 was an ancestor of the
test worker the file died mid-run (CRASHED, killed by SIGKILL), which
is how it surfaced on a PR whose diff never touches the browser tool.
Both tests now run against a fake process table, and the shared-group
test asserts the snapshotted descendant is killed individually (the
contract it was written for).
Live repro: inside an unprivileged user+PID namespace with PID 999 an
ancestor of the test runner, main's file reports CRASHED (killed by
SIGKILL); with this change it passes 9/9.
2026-10-06 04:36:02 -07:00
..
2026-10-05 16:46:53 -05:00
2026-09-30 21:33:08 -04:00
2026-10-05 01:15:16 -07:00
2026-10-01 16:18:46 +05:30
2026-09-30 09:57:30 -05:00
2026-09-29 03:01:04 +05:30
2026-10-04 21:29:04 -07:00
2026-10-01 16:18:46 +05:30
2026-10-01 03:18:09 -05:00
2026-09-29 15:58:55 +05:30
2026-09-29 15:58:55 +05:30
2026-10-06 04:36:02 -07:00
2026-10-02 22:54:53 -05:00
2026-10-05 17:10:58 -07:00
2026-10-02 11:06:58 -05:00
2026-09-29 14:12:41 -04:00
2026-09-29 14:12:41 -04:00
2026-09-29 18:33:44 +05:30
2026-09-29 19:44:05 -05:00
2026-09-29 15:58:55 +05:30
2026-09-28 10:11:33 -07:00
2026-10-05 17:20:30 -07:00
2026-10-02 20:30:25 -05:00
2026-10-05 17:20:30 -07:00
2026-10-05 17:20:30 -07:00
2026-10-05 17:20:30 -07:00
2026-10-03 16:56:51 +05:30
2026-10-02 01:18:03 +05:30
2026-10-03 16:31:09 +05:30
2026-10-05 16:40:38 -05:00
2026-10-02 20:24:30 -05:00
2026-10-02 21:49:36 -05:00
2026-10-02 01:24:41 +05:30
2026-10-01 01:53:55 -05:00
2026-10-02 21:43:34 -05:00
2026-09-29 12:25:29 -05:00
2026-10-05 16:46:53 -05:00
2026-10-02 01:15:39 +05:30
2026-10-02 21:47:39 -05:00
2026-10-04 05:13:55 -07:00
2026-10-02 01:15:39 +05:30
2026-10-04 00:08:20 -07:00
2026-10-05 01:15:16 -07:00
2026-10-01 16:22:28 +05:30
2026-10-02 01:18:03 +05:30
2026-10-01 16:22:28 +05:30
2026-10-02 20:24:01 -05:00
2026-09-29 16:47:48 +05:30
2026-10-04 00:08:20 -07:00
2026-09-29 18:49:11 -05:00
2026-10-05 16:42:57 -05:00
2026-10-04 00:08:20 -07:00
2026-10-03 10:26:12 -07:00
2026-09-29 15:58:55 +05:30
2026-09-29 15:58:55 +05:30
2026-09-29 15:58:55 +05:30
2026-10-03 09:38:33 -07:00
2026-10-04 12:42:25 -05:00
2026-10-05 16:47:32 -05:00
2026-10-05 15:28:17 -07:00
2026-10-05 15:36:45 -07:00
2026-09-29 02:06:58 +05:30
2026-10-03 23:05:48 -07:00
2026-09-28 11:29:49 -05:00
2026-09-30 10:32:09 -05:00
2026-10-03 09:38:33 -07:00
2026-10-03 09:43:03 -07:00
2026-10-05 00:23:05 -07:00
2026-09-30 23:07:09 -05:00
2026-10-03 10:52:57 -07:00
2026-10-06 00:00:57 -04:00
2026-10-05 14:35:39 -04:00
2026-10-01 00:52:58 -05:00
2026-10-03 17:03:54 -04:00
2026-10-05 16:42:57 -05:00
2026-10-05 20:08:11 +05:30
2026-10-05 18:39:43 -05:00
2026-09-29 12:25:29 -05:00
2026-10-04 13:18:57 -04:00
2026-10-04 00:08:20 -07:00
2026-10-04 00:08:20 -07:00
2026-09-30 23:05:43 -05:00
2026-09-30 23:10:24 -05:00
2026-09-29 20:57:45 -05:00
2026-10-05 15:56:28 -07:00
2026-10-05 15:56:28 -07:00
2026-10-04 02:54:56 +05:30
2026-09-29 02:06:58 +05:30
2026-09-29 15:28:19 -05:00
2026-10-03 16:30:40 +02:00
2026-10-05 20:08:11 +05:30
2026-09-29 15:58:55 +05:30
2026-10-02 22:42:55 -05:00
2026-09-29 17:29:05 +00:00
2026-09-29 22:07:30 +05:30
2026-10-05 16:40:15 -05:00
2026-10-05 12:37:46 -04:00
2026-10-02 18:35:34 -05:00
2026-09-30 23:02:33 -05:00
2026-09-28 12:23:25 -07:00
2026-10-06 00:52:41 -07:00
2026-10-05 16:42:22 -05:00
2026-10-06 00:52:41 -07:00
2026-09-28 12:33:01 -07:00
2026-09-28 14:16:18 -07:00
2026-10-02 18:35:45 -05:00
2026-09-29 19:14:28 -05:00
2026-09-29 19:14:28 -05:00
2026-10-04 00:10:54 +05:30
2026-10-02 18:58:06 -05:00
2026-10-04 00:10:54 +05:30
2026-10-06 04:15:29 -07:00
2026-10-02 21:12:48 -05:00
2026-10-03 23:43:03 -04:00
2026-10-05 20:08:11 +05:30