forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.85 KB
/
load-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Load Tests
on:
workflow_call:
inputs:
functions_runtime_tag:
description: "Tag for the functions runner image"
type: "string"
required: true
env:
GO_VERSION: "~1.20"
# renovate: datasource=github-tags depName=cloud-bulldozer/kube-burner
KUBE_BURNER_VERSION: "v1.3"
defaults:
run:
shell: bash
jobs:
run-load-test:
name: Run load Tests
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup cluster
uses: ./.github/actions/deploy-klt-on-cluster
with:
functions_runtime_tag: ${{ inputs.functions_runtime_tag }}
- name: Install and expose Prometheus
uses: ./.github/actions/deploy-prometheus-on-cluster
- name: Download kube-burner
env:
BASE_URL: https://github.com/cloud-bulldozer/kube-burner/releases
run: |
curl -fL \
"${BASE_URL}/download/${{ env.KUBE_BURNER_VERSION }}/kube-burner-${KUBE_BURNER_VERSION#v}-Linux-x86_64.tar.gz" \
-o kube-burner-${KUBE_BURNER_VERSION#v}-Linux-x86_64.tar.gz
tar -xf kube-burner-${KUBE_BURNER_VERSION#v}-Linux-x86_64.tar.gz
mv kube-burner /usr/local/bin
sleep 60 # wait to have the node exporter ready already with 60s of data before starting the test
- name: Run load Tests
run: make load-test
- name: Upload results
if: always()
uses: actions/upload-artifact@v3
with:
name: load-tests-results
path: ./collected-metrics
- name: Create reports
if: always()
working-directory: ./.github/scripts
run: ./create-reports-toolkit.sh
- name: Upload cluster logs
if: always()
uses: actions/upload-artifact@v3
with:
name: logs-load-tests
path: .github/scripts/logs