From 0eb87a459079a12340bca55d72a545ddc050371c Mon Sep 17 00:00:00 2001 From: creatixchu Date: Mon, 14 Sep 2026 21:34:38 +0800 Subject: [PATCH] test: fix upload expectations and exited process cleanup --- apps/cli/tests/profiles/headless/goal-snapshot.patch.yml | 4 ++++ .../profiles/headless/semantic-checkpoint-snapshot.patch.yml | 4 ++++ .../profiles/headless/subagent-diagnostic-snapshot.patch.yml | 4 ++++ .../profiles/headless/subagent-inheritance-snapshot.patch.yml | 4 ++++ .../profiles/headless/subagent-settlement-snapshot.patch.yml | 4 ++++ .../headless/workspace-context-resume-snapshot.patch.yml | 4 ++++ packages/subprocess/subprocess-local/tests/spawn.spec.ts | 3 ++- 7 files changed, 26 insertions(+), 1 deletion(-) diff --git a/apps/cli/tests/profiles/headless/goal-snapshot.patch.yml b/apps/cli/tests/profiles/headless/goal-snapshot.patch.yml index 220969cfef..7db9691a6c 100644 --- a/apps/cli/tests/profiles/headless/goal-snapshot.patch.yml +++ b/apps/cli/tests/profiles/headless/goal-snapshot.patch.yml @@ -24,3 +24,7 @@ - insert: - id: llm-replay name: '@deepseek-ai/dsh-llm-replay' + +- id: session-log-deepseek + config: + enabled: false diff --git a/apps/cli/tests/profiles/headless/semantic-checkpoint-snapshot.patch.yml b/apps/cli/tests/profiles/headless/semantic-checkpoint-snapshot.patch.yml index 3e637e28aa..0c818b1641 100644 --- a/apps/cli/tests/profiles/headless/semantic-checkpoint-snapshot.patch.yml +++ b/apps/cli/tests/profiles/headless/semantic-checkpoint-snapshot.patch.yml @@ -23,3 +23,7 @@ # Publish the persisted agent before the driver selects the single root. - id: resumed-agent name: './tests/fixtures/semantic-checkpoint-agent.ts' + +- id: session-log-deepseek + config: + enabled: false diff --git a/apps/cli/tests/profiles/headless/subagent-diagnostic-snapshot.patch.yml b/apps/cli/tests/profiles/headless/subagent-diagnostic-snapshot.patch.yml index ac47e8d5a2..49b42c91e2 100644 --- a/apps/cli/tests/profiles/headless/subagent-diagnostic-snapshot.patch.yml +++ b/apps/cli/tests/profiles/headless/subagent-diagnostic-snapshot.patch.yml @@ -26,3 +26,7 @@ # Publish the persisted agent before the driver selects the single root. - id: resumed-agent name: './tests/fixtures/subagent-diagnostic-agent.ts' + +- id: session-log-deepseek + config: + enabled: false diff --git a/apps/cli/tests/profiles/headless/subagent-inheritance-snapshot.patch.yml b/apps/cli/tests/profiles/headless/subagent-inheritance-snapshot.patch.yml index 352841f745..e41c1f97f2 100644 --- a/apps/cli/tests/profiles/headless/subagent-inheritance-snapshot.patch.yml +++ b/apps/cli/tests/profiles/headless/subagent-inheritance-snapshot.patch.yml @@ -32,3 +32,7 @@ # Publish the persisted agent before the driver selects the single root. - id: resumed-agent name: './tests/fixtures/subagent-inheritance-agent.ts' + +- id: session-log-deepseek + config: + enabled: false diff --git a/apps/cli/tests/profiles/headless/subagent-settlement-snapshot.patch.yml b/apps/cli/tests/profiles/headless/subagent-settlement-snapshot.patch.yml index 85a412e994..498c600d7b 100644 --- a/apps/cli/tests/profiles/headless/subagent-settlement-snapshot.patch.yml +++ b/apps/cli/tests/profiles/headless/subagent-settlement-snapshot.patch.yml @@ -28,3 +28,7 @@ # Hold the parent's second step until the manager notice enters its inbox. - id: settlement-fence name: './tests/fixtures/subagent-settlement-fence.ts' + +- id: session-log-deepseek + config: + enabled: false diff --git a/apps/cli/tests/profiles/headless/workspace-context-resume-snapshot.patch.yml b/apps/cli/tests/profiles/headless/workspace-context-resume-snapshot.patch.yml index 7e8d306cc3..6507b366d6 100644 --- a/apps/cli/tests/profiles/headless/workspace-context-resume-snapshot.patch.yml +++ b/apps/cli/tests/profiles/headless/workspace-context-resume-snapshot.patch.yml @@ -28,3 +28,7 @@ # Publish the persisted agent before the driver selects the single root. - id: resumed-agent name: './tests/fixtures/workspace-context-resume-agent.ts' + +- id: session-log-deepseek + config: + enabled: false diff --git a/packages/subprocess/subprocess-local/tests/spawn.spec.ts b/packages/subprocess/subprocess-local/tests/spawn.spec.ts index 877cf6a778..d57e66a6cd 100644 --- a/packages/subprocess/subprocess-local/tests/spawn.spec.ts +++ b/packages/subprocess/subprocess-local/tests/spawn.spec.ts @@ -136,7 +136,8 @@ async function waitGone(pid: number, timeoutMs = 5_000): Promise { const state = stat.slice(stat.lastIndexOf(')') + 2, stat.lastIndexOf(')') + 3) if (state === 'Z' || state === 'X') return } catch (error: unknown) { - if ((error as NodeJS.ErrnoException).code === 'ENOENT') return + const code = (error as NodeJS.ErrnoException).code + if (code === 'ENOENT' || code === 'ESRCH') return throw error } }