-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (65 loc) · 2.17 KB
/
k8s-local-go.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
name: k8s-local-go
on:
workflow_dispatch:
inputs:
read-rps:
description: Required Read RPS
required: true
type: string
default: '1000'
write-rps:
description: Required Write RPS
required: true
type: string
default: '50'
pull_request:
branches:
- 'k8s-local'
jobs:
test-slo:
concurrency:
group: slo-${{ github.ref }}
runs-on: ubuntu-latest
name: SLO test
permissions:
checks: write
pull-requests: write
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ydb-platform/ydb-go-sdk
- name: Run SLO
uses: ydb-platform/slo-tests@k8s-local
env:
DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
continue-on-error: true
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
READ_RPS: ${{ github.event.inputs.read-rps }}
WRITE_RPS: ${{ github.event.inputs.write-rps }}
grafana_dashboard: ${{ vars.SLO_GRAFANA_DASHBOARD }}
ydb_version: 'newest'
timeBetweenPhases: 30
shutdownTime: 30
language_id0: 'native-table'
workload_path0: 'tests/slo'
language0: 'Native ydb-go-sdk/v3 over table-service'
workload_build_context0: ../..
workload_build_options0: -f Dockerfile --build-arg SRC_PATH=native/table --build-arg JOB_NAME=workload-native-table
language_id1: 'database-sql'
workload_path1: 'tests/slo'
language1: 'Go SDK database/sql'
workload_build_context1: ../..
workload_build_options1: -f Dockerfile --build-arg SRC_PATH=database/sql --build-arg JOB_NAME=workload-database-sql
language_id2: 'native-query'
workload_path2: 'tests/slo'
language2: 'Native ydb-go-sdk/v3 over query-service'
workload_build_context2: ../..
workload_build_options2: -f Dockerfile --build-arg SRC_PATH=native/query --build-arg JOB_NAME=workload-native-query
- uses: actions/upload-artifact@v4
with:
name: slo-logs
path: logs/