Skip to content

Commit 9a5b207

Browse files
committed
chore: throwaway windows repro for the browser install rename (not for merge)
1 parent 4d9a4e4 commit 9a5b207

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: drq-eperm-repro
2+
on:
3+
push:
4+
branches: [drenderq/eperm-repro]
5+
jobs:
6+
repro:
7+
runs-on: windows-latest
8+
timeout-minutes: 30
9+
steps:
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: 22
13+
- name: plain installs, fresh cache each
14+
shell: pwsh
15+
run: |
16+
npm i -g hyperframes@0.9.13 2>&1 | Select-Object -Last 2
17+
"defender realtime: " + (Get-MpComputerStatus).RealTimeProtectionEnabled
18+
1..4 | ForEach-Object {
19+
hyperframes browser clear 2>&1 | Out-Null
20+
$t = Get-Date
21+
hyperframes browser ensure 2>&1 | Select-Object -Last 6
22+
"run $_ exit=$LASTEXITCODE secs=" + [int]((Get-Date) - $t).TotalSeconds
23+
}
24+
- name: held file during install
25+
shell: pwsh
26+
run: |
27+
hyperframes browser clear 2>&1 | Out-Null
28+
$root = Join-Path $env:USERPROFILE ".cache\hyperframes"
29+
$holder = Start-Job -ArgumentList $root -ScriptBlock {
30+
param($root)
31+
$end = (Get-Date).AddSeconds(240)
32+
while ((Get-Date) -lt $end) {
33+
$f = Get-ChildItem -Path $root -Recurse -Filter chrome-headless-shell.exe -ErrorAction SilentlyContinue | Select-Object -First 1
34+
if ($f) {
35+
try { $s = [IO.File]::Open($f.FullName, 'Open', 'Read', 'None'); Start-Sleep -Seconds 4; $s.Close(); return "held $($f.FullName)" } catch { Start-Sleep -Milliseconds 50 }
36+
} else { Start-Sleep -Milliseconds 50 }
37+
}
38+
return "never saw the exe"
39+
}
40+
hyperframes browser ensure 2>&1 | Select-Object -Last 12
41+
"exit=$LASTEXITCODE"
42+
Receive-Job -Job $holder -Wait

0 commit comments

Comments
 (0)