Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): don't kill persistent CLI when running e2e tests

Louis Beaumont86f2a89fbd1f
diff --git a/.github/scripts/e2e/test-lifecycle.ts b/.github/scripts/e2e/test-lifecycle.ts
index 2669959fd..70d9264cf 100644
--- a/.github/scripts/e2e/test-lifecycle.ts
+++ b/.github/scripts/e2e/test-lifecycle.ts
@@ -209,7 +209,7 @@ await test("force quit + recovery (DB intact)", async () => {
Bun.spawnSync(["powershell", "-NoProfile", "-Command",
"Get-Process -Name 'screenpipe*' -ErrorAction SilentlyContinue | Stop-Process -Force"]);
} else {
- Bun.spawnSync(["pkill", "-9", "-f", "screenpipe"]);
+ Bun.spawnSync(["pkill", "-9", "-f", "screenpipe-app"]);
}
await sleep(3000);
@@ -390,7 +390,7 @@ await test("clean quit leaves no orphans (S8.1)", async () => {
Bun.spawnSync(["taskkill", "/PID", String(pid)]);
}
} else {
- Bun.spawnSync(["pkill", "-TERM", "-f", "screenpipe"]);
+ Bun.spawnSync(["pkill", "-TERM", "-f", "screenpipe-app"]);
}
await sleep(10_000);
diff --git a/.github/workflows/e2e-macos.yml b/.github/workflows/e2e-macos.yml
index 658cb43ae..36a89ad97 100644
--- a/.github/workflows/e2e-macos.yml
+++ b/.github/workflows/e2e-macos.yml
@@ -184,8 +184,8 @@ jobs:
fi
echo "✓ Built: $APP_PATH"
- # Kill any existing screenpipe
- pkill -f "screenpipe" 2>/dev/null || true
+ # Kill any existing screenpipe app (not the persistent CLI on port 3333)
+ pkill -f "screenpipe-app" 2>/dev/null || true
sleep 2
# Install to /Applications
@@ -319,8 +319,9 @@ jobs:
- name: Launch app and start server
run: |
- # Kill any leftover screenpipe processes from previous runs
- pkill -f "screenpipe" 2>/dev/null || true
+ # Kill any leftover screenpipe app processes from previous runs
+ # Note: persistent CLI runs on port 3333 — don't kill it
+ pkill -f "screenpipe-app" 2>/dev/null || true
sleep 2
# 1. Start CLI server on port 3030 (reliable, no TCC permission needed)
@@ -559,9 +560,8 @@ jobs:
fi
# Kill the CLI server (skip if PID is 0 — kill 0 sends SIGTERM to the process group)
if [ -n "$SERVER_PID" ] && [ "$SERVER_PID" -gt 0 ] 2>/dev/null; then kill $SERVER_PID 2>/dev/null || true; fi
- # Kill the app
+ # Kill the app (not the persistent CLI on port 3333)
pkill -f "screenpipe-app" 2>/dev/null || true
- pkill -f "screenpipe" 2>/dev/null || true
killall "System Settings" 2>/dev/null || true
sleep 2