mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-28 20:41:04 +00:00
workflows: merge run-k8s-tests-on-garm and run-k8s-tests-with-crio-on-garm
Created the run-k8s-tests-on-amd64.yaml which is a merge of run-k8s-tests-on-garm.yaml and run-k8s-tests-with-crio-on-garm.yaml ps: renamed the job from 'run-k8s-tests' to 'run-k8s-tests-on-amd64' to it is easier to find on Github UI and be distinguished from s390x, ppc64le, etc... Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
parent
ed0732c75d
commit
d11ce129ac
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
@ -152,21 +152,9 @@ jobs:
|
|||||||
target-branch: ${{ inputs.target-branch }}
|
target-branch: ${{ inputs.target-branch }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
run-k8s-tests-on-garm:
|
run-k8s-tests-on-amd64:
|
||||||
needs: publish-kata-deploy-payload-amd64
|
needs: publish-kata-deploy-payload-amd64
|
||||||
uses: ./.github/workflows/run-k8s-tests-on-garm.yaml
|
uses: ./.github/workflows/run-k8s-tests-on-amd64.yaml
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
|
||||||
tag: ${{ inputs.tag }}-amd64
|
|
||||||
commit-hash: ${{ inputs.commit-hash }}
|
|
||||||
pr-number: ${{ inputs.pr-number }}
|
|
||||||
target-branch: ${{ inputs.target-branch }}
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
run-k8s-tests-with-crio-on-garm:
|
|
||||||
needs: publish-kata-deploy-payload-amd64
|
|
||||||
uses: ./.github/workflows/run-k8s-tests-with-crio-on-garm.yaml
|
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
repo: ${{ github.repository_owner }}/kata-deploy-ci
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: CI | Run kubernetes tests
|
name: CI | Run kubernetes tests on amd64
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@ -23,7 +23,7 @@ on:
|
|||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-k8s-tests:
|
run-k8s-tests-amd64:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -33,12 +33,20 @@ jobs:
|
|||||||
- fc #firecracker
|
- fc #firecracker
|
||||||
- qemu
|
- qemu
|
||||||
- cloud-hypervisor
|
- cloud-hypervisor
|
||||||
|
container_runtime:
|
||||||
|
- containerd
|
||||||
snapshotter:
|
snapshotter:
|
||||||
- devmapper
|
- devmapper
|
||||||
k8s:
|
k8s:
|
||||||
- k3s
|
- k3s
|
||||||
instance:
|
instance:
|
||||||
- ubuntu-22.04
|
- ubuntu-22.04
|
||||||
|
include:
|
||||||
|
- vmm: qemu
|
||||||
|
container_runtime: crio
|
||||||
|
snapshotter: ""
|
||||||
|
instance: ubuntu-22.04
|
||||||
|
k8s: k0s
|
||||||
runs-on: ${{ matrix.instance }}
|
runs-on: ${{ matrix.instance }}
|
||||||
env:
|
env:
|
||||||
DOCKER_REGISTRY: ${{ inputs.registry }}
|
DOCKER_REGISTRY: ${{ inputs.registry }}
|
||||||
@ -47,6 +55,7 @@ jobs:
|
|||||||
PR_NUMBER: ${{ inputs.pr-number }}
|
PR_NUMBER: ${{ inputs.pr-number }}
|
||||||
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
||||||
KUBERNETES: ${{ matrix.k8s }}
|
KUBERNETES: ${{ matrix.k8s }}
|
||||||
|
KUBERNETES_EXTRA_PARAMS: ${{ matrix.container_runtime != 'crio' && '' || '--cri-socket remote:unix:///var/run/crio/crio.sock --kubelet-extra-args --cgroup-driver="systemd"' }}
|
||||||
SNAPSHOTTER: ${{ matrix.snapshotter }}
|
SNAPSHOTTER: ${{ matrix.snapshotter }}
|
||||||
USING_NFD: "false"
|
USING_NFD: "false"
|
||||||
K8S_TEST_HOST_TYPE: all
|
K8S_TEST_HOST_TYPE: all
|
||||||
@ -62,10 +71,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TARGET_BRANCH: ${{ inputs.target-branch }}
|
TARGET_BRANCH: ${{ inputs.target-branch }}
|
||||||
|
|
||||||
|
- name: Configure CRI-O
|
||||||
|
if: matrix.container_runtime == 'crio'
|
||||||
|
run: bash tests/integration/kubernetes/gha-run.sh setup-crio
|
||||||
|
|
||||||
- name: Deploy ${{ matrix.k8s }}
|
- name: Deploy ${{ matrix.k8s }}
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-k8s
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-k8s
|
||||||
|
|
||||||
- name: Configure the ${{ matrix.snapshotter }} snapshotter
|
- name: Configure the ${{ matrix.snapshotter }} snapshotter
|
||||||
|
if: matrix.snapshotter != ''
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh configure-snapshotter
|
run: bash tests/integration/kubernetes/gha-run.sh configure-snapshotter
|
||||||
|
|
||||||
- name: Deploy Kata
|
- name: Deploy Kata
|
@ -1,81 +0,0 @@
|
|||||||
name: CI | Run kubernetes tests, using CRI-O
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
registry:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
repo:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
tag:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
pr-number:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
commit-hash:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
target-branch:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
run-k8s-tests:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
vmm:
|
|
||||||
- qemu
|
|
||||||
k8s:
|
|
||||||
- k0s
|
|
||||||
instance:
|
|
||||||
- ubuntu-22.04
|
|
||||||
include:
|
|
||||||
- k8s: k0s
|
|
||||||
k8s-extra-params: '--cri-socket remote:unix:///var/run/crio/crio.sock --kubelet-extra-args --cgroup-driver="systemd"'
|
|
||||||
runs-on: ${{ matrix.instance }}
|
|
||||||
env:
|
|
||||||
DOCKER_REGISTRY: ${{ inputs.registry }}
|
|
||||||
DOCKER_REPO: ${{ inputs.repo }}
|
|
||||||
DOCKER_TAG: ${{ inputs.tag }}
|
|
||||||
PR_NUMBER: ${{ inputs.pr-number }}
|
|
||||||
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
|
||||||
KUBERNETES: ${{ matrix.k8s }}
|
|
||||||
KUBERNETES_EXTRA_PARAMS: ${{ matrix.k8s-extra-params }}
|
|
||||||
USING_NFD: "false"
|
|
||||||
K8S_TEST_HOST_TYPE: all
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ inputs.commit-hash }}
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Rebase atop of the latest target branch
|
|
||||||
run: |
|
|
||||||
./tests/git-helper.sh "rebase-atop-of-the-latest-target-branch"
|
|
||||||
env:
|
|
||||||
TARGET_BRANCH: ${{ inputs.target-branch }}
|
|
||||||
|
|
||||||
- name: Configure CRI-O
|
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh setup-crio
|
|
||||||
|
|
||||||
- name: Deploy ${{ matrix.k8s }}
|
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-k8s
|
|
||||||
|
|
||||||
- name: Deploy Kata
|
|
||||||
timeout-minutes: 10
|
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata
|
|
||||||
|
|
||||||
- name: Install `bats`
|
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh install-bats
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
timeout-minutes: 30
|
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh run-tests
|
|
||||||
|
|
||||||
- name: Delete kata-deploy
|
|
||||||
if: always()
|
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh cleanup
|
|
Loading…
Reference in New Issue
Block a user