Skip to content

Commit 1627c84

Browse files
committed
chore(ci): temporary Windows check repro
1 parent 15367a9 commit 1627c84

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: cliopen win check repro
2+
on:
3+
push:
4+
branches: [cliopen/win-check-repro]
5+
permissions:
6+
contents: read
7+
env:
8+
HYPERFRAMES_NO_TELEMETRY: "1"
9+
jobs:
10+
repro:
11+
runs-on: windows-latest
12+
timeout-minutes: 40
13+
steps:
14+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
15+
- uses: ./.github/actions/install-ffmpeg-windows
16+
- name: Set FFMPEG_BIN
17+
shell: pwsh
18+
run: |
19+
$path = (Get-Command ffmpeg.exe).Source
20+
"FFMPEG_BIN=$path" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
21+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
22+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
23+
with:
24+
node-version: 22
25+
- shell: pwsh
26+
run: bun install --frozen-lockfile --linker=hoisted
27+
- shell: pwsh
28+
run: |
29+
bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
30+
bun run --cwd packages/core build
31+
bun run --filter @hyperframes/player build
32+
bun run --filter @hyperframes/studio build
33+
bun run --filter @hyperframes/inspector build
34+
bun run --filter @hyperframes/cli build
35+
- name: Scaffold
36+
shell: pwsh
37+
env:
38+
HYPERFRAMES_SKIP_SKILLS: "1"
39+
run: |
40+
New-Item -ItemType Directory -Force -Path "$env:RUNNER_TEMP\p" | Out-Null
41+
cd "$env:RUNNER_TEMP\p"
42+
node "$env:GITHUB_WORKSPACE\packages\cli\bin\hyperframes.mjs" init canary --example blank --non-interactive --skip-skills
43+
- name: check piped, repeated (CI unset)
44+
shell: pwsh
45+
env:
46+
CI: ""
47+
run: |
48+
cd "$env:RUNNER_TEMP\p\canary"
49+
$bin = "$env:GITHUB_WORKSPACE\packages\cli\bin\hyperframes.mjs"
50+
foreach ($i in 1..3) {
51+
$o = "$env:RUNNER_TEMP\out$i.txt"; $e = "$env:RUNNER_TEMP\err$i.txt"
52+
$sw = [Diagnostics.Stopwatch]::StartNew()
53+
$p = Start-Process node -ArgumentList $bin,"check" -RedirectStandardOutput $o -RedirectStandardError $e -PassThru -NoNewWindow
54+
if (-not $p.WaitForExit(150000)) { Write-Host "RUN $i HUNG after 150s"; Stop-Process -Id $p.Id -Force } else { Write-Host "RUN $i exit $($p.ExitCode) in $($sw.Elapsed.TotalSeconds)s" }
55+
Write-Host "--- stdout $i"; Get-Content $o -ErrorAction SilentlyContinue | Select -First 30
56+
Write-Host "--- stderr $i"; Get-Content $e -ErrorAction SilentlyContinue | Select -First 30
57+
}
58+
- name: check piped with CI=1
59+
if: always()
60+
shell: pwsh
61+
env:
62+
CI: "1"
63+
run: |
64+
cd "$env:RUNNER_TEMP\p\canary"
65+
$bin = "$env:GITHUB_WORKSPACE\packages\cli\bin\hyperframes.mjs"
66+
$p = Start-Process node -ArgumentList $bin,"check" -RedirectStandardOutput "$env:RUNNER_TEMP\o.txt" -RedirectStandardError "$env:RUNNER_TEMP\e.txt" -PassThru -NoNewWindow
67+
if (-not $p.WaitForExit(150000)) { Write-Host "CI=1 RUN HUNG"; Stop-Process -Id $p.Id -Force } else { Write-Host "CI=1 exit $($p.ExitCode)" }
68+
Get-Content "$env:RUNNER_TEMP\o.txt" | Select -First 20

0 commit comments

Comments
 (0)