NolanHo
6497046c9e
fix(search-engines): settle streamLines on close, propagate fd dirs-run failures ( #883 )
...
streamLines settled its promise on the child's 'exit' event. Node fires
'exit' the moment the process dies, while the stdout pipe may still hold
undrained data — under host load the exit event can win that race and the
promise resolved with a still-empty lines array. fd's second --type d run
was the common victim (both children race, the match run usually drains
first), so the observable signature was matches intact with dirs: [] —
directory hits silently degraded into open-as-file errors, the exact
error surface #801 fixed, now intermittent.
Settlement moves to 'close' (process dead AND stdio drained, so every
readline line event has fired). The truncation kill, the timeout and the
spawn-error paths keep their semantics: whichever finish() ran first
sets the closed flag and the close handler is idempotent. The --version
probe keeps 'exit' — its stdio is 'ignore', the exit code is the only
signal it reads.
The fd branch also no longer swallows the directory run's failure: the
.catch(() => empty dir list) is deleted, so a rejection now reaches
runEngine's existing broken-marking and this one search falls back to
the plain walk — symmetric with the main run, where the old catch
degraded every failure into an invisible "zero directories".
Evidence: on an fd-equipped Linux host the real-engine suite reproduced
7/30 runs on clean dev (signature constant), 0/30 after the one-line
close change; upstream CI never saw it (ubuntu lane has no fd; ci-windows
runs serially). Two deterministic cases now pin the contracts through the
new spawner hook (scripted PassThrough children replay the racy event
order directly); each was verified red by temporarily reverting the
corresponding half of the fix.
2026-10-06 10:50:51 -07:00
..
2026-10-06 00:07:23 +08:00
2026-08-18 20:29:14 +08:00
2026-10-06 00:54:24 +08:00
2026-10-05 02:35:18 +08:00
2026-09-03 20:29:50 +08:00
2026-08-27 21:44:04 +08:00
2026-08-15 00:28:59 +08:00
2026-10-05 02:22:03 +08:00
2026-09-09 11:15:30 +08:00
2026-10-05 02:22:03 +08:00
2026-08-21 23:49:13 +08:00
2026-08-12 18:27:28 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:42:45 +08:00
2026-10-05 23:42:45 +08:00
2026-09-09 23:09:48 +08:00
2026-10-05 22:39:22 +08:00
2026-09-28 18:20:08 +08:00
2026-10-05 22:39:22 +08:00
2026-10-05 23:42:45 +08:00
2026-10-05 02:22:03 +08:00
2026-10-05 02:19:58 +08:00
2026-10-05 02:19:58 +08:00
2026-10-05 23:03:40 +08:00
2026-09-07 18:52:18 +08:00
2026-09-14 00:08:38 +08:00
2026-09-03 12:04:35 +08:00
2026-09-07 23:51:10 +08:00
2026-10-05 23:43:14 +08:00
2026-09-01 23:05:26 +08:00
2026-10-05 01:29:00 +08:00
2026-09-29 17:54:53 +08:00
2026-09-03 17:32:04 +08:00
2026-10-06 00:55:49 +08:00
2026-09-15 10:42:46 +08:00
2026-10-05 22:36:10 +08:00
2026-10-06 01:19:38 +08:00
2026-08-11 11:16:36 +08:00
2026-09-09 15:18:06 +08:00
2026-09-21 02:14:46 +08:00
2026-10-05 01:58:18 +08:00
2026-10-05 02:13:53 +08:00
2026-09-11 15:28:49 +08:00
2026-10-01 17:21:10 +08:00
2026-09-30 01:52:59 +08:00
2026-09-30 01:56:11 +08:00
2026-10-05 02:13:53 +08:00
2026-10-05 02:13:53 +08:00
2026-10-05 02:22:03 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-05 22:57:58 +08:00
2026-10-01 17:13:10 +08:00
2026-10-01 17:15:49 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-05 22:57:58 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-05 22:58:01 +08:00
2026-09-02 10:55:03 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-09-29 17:04:42 +08:00
2026-10-05 23:11:11 +08:00
2026-10-05 22:57:58 +08:00
2026-08-18 18:05:01 +08:00
2026-09-27 22:18:57 +08:00
2026-08-22 22:50:13 +08:00
2026-10-05 23:36:02 +08:00
2026-09-28 20:37:56 +08:00
2026-10-01 18:41:27 +08:00
2026-10-05 02:37:39 +08:00
2026-10-05 02:13:53 +08:00
2026-10-05 02:13:53 +08:00
2026-08-16 23:35:57 +08:00
2026-09-28 20:37:56 +08:00
2026-09-28 20:37:56 +08:00
2026-10-01 17:26:29 +08:00
2026-10-05 01:58:18 +08:00
2026-10-05 22:25:51 +08:00
2026-10-05 02:41:34 +08:00
2026-10-05 02:41:34 +08:00
2026-09-14 00:08:38 +08:00
2026-10-05 02:50:34 +08:00
2026-10-05 02:19:58 +08:00
2026-10-05 22:19:26 +08:00
2026-10-05 22:19:26 +08:00
2026-10-05 22:19:26 +08:00
2026-09-12 17:30:58 +08:00
2026-10-01 18:41:27 +08:00
2026-10-05 01:54:17 +08:00
2026-09-11 12:02:41 +08:00
2026-09-01 16:01:34 +08:00
2026-09-09 15:18:06 +08:00
2026-10-05 23:42:45 +08:00
2026-09-22 17:09:08 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:19 +08:00
2026-08-13 10:26:57 +08:00
2026-10-06 00:54:24 +08:00
2026-09-02 23:15:19 +08:00
2026-10-05 02:22:03 +08:00
2026-08-24 12:05:14 +08:00
2026-10-06 00:19:11 +08:00
2026-09-09 15:18:06 +08:00
2026-10-06 00:19:11 +08:00
2026-10-06 00:19:11 +08:00
2026-10-06 00:54:24 +08:00
2026-09-28 21:21:45 +08:00
2026-09-03 12:04:35 +08:00
2026-09-28 18:08:21 +08:00
2026-08-18 01:22:28 +08:00
2026-09-23 22:24:56 +08:00
2026-08-18 01:22:28 +08:00
2026-10-06 00:06:37 +08:00
2026-10-01 17:25:16 +08:00
2026-10-05 02:19:58 +08:00
2026-09-13 18:36:46 +08:00
2026-10-05 23:03:40 +08:00
2026-09-03 19:59:00 +08:00
2026-10-05 02:22:03 +08:00
2026-10-05 22:58:01 +08:00
2026-10-05 23:36:02 +08:00
2026-09-28 00:27:31 +08:00
2026-09-28 18:08:21 +08:00
2026-09-28 18:20:08 +08:00
2026-09-21 20:35:11 +08:00
2026-10-05 21:46:26 +08:00
2026-10-01 22:05:56 +08:00
2026-10-05 02:22:03 +08:00
2026-08-16 23:35:57 +08:00
2026-09-03 19:59:00 +08:00
2026-09-23 20:46:11 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:38:04 +08:00
2026-09-23 22:36:05 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:35 +08:00
2026-09-06 23:46:46 +08:00
2026-10-05 01:55:36 +08:00
2026-10-05 01:55:36 +08:00
2026-09-09 23:09:48 +08:00
2026-10-05 23:43:14 +08:00
2026-10-06 10:50:51 -07:00
2026-08-13 01:39:59 +08:00
2026-09-03 12:04:35 +08:00
2026-09-28 20:11:46 +08:00
2026-10-01 18:41:27 +08:00
2026-08-16 16:24:28 +08:00
2026-09-09 11:15:30 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:13:23 +08:00
2026-10-05 11:32:16 +08:00
2026-09-09 15:18:06 +08:00
2026-09-07 18:52:18 +08:00
2026-10-05 00:56:36 +08:00
2026-10-01 17:18:08 +08:00
2026-10-01 17:17:57 +08:00
2026-09-22 17:09:08 +08:00
2026-10-05 01:41:40 +08:00
2026-10-05 23:38:04 +08:00
2026-10-05 23:13:23 +08:00
2026-09-22 17:09:08 +08:00
2026-09-27 22:19:05 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:18:35 +08:00
2026-10-05 21:53:08 +08:00
2026-09-09 15:18:06 +08:00
2026-10-05 23:03:40 +08:00
2026-09-09 15:18:06 +08:00
2026-09-21 20:35:11 +08:00
2026-09-27 22:18:35 +08:00
2026-09-27 22:19:05 +08:00
2026-10-05 00:54:34 +08:00
2026-09-30 02:24:36 +08:00
2026-09-27 22:19:05 +08:00
2026-10-06 00:06:37 +08:00
2026-09-03 12:04:24 +08:00
2026-10-05 22:25:51 +08:00
2026-10-05 01:58:18 +08:00
2026-10-03 20:54:00 +00:00
2026-10-05 01:42:41 +08:00
2026-09-27 22:18:57 +08:00
2026-10-01 17:18:31 +08:00
2026-09-28 18:20:08 +08:00
2026-08-20 18:28:57 +08:00
2026-09-27 22:18:14 +08:00
2026-09-27 22:18:14 +08:00
2026-10-05 02:22:03 +08:00