Parcourir la source

Fix CI demo smoke session assertion

Yichen Jiang il y a 2 mois
Parent
commit
ca4ebb67dc
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      .github/workflows/ci.yml

+ 3 - 3
.github/workflows/ci.yml

@@ -89,9 +89,9 @@ jobs:
           echo "$out"
           echo "$out"
           echo "$out" | grep -q '\[tool call\] echo({"text":"ci smoke"})'
           echo "$out" | grep -q '\[tool call\] echo({"text":"ci smoke"})'
           echo "$out" | grep -q '\[tool result\] ECHO: CI SMOKE'
           echo "$out" | grep -q '\[tool result\] ECHO: CI SMOKE'
-          # The JSONL backend (root ./.sessions, no cwd → _no-cwd bucket) writes a
-          # per-run session log named main-session-<uuid>.jsonl. Assert one exists.
-          ls .sessions/_no-cwd/main-session-*.jsonl >/dev/null
+          # The stdio app records process.cwd(); the JSONL backend stores that
+          # session under the cwd bucket as main-session-<uuid>.jsonl.
+          test -n "$(find .sessions -path '.sessions/cwd-*/main-session-*.jsonl' -type f -print -quit)"
           rm -rf .sessions
           rm -rf .sessions
 
 
       # The published `bin` is `lib/bin.js`, run under plain `node` by a real
       # The published `bin` is `lib/bin.js`, run under plain `node` by a real