Ver código fonte

debug opentui windows crash

Sebastian Herrlinger 3 meses atrás
pai
commit
53dd9cc462
1 arquivos alterados com 15 adições e 0 exclusões
  1. 15 0
      .github/workflows/test.yml

+ 15 - 0
.github/workflows/test.yml

@@ -63,6 +63,21 @@ jobs:
             turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}-
             turbo-${{ runner.os }}-
 
+      - name: Run OpenTUI crash diagnostics
+        if: runner.os == 'Windows'
+        continue-on-error: true
+        working-directory: packages/opencode
+        run: |
+          set -euxo pipefail
+          bun --revision
+          bun -e 'console.log({ platform: process.platform, arch: process.arch, versions: process.versions })'
+          bun -e 'console.log("@opentui/core-win32-x64", (await import("@opentui/core-win32-x64")).default)'
+          bun -e 'import { EditBuffer } from "@opentui/core"; let cursor = 0; let content = 0; for (let i = 0; i < 5000; i++) { const b = EditBuffer.create("unicode"); b.on("cursor-changed", () => cursor++); b.on("content-changed", () => content++); b.setText(`draft-${i}`); await Bun.sleep(0); b.destroy(); } console.log({ cursor, content })'
+          for i in 1 2 3 4 5; do
+            echo "dialog-prompt targeted run $i"
+            bun test --timeout 30000 test/cli/tui/dialog-prompt.test.tsx
+          done
+
       - name: Run unit tests
         run: bun turbo test:ci
         env: