Przeglądaj źródła

Fix CI demo smoke session assertion

Yichen Jiang 2 miesięcy temu
rodzic
commit
ca4ebb67dc
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      .github/workflows/ci.yml

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

@@ -89,9 +89,9 @@ jobs:
           echo "$out"
           echo "$out" | grep -q '\[tool call\] echo({"text":"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
 
       # The published `bin` is `lib/bin.js`, run under plain `node` by a real