mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 17:04:22 -05:00
1ec9316521
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
97 lines
3.9 KiB
YAML
97 lines
3.9 KiB
YAML
name: k-bench
|
|
description: "Run K-Bench"
|
|
|
|
inputs:
|
|
cloudProvider:
|
|
description: "Which cloud provider to use."
|
|
required: true
|
|
kubeconfig:
|
|
description: "The kubeconfig of the cluster to test."
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup python
|
|
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 # tag=v4.3.0
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- name: Install evaluation dependencies
|
|
shell: bash
|
|
run: pip install -r .github/actions/e2e_kbench/evaluate/requirements.txt
|
|
|
|
- name: Checkout patched K-Bench
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
|
|
with:
|
|
fetch-depth: 0
|
|
repository: "edgelesssys/k-bench"
|
|
ref: "feat/constellation"
|
|
path: k-bench
|
|
|
|
- name: Install patched K-Bench
|
|
working-directory: "k-bench"
|
|
run: ./install.sh
|
|
shell: bash
|
|
|
|
- name: Install Constellation CSI drivers and create storage class
|
|
uses: ./.github/actions/install_csi_drivers
|
|
with:
|
|
kubeconfig: ${{ inputs.kubeconfig }}
|
|
cloudProvider: ${{ inputs.cloudProvider }}
|
|
|
|
- name: Run K-Bench
|
|
shell: bash
|
|
working-directory: k-bench
|
|
run: |
|
|
mkdir -p ./out
|
|
kubectl create namespace kbench-pod-namespace --dry-run=client -o yaml | kubectl apply -f -
|
|
kubectl apply -f ../.github/actions/e2e_kbench/encrypted_storage.yml
|
|
./run.sh -r "kbench-constellation-${{ inputs.cloudProvider }}" -t "default" -o "./out/"
|
|
kubectl delete namespace kbench-pod-namespace --wait=true || true
|
|
kubectl create namespace kbench-pod-namespace --dry-run=client -o yaml | kubectl apply -f -
|
|
kubectl apply -f ../.github/actions/e2e_kbench/encrypted_storage.yml
|
|
./run.sh -r "kbench-constellation-${{ inputs.cloudProvider }}" -t "dp_fio" -o "./out/"
|
|
kubectl delete namespace kbench-pod-namespace --wait=true || true
|
|
kubectl create namespace kbench-pod-namespace --dry-run=client -o yaml | kubectl apply -f -
|
|
kubectl apply -f ../.github/actions/e2e_kbench/encrypted_storage.yml
|
|
./run.sh -r "kbench-constellation-${{ inputs.cloudProvider }}" -t "dp_network_internode" -o "./out/"
|
|
kubectl delete namespace kbench-pod-namespace --wait=true || true
|
|
kubectl create namespace kbench-pod-namespace --dry-run=client -o yaml | kubectl apply -f -
|
|
kubectl apply -f ../.github/actions/e2e_kbench/encrypted_storage.yml
|
|
./run.sh -r "kbench-constellation-${{ inputs.cloudProvider }}" -t "dp_network_intranode" -o "./out/"
|
|
env:
|
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
|
|
|
- name: Merge K-Bench results
|
|
working-directory: k-bench
|
|
shell: bash
|
|
run: |
|
|
mkdir -p "./out/kbench-constellation-${{ inputs.cloudProvider }}"
|
|
mv ./out/results_kbench-constellation-${{ inputs.cloudProvider }}_*m/* "./out/kbench-constellation-${{ inputs.cloudProvider }}/"
|
|
ls -l "./out/kbench-constellation-${{ inputs.cloudProvider }}"
|
|
cat ./out/kbench-constellation-${{ inputs.cloudProvider }}/*/kbench.log
|
|
|
|
- name: Upload original benchmark results
|
|
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # tag=v3.1.1
|
|
if: ${{ !env.ACT }}
|
|
with:
|
|
path: "k-bench/out/kbench-constellation-${{ inputs.cloudProvider }}"
|
|
name: "k-bench-constellation-${{ inputs.cloudProvider }}"
|
|
|
|
- name: Parse test results and create diagrams
|
|
shell: bash
|
|
run: python .github/actions/e2e_kbench/evaluate/main.py
|
|
env:
|
|
KBENCH_RESULTS: ${{ github.workspace }}/k-bench/out/
|
|
CSP: ${{ inputs.cloudProvider }}
|
|
|
|
- name: Upload benchmark results
|
|
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # tag=v3.1.1
|
|
if: ${{ !env.ACT }}
|
|
with:
|
|
path: |
|
|
*_perf.png
|
|
kbench_results.json
|
|
name: "benchmark_results"
|