Browse Source

test: fix upload expectations and exited process cleanup

creatixchu 3 days ago
parent
commit
0eb87a4590

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 4 - 0
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

+ 2 - 1
packages/subprocess/subprocess-local/tests/spawn.spec.ts

@@ -136,7 +136,8 @@ async function waitGone(pid: number, timeoutMs = 5_000): Promise<void> {
         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
       }
     }