Skip to content

Commit f5c5797

Browse files
authored
fix integration test failure (#1799)
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
1 parent 25b6855 commit f5c5797

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -373,21 +373,18 @@ jobs:
373373
env:
374374
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
375375

376+
# needs to be a separate step since terminal reload is required to bring in new env variables and PATH
377+
- name: Upgrade Chocolaty
378+
shell: powershell
379+
run: |
380+
choco upgrade -y chocolatey 2>&1
381+
376382
- name: Install mingw
377383
shell: powershell
378384
run: |
379385
$VerbosePreference = 'Continue'
380386
# dont set $ErrorActionPreference since we want to allow choco install to fail later on
381387
382-
Write-Output '::group::Update chocolaty'
383-
choco upgrade -y chocolatey
384-
Write-Output '::endgroup::'
385-
386-
if ( $LASTEXITCODE ) {
387-
Write-Output '::error::Could not update chocolatey.'
388-
exit $LASTEXITCODE
389-
}
390-
391388
Write-Output 'Install mingw'
392389
# Install sometimes fails when downloading mingw zip from source-forge with:
393390
# "ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url"
@@ -404,7 +401,7 @@ jobs:
404401
Sleep -Seconds 60
405402
}
406403
407-
choco install -y --no-progress --stop-on-first-failure --force mingw --allow-downgrade --version 10.2.0
404+
choco install -y --no-progress --stop-on-first-failure --force mingw --allow-downgrade --version 10.3.0
408405
Write-Output '::endgroup::'
409406
if ( -not $LASTEXITCODE ) {
410407
Write-Output "Attempt $i succeeded (exit code: $LASTEXITCODE)"
@@ -418,6 +415,9 @@ jobs:
418415
exit $LASTEXITCODE
419416
}
420417
418+
# verify mingw32-make was installed
419+
Get-Command -CommandType Application -ErrorAction Stop mingw32-make.exe
420+
421421
- name: Build binaries
422422
shell: bash
423423
working-directory: src/github.com/containerd/containerd

0 commit comments

Comments
 (0)