Enable cri-tools critest on Windows
Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
This commit is contained in:
parent
59b9788479
commit
768bf73dd1
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@ -230,7 +230,7 @@ jobs:
|
|||||||
integration-windows:
|
integration-windows:
|
||||||
name: Windows Integration
|
name: Windows Integration
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 50
|
timeout-minutes: 55
|
||||||
needs: [project, linters, protos, man]
|
needs: [project, linters, protos, man]
|
||||||
env:
|
env:
|
||||||
GOTEST: gotestsum --
|
GOTEST: gotestsum --
|
||||||
@ -259,11 +259,17 @@ jobs:
|
|||||||
repository: Microsoft/hcsshim
|
repository: Microsoft/hcsshim
|
||||||
path: src/github.com/Microsoft/hcsshim
|
path: src/github.com/Microsoft/hcsshim
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: kubernetes-sigs/cri-tools
|
||||||
|
path: src/github.com/kubernetes-sigs/cri-tools
|
||||||
|
|
||||||
- name: Set env
|
- name: Set env
|
||||||
run: |
|
run: |
|
||||||
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
|
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
|
||||||
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
|
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
|
||||||
echo "${{ github.workspace }}/src/github.com/containerd/containerd/bin" >> $GITHUB_PATH
|
echo "${{ github.workspace }}/src/github.com/containerd/containerd/bin" >> $GITHUB_PATH
|
||||||
|
echo "${{ github.workspace }}/src/github.com/kubernetes-sigs/cri-tools/build/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- run: script/setup/install-dev-tools
|
- run: script/setup/install-dev-tools
|
||||||
|
|
||||||
@ -279,18 +285,26 @@ jobs:
|
|||||||
git fetch --tags origin "${SHIM_COMMIT}"
|
git fetch --tags origin "${SHIM_COMMIT}"
|
||||||
git checkout "${SHIM_COMMIT}"
|
git checkout "${SHIM_COMMIT}"
|
||||||
GO111MODULE=on go build -mod=vendor -o "${bindir}/integration/client/containerd-shim-runhcs-v1.exe" ./cmd/containerd-shim-runhcs-v1
|
GO111MODULE=on go build -mod=vendor -o "${bindir}/integration/client/containerd-shim-runhcs-v1.exe" ./cmd/containerd-shim-runhcs-v1
|
||||||
|
cd ../../kubernetes-sigs/cri-tools
|
||||||
|
make critest
|
||||||
|
|
||||||
- run: script/setup/install-cni-windows
|
- run: script/setup/install-cni-windows
|
||||||
|
|
||||||
- env:
|
- env:
|
||||||
TEST_IMAGE_LIST: ${{github.workspace}}/repolist.toml
|
TEST_IMAGE_LIST: ${{github.workspace}}/repolist.toml
|
||||||
|
CRI_TEST_IMAGES: ${{github.workspace}}/cri-test-images.yaml
|
||||||
BUSYBOX_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/busybox:1.29-2"
|
BUSYBOX_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/busybox:1.29-2"
|
||||||
RESOURCE_CONSUMER_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/resource-consumer:1.10"
|
RESOURCE_CONSUMER_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/resource-consumer:1.10"
|
||||||
|
WEBSERVER_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/nginx:1.14-2"
|
||||||
run: |
|
run: |
|
||||||
cat > "${{ env.TEST_IMAGE_LIST }}" << EOF
|
cat > "${{ env.TEST_IMAGE_LIST }}" << EOF
|
||||||
busybox = "${{ env.BUSYBOX_TESTING_IMAGE_REF }}"
|
busybox = "${{ env.BUSYBOX_TESTING_IMAGE_REF }}"
|
||||||
ResourceConsumer = "${{ env.RESOURCE_CONSUMER_TESTING_IMAGE_REF }}"
|
ResourceConsumer = "${{ env.RESOURCE_CONSUMER_TESTING_IMAGE_REF }}"
|
||||||
EOF
|
EOF
|
||||||
|
cat > "${{ env.CRI_TEST_IMAGES }}" << EOF
|
||||||
|
defaultTestContainerImage: ${{ env.BUSYBOX_TESTING_IMAGE_REF }}
|
||||||
|
webServerTestImage: ${{ env.WEBSERVER_TESTING_IMAGE_REF }}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Set env for prepare_env_windows.ps1
|
- name: Set env for prepare_env_windows.ps1
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -326,6 +340,16 @@ jobs:
|
|||||||
TEST_IMAGE_LIST: ${{github.workspace}}/repolist.toml
|
TEST_IMAGE_LIST: ${{github.workspace}}/repolist.toml
|
||||||
run: |
|
run: |
|
||||||
make cri-integration
|
make cri-integration
|
||||||
|
|
||||||
|
- name: cri-tools critest
|
||||||
|
env:
|
||||||
|
CRI_TEST_IMAGES: ${{github.workspace}}/cri-test-images.yaml
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
Start-Process -FilePath containerd.exe -NoNewWindow -RedirectStandardError true -PassThru
|
||||||
|
get-process | sls containerd
|
||||||
|
start-sleep 5
|
||||||
|
critest.exe --runtime-endpoint=npipe://.//pipe//containerd-containerd --test-images-file='${{env.CRI_TEST_IMAGES}}' --report-dir='${{github.workspace}}/critestreport'
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user