ci: add retry logic to flaky Windows integration test (#287)
* durable windows ci * more
This commit is contained in:
@@ -141,8 +141,15 @@ jobs:
|
|||||||
- name: Test agent-browser install command
|
- name: Test agent-browser install command
|
||||||
run: |
|
run: |
|
||||||
$env:PATH = "$pwd\bin;$env:PATH"
|
$env:PATH = "$pwd\bin;$env:PATH"
|
||||||
bin/agent-browser-win32-x64.exe install
|
for ($i = 1; $i -le 3; $i++) {
|
||||||
|
bin/agent-browser-win32-x64.exe install
|
||||||
|
if ($LASTEXITCODE -eq 0) { exit 0 }
|
||||||
|
Write-Host "Attempt $i failed, retrying in 10 seconds..."
|
||||||
|
Start-Sleep -Seconds 10
|
||||||
|
}
|
||||||
|
exit 1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
timeout-minutes: 10
|
||||||
|
|
||||||
- name: Verify Chromium was installed
|
- name: Verify Chromium was installed
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user