|
50 | 50 | Set-MpPreference -DisableArchiveScanning $true |
51 | 51 | Set-MpPreference -DisableScanningMappedNetworkDrivesForFullScan $true |
52 | 52 |
|
53 | | - if (-not (docker network ls --format '{{.Name}}' | Where-Object { $_ -eq 'docker_default' })) { |
54 | | - docker network create --driver nat docker_default |
55 | | - if ($LASTEXITCODE -ne 0) { exit 1 } |
| 53 | + $maxAttempts = 12 |
| 54 | + $delaySeconds = 5 |
| 55 | + $dockerReady = $false |
| 56 | +
|
| 57 | + for ($attempt = 1; $attempt -le $maxAttempts; $attempt++) { |
| 58 | + $networkNames = docker network ls --format '{{.Name}}' |
| 59 | + if ($LASTEXITCODE -eq 0) { |
| 60 | + if (-not ($networkNames | Where-Object { $_ -eq 'docker_default' })) { |
| 61 | + docker network create --driver nat docker_default |
| 62 | + if ($LASTEXITCODE -eq 0) { |
| 63 | + $dockerReady = $true |
| 64 | + break |
| 65 | + } |
| 66 | + } |
| 67 | + else { |
| 68 | + $dockerReady = $true |
| 69 | + break |
| 70 | + } |
| 71 | + } |
| 72 | +
|
| 73 | + if ($attempt -lt $maxAttempts) { |
| 74 | + Write-Host "Docker not ready yet (attempt $attempt/$maxAttempts), retry in ${delaySeconds}s..." |
| 75 | + Start-Sleep -Seconds $delaySeconds |
| 76 | + } |
| 77 | + } |
| 78 | +
|
| 79 | + if (-not $dockerReady) { |
| 80 | + Write-Error "Docker was not ready after $($maxAttempts*$delaySeconds)s total wait" |
| 81 | + exit 1 |
56 | 82 | } |
57 | 83 |
|
58 | 84 | - name: Set prefix |
@@ -385,11 +411,11 @@ jobs: |
385 | 411 | if (-not (Test-Path "smoke/build-ct/install")) { throw "smoke/build-ct/install not found" } |
386 | 412 | tree.com smoke /F |
387 | 413 |
|
388 | | - - name: Configure Smoke |
389 | | - run: cmake -S smoke -B smoke/out |
| 414 | + - name: Smoke Flow MINIMALISTIC |
| 415 | + run: cmake -D FLOW=MINIMALISTIC -D CONFIG=${{ matrix.config }} -P smoke/RunSmokeFlow.cmake |
390 | 416 |
|
391 | | - - name: Build Smoke |
392 | | - run: cmake --build smoke/out --config ${{ matrix.config }} |
| 417 | + - name: Smoke Flow CONFIGURE_ONLY |
| 418 | + run: cmake -D FLOW=CONFIGURE_ONLY -D CONFIG=${{ matrix.config }} -P smoke/RunSmokeFlow.cmake |
393 | 419 |
|
394 | | - - name: CTest Smoke |
395 | | - run: ctest --verbose --test-dir smoke/out --force-new-ctest-process --output-on-failure --no-tests=error -C ${{ matrix.config }} |
| 420 | + - name: Smoke Flow BUILD_ONLY |
| 421 | + run: cmake -D FLOW=BUILD_ONLY -D CONFIG=${{ matrix.config }} -P smoke/RunSmokeFlow.cmake |
0 commit comments