Skip to content

Commit

Permalink
Debug Windows CI failure with containerd 1.5.8
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Nov 18, 2021
1 parent 4d486a5 commit 3ee31d7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,24 @@ docker_builder:
os_version: 2019
env:
CGO_ENABLED: 0
# yamllint disable rule:key-duplicates
matrix:
ContainerdVersion: 1.5.7
ContainerdVersion: 1.5.8
build_script:
- mkdir "C:\Windows\system32\config\systemprofile\AppData\Local\Temp\"
- powershell hack/configure-windows-ci.ps1
- refreshenv
- go install .\cmd\nerdctl\
- go test -v -run "^(TestRunWorkdir|TestRunWithDoubleDash|TestRunExitCode|TestRunCIDFile|TestRunEnvFile|TestRunEnv|TestExec|ImageInspect|TestRunUserName)$" ./cmd/...

- nerdctl run gcr.io/k8s-staging-e2e-test-images/busybox:1.29-2 echo hello
- nerdctl run gcr.io/k8s-staging-e2e-test-images/busybox:1.29-2 sh -euxc "echo hello2"
- nerdctl run --rm gcr.io/k8s-staging-e2e-test-images/busybox:1.29-2 sh -euxc "echo hello3"

- nerdctl run -d --name nerdctl-test-exec gcr.io/k8s-staging-e2e-test-images/busybox:1.29-2 sleep 1h
- nerdctl exec nerdctl-test-exec echo hello4
- nerdctl rm -f nerdctl-test-exec

- nerdctl run -d --name nerdctl-test-exec gcr.io/k8s-staging-e2e-test-images/busybox:1.29-2 sh -euxc "sleep 1h"
- nerdctl exec nerdctl-test-exec sh -euxc "echo hello5"
- nerdctl rm -f nerdctl-test-exec
3 changes: 1 addition & 2 deletions hack/configure-windows-ci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ $ErrorActionPreference = "Stop"
choco install --limitoutput --no-progress -y golang

#install containerd
$Version="1.5.7"
curl.exe -L https://github.com/containerd/containerd/releases/download/v$Version/containerd-$Version-windows-amd64.tar.gz -o containerd-windows-amd64.tar.gz
curl.exe -L https://github.com/containerd/containerd/releases/download/v$Env:ContainerdVersion/containerd-$Env:ContainerdVersion-windows-amd64.tar.gz -o containerd-windows-amd64.tar.gz
tar xvf containerd-windows-amd64.tar.gz
mkdir -force "$Env:ProgramFiles\containerd"
mv ./bin/* "$Env:ProgramFiles\containerd"
Expand Down

0 comments on commit 3ee31d7

Please sign in to comment.