debug opentui windows crash
This commit is contained in:
parent
3a209b42b8
commit
53dd9cc462
1 changed files with 15 additions and 0 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
|
@ -63,6 +63,21 @@ jobs:
|
||||||
turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}-
|
turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}-
|
||||||
turbo-${{ runner.os }}-
|
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
|
- name: Run unit tests
|
||||||
run: bun turbo test:ci
|
run: bun turbo test:ci
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue