Skip to content

Commit d60d859

Browse files
committed
CI: Windows: set NO_HYPERV for canary
Workaround for containerd/containerd issue 13254 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent ef7d382 commit d60d859

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/job-test-in-host.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
required: false
1616
default: false
1717
type: boolean
18+
no-hyperv:
19+
required: false
20+
default: false
21+
type: boolean
1822
binary:
1923
required: false
2024
default: nerdctl
@@ -83,6 +87,11 @@ jobs:
8387
with:
8488
fetch-depth: 1
8589

90+
- if: ${{ inputs.no-hyperv }}
91+
name: "Init (no-hyperv): Disable Hyper-V"
92+
run: |
93+
printf "NO_HYPERV=1\n" >> "$GITHUB_ENV"
94+
8695
- if: ${{ inputs.canary }}
8796
name: "Init (canary): retrieve latest go and containerd"
8897
env:

.github/workflows/workflow-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ jobs:
143143
runner: ${{ matrix.runner }}
144144
binary: ${{ matrix.binary != '' && matrix.binary || 'nerdctl' }}
145145
canary: ${{ matrix.canary && true || false }}
146+
# Hyper-V is broken on canary.
147+
# [v2.3.0-beta.2 regression] The virtual machine or container JSON document is invalid. (Hyper-V container)
148+
# https://github.com/containerd/containerd/issues/13254
149+
no-hyperv: ${{ matrix.canary && true || false }}
146150
go-version: 1.26
147151
windows-cni-version: v0.3.1
148152
docker-version: 5:28.0.4-1~ubuntu.24.04~noble

0 commit comments

Comments
 (0)