-
Notifications
You must be signed in to change notification settings - Fork 65
102 lines (92 loc) · 3.77 KB
/
perftest.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Performance tests
on:
release:
types: [ created ]
env:
AWS_ENDPOINT_URL: https://storage.yandexcloud.net
AWS_REGION: ru-central1
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
cache: true
- id: test-go-setup
run: go test -race -covermode atomic ./...
- id: build
run: |
export GOOS=linux
export CGO_ENABLED=0
go build -o pandora-perf
- id: upload-binary
uses: osiegmar/s3-publisher-action@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.YC_S3_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.YC_S3_KEY_SECRET }}
with:
dir: .
includes: pandora-perf
bucket: ${{ vars.YC_LOADTESTING_DATA_BUCKET }}
test-pandora-perf:
needs: [ build-and-upload ]
runs-on: ubuntu-latest
concurrency: { group: loadtesting }
env:
PERFTESTS_ROOT: "./performance-test/test-config"
PERFTESTS_AGENT_NAME: "agent-pandora-perf-medium"
TEST_LABELS: "version=${{ github.ref_name }}"
AGENT_FILTER: "name = 'agent-pandora-perf-medium'"
steps:
- uses: actions/checkout@v4
- id: run-perftests
name: Run Pandora Performance Tests
uses: yandex-cloud/yc-github-loadtesting-ci/test-suite@v1-beta
with:
action-log-level: INFO
auth-key-json-base64: ${{ secrets.YC_LOADTESTING_KEY_JSON_BASE64 }}
folder-id: ${{ vars.YC_LOADTESTING_FOLDER_ID }}
data-bucket: ${{ vars.YC_LOADTESTING_DATA_BUCKET }}
add-labels: "version=${{ github.ref_name }}"
agent-filter: "name='${{ env.PERFTESTS_AGENT_NAME }}'"
test-directories: |
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep50ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-300inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-2000inst-sleep50ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-grpc-300inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-300inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep0ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep50ms-overflow-false"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-300inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep0ms-overflow-true"
"${{ env.PERFTESTS_ROOT }}/pandora-perf-http-uri-2000inst-sleep50ms-overflow-true"
- uses: actions/upload-artifact@v4
if: always()
with:
name: perftest-artifacts
path: ${{ steps.run-perftests.outputs.artifacts-dir }}
- id: make-test-infos-json
if: always()
run: cp "${{ steps.run-perftests.outputs.test-infos-file }}" test-infos.json
- id: make-imbalance-md-str
name: Generate report
uses: sergeysova/jq-action@v2
with:
multiline: true
cmd: |
jq -r '.[] | "- \(.details.name): **\(.summary.imbalance_point.rps // 0 | tonumber)**"' test-infos.json > imbalance.md
- uses: actions/upload-artifact@v4
with:
name: imbalance.md
path: imbalance.md
- name: Update release
uses: tubone24/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: imbalance.md
is_append_body: true