-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (59 loc) · 1.61 KB
/
alb-perf.yaml
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
name: alb-perf
on:
workflow_dispatch:
inputs:
name:
type: string
description: name of the test
required: true
chart:
type: string
description: which alb you want to test
required: true
loop_count:
type: string
description: perf mutli times
required: false
default: "1"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build:
name: perf
runs-on: k2
strategy:
matrix:
platform:
- linux/amd64
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: docker/setup-buildx-action@v3
- name: perf
env:
ALB_PERF_NAME: "${{ github.event.inputs.name }}"
ABL_PERF_CHART: "${{ github.event.inputs.chart }}"
ABL_PERF_LOOP_COUNT: "${{ github.event.inputs.loop_count }}"
run: |
echo "test start"
env |grep ALB_PERF
git remote update
git status; git log --pretty=oneline --abbrev-commit | head -n 10
cd ~/apps/atop/alb-test-operator/
rm -rf ./alb-perf-report/*
source ./scripts/atop.actions.sh
atop-init-venv
kind delete cluster --name simple-perf || true
docker ps
n=${ABL_PERF_LOOP_COUNT}
for i in $(seq 1 $n); do
echo "loop $i/$n"
atop-perf-kind ${ALB_PERF_NAME}-$i $ABL_PERF_CHART
sleep 60
done
atop-report-kind
echo "test over"