mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
As discussed on the AC call, we are lacking maintainers for the metrics tests. As a starting point for potentially phasing them out, we discussed starting with removing the test for stratovirt as a non-core hypervisor and a job that is problematic in leaving behind resources that need cleaning up. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
95 lines
2.7 KiB
YAML
95 lines
2.7 KiB
YAML
name: CI | Run test metrics
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
tarball-suffix:
|
|
required: false
|
|
type: string
|
|
commit-hash:
|
|
required: false
|
|
type: string
|
|
target-branch:
|
|
required: false
|
|
type: string
|
|
default: ""
|
|
|
|
jobs:
|
|
setup-kata:
|
|
name: Kata Setup
|
|
runs-on: metrics
|
|
env:
|
|
GOPATH: ${{ github.workspace }}
|
|
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: get-kata-tarball
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: kata-static-tarball-amd64${{ inputs.tarball-suffix }}
|
|
path: kata-artifacts
|
|
|
|
- name: Install kata
|
|
run: bash tests/metrics/gha-run.sh install-kata kata-artifacts
|
|
|
|
run-metrics:
|
|
needs: setup-kata
|
|
strategy:
|
|
# We can set this to true whenever we're 100% sure that
|
|
# the all the tests are not flaky, otherwise we'll fail
|
|
# all the tests due to a single flaky instance.
|
|
fail-fast: false
|
|
matrix:
|
|
vmm: ['clh', 'qemu']
|
|
max-parallel: 1
|
|
runs-on: metrics
|
|
env:
|
|
GOPATH: ${{ github.workspace }}
|
|
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
|
steps:
|
|
- name: enabling the hypervisor
|
|
run: bash tests/metrics/gha-run.sh enabling-hypervisor
|
|
|
|
- name: run launch times test
|
|
run: bash tests/metrics/gha-run.sh run-test-launchtimes
|
|
|
|
- name: run memory foot print test
|
|
run: bash tests/metrics/gha-run.sh run-test-memory-usage
|
|
|
|
- name: run memory usage inside container test
|
|
run: bash tests/metrics/gha-run.sh run-test-memory-usage-inside-container
|
|
|
|
- name: run blogbench test
|
|
run: bash tests/metrics/gha-run.sh run-test-blogbench
|
|
|
|
- name: run tensorflow test
|
|
run: bash tests/metrics/gha-run.sh run-test-tensorflow
|
|
|
|
- name: run fio test
|
|
run: bash tests/metrics/gha-run.sh run-test-fio
|
|
|
|
- name: run iperf test
|
|
run: bash tests/metrics/gha-run.sh run-test-iperf
|
|
|
|
- name: run latency test
|
|
run: bash tests/metrics/gha-run.sh run-test-latency
|
|
|
|
- name: make metrics tarball ${{ matrix.vmm }}
|
|
run: bash tests/metrics/gha-run.sh make-tarball-results
|
|
|
|
- name: archive metrics results ${{ matrix.vmm }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: metrics-artifacts-${{ matrix.vmm }}
|
|
path: results-${{ matrix.vmm }}.tar.gz
|
|
retention-days: 1
|
|
if-no-files-found: error
|