Skip to content

Commit 17761de

Browse files
feat: SLO Hibernate
1 parent 6a6b879 commit 17761de

File tree

16 files changed

+1135
-0
lines changed

16 files changed

+1135
-0
lines changed

.github/workflows/slo.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
on:
2+
push:
3+
branches: [main]
4+
pull_request:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
name: SLO
9+
10+
jobs:
11+
test-slo:
12+
concurrency:
13+
group: slo-${{ github.ref }}
14+
if: (!contains(github.event.pull_request.labels.*.name, 'no slo'))
15+
16+
runs-on: ubuntu-latest
17+
name: SLO test
18+
permissions:
19+
checks: write
20+
pull-requests: write
21+
contents: read
22+
issues: write
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
if: env.DOCKER_REPO != null
28+
env:
29+
DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
30+
31+
- name: Run SLO
32+
uses: ydb-platform/slo-tests@main
33+
if: env.DOCKER_REPO != null
34+
env:
35+
DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
36+
continue-on-error: true
37+
with:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
KUBECONFIG_B64: ${{ secrets.SLO_KUBE_CONFIG }}
40+
AWS_CREDENTIALS_B64: ${{ secrets.SLO_AWS_CREDENTIALS }}
41+
AWS_CONFIG_B64: ${{ secrets.SLO_AWS_CONFIG }}
42+
DOCKER_USERNAME: ${{ secrets.SLO_DOCKER_USERNAME }}
43+
DOCKER_PASSWORD: ${{ secrets.SLO_DOCKER_PASSWORD }}
44+
DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
45+
DOCKER_FOLDER: ${{ secrets.SLO_DOCKER_FOLDER }}
46+
s3_endpoint: ${{ secrets.SLO_S3_ENDPOINT }}
47+
s3_images_folder: ${{ vars.SLO_S3_IMAGES_FOLDER }}
48+
grafana_domain: ${{ vars.SLO_GRAFANA_DOMAIN }}
49+
# grafana_dashboard: ${{ vars.SLO_GRAFANA_DASHBOARD }}
50+
grafana_dashboard: dca60386-0d3d-43f5-a2af-5f3fd3e3b295
51+
grafana_dashboard_width: 2000
52+
grafana_dashboard_height: 2300
53+
ydb_version: 'newest'
54+
timeBetweenPhases: 30
55+
shutdownTime: 30
56+
57+
language_id0: 'hibernate'
58+
workload_path0: 'slo/hibernate'
59+
language0: 'Hibernate YQL Dialect over YDB JDBC Driver'
60+
workload_build_context0: ../..
61+
workload_build_options0: -f Dockerfile
62+
63+
64+
- uses: actions/upload-artifact@v3
65+
if: always() && env.DOCKER_REPO != null
66+
env:
67+
DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
68+
with:
69+
name: slo-logs
70+
path: logs/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: 1
2+
3+
providers:
4+
- name: 'SLO'
5+
options:
6+
path: /etc/grafana/provisioning/dashboards

0 commit comments

Comments
 (0)