Skip to content

Commit a357846

Browse files
committed
chore: throwaway repro, hold after unzip
1 parent 9a5b207 commit a357846

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

‎.github/workflows/drq-eperm-repro.yml‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,26 @@ jobs:
2121
hyperframes browser ensure 2>&1 | Select-Object -Last 6
2222
"run $_ exit=$LASTEXITCODE secs=" + [int]((Get-Date) - $t).TotalSeconds
2323
}
24-
- name: held file during install
24+
- name: held file after unzip, before the move into the cache
2525
shell: pwsh
2626
run: |
2727
hyperframes browser clear 2>&1 | Out-Null
2828
$root = Join-Path $env:USERPROFILE ".cache\hyperframes"
2929
$holder = Start-Job -ArgumentList $root -ScriptBlock {
3030
param($root)
3131
$end = (Get-Date).AddSeconds(240)
32+
$last = -1
3233
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 }
34+
$f = Get-ChildItem -Path $root -Recurse -Filter chrome-headless-shell.exe -ErrorAction SilentlyContinue | Where-Object { $_.FullName -like '*chrome-staging*' } | Select-Object -First 1
35+
if ($f -and $f.Length -gt 1MB) {
36+
if ($f.Length -eq $last) {
37+
try { $s = [IO.File]::Open($f.FullName, 'Open', 'Read', 'None'); Start-Sleep -Seconds 3; $s.Close(); return "held 3s: $($f.FullName)" } catch { return "could not open: $_" }
38+
}
39+
$last = $f.Length
40+
}
41+
Start-Sleep -Milliseconds 300
3742
}
38-
return "never saw the exe"
43+
return "never saw a settled exe"
3944
}
4045
hyperframes browser ensure 2>&1 | Select-Object -Last 12
4146
"exit=$LASTEXITCODE"

0 commit comments

Comments
 (0)