|
7 | 7 | pull_request: |
8 | 8 | workflow_dispatch: |
9 | 9 | jobs: |
10 | | - native: |
11 | | - needs: [gorm] |
| 10 | + test-slo: |
12 | 11 | concurrency: |
13 | | - group: slo-native-${{ github.ref }} |
14 | | - if: github.event.pull_request.head.repo.full_name == 'ydb-platform/ydb-go-sdk' && |
15 | | - !contains(github.event.pull_request.labels.*.name, 'no slo') |
16 | | - uses: ydb-platform/slo-tests/.github/workflows/slo.yml@main |
17 | | - secrets: inherit |
18 | | - with: |
19 | | - language_id: go-native |
20 | | - language: go/v3/native |
21 | | - workload_path: tests/slo |
22 | | - workload_build_options: -f Dockerfile --build-arg SRC_PATH=native |
23 | | - workload_build_context: ../.. |
24 | | - database_sql: |
25 | | - needs: [native] |
26 | | - concurrency: |
27 | | - group: slo-database-sql-${{ github.ref }} |
28 | | - if: github.event.pull_request.head.repo.full_name == 'ydb-platform/ydb-go-sdk' && |
29 | | - !contains(github.event.pull_request.labels.*.name, 'no slo') |
30 | | - uses: ydb-platform/slo-tests/.github/workflows/slo.yml@main |
31 | | - secrets: inherit |
32 | | - with: |
33 | | - language_id: go-database-sql |
34 | | - language: go/v3/database/sql |
35 | | - workload_path: tests/slo |
36 | | - workload_build_options: -f Dockerfile --build-arg SRC_PATH=database/sql |
37 | | - workload_build_context: ../.. |
38 | | - gorm: |
39 | | - concurrency: |
40 | | - group: slo-gorm-${{ github.ref }} |
41 | | - if: github.event.pull_request.head.repo.full_name == 'ydb-platform/ydb-go-sdk' && |
42 | | - !contains(github.event.pull_request.labels.*.name, 'no slo') |
43 | | - uses: ydb-platform/slo-tests/.github/workflows/slo.yml@main |
44 | | - secrets: inherit |
45 | | - with: |
46 | | - language_id: go-gorm |
47 | | - language: go/v3/gorm |
48 | | - workload_path: tests/slo |
49 | | - workload_build_options: -f Dockerfile --build-arg SRC_PATH=gorm |
50 | | - workload_build_context: ../.. |
| 12 | + group: slo-${{ github.ref }} |
| 13 | + if: (!contains(github.event.pull_request.labels.*.name, 'no slo')) |
| 14 | + |
| 15 | + runs-on: ubuntu-latest |
| 16 | + name: SLO test |
| 17 | + permissions: |
| 18 | + checks: write |
| 19 | + pull-requests: write |
| 20 | + contents: read |
| 21 | + issues: write |
| 22 | + |
| 23 | + steps: |
| 24 | + - name: Checkout repository |
| 25 | + uses: actions/checkout@v3 |
| 26 | + |
| 27 | + - name: Run SLO |
| 28 | + uses: ydb-platform/slo-tests@additional-logs |
| 29 | + with: |
| 30 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 31 | + KUBECONFIG_B64: ${{ secrets.SLO_KUBE_CONFIG }} |
| 32 | + AWS_CREDENTIALS_B64: ${{ secrets.SLO_AWS_CREDENTIALS }} |
| 33 | + AWS_CONFIG_B64: ${{ secrets.SLO_AWS_CONFIG }} |
| 34 | + DOCKER_USERNAME: ${{ secrets.SLO_DOCKER_USERNAME }} |
| 35 | + DOCKER_PASSWORD: ${{ secrets.SLO_DOCKER_PASSWORD }} |
| 36 | + DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }} |
| 37 | + DOCKER_FOLDER: ${{ secrets.SLO_DOCKER_FOLDER }} |
| 38 | + s3_endpoint: ${{ secrets.SLO_S3_ENDPOINT }} |
| 39 | + s3_images_folder: ${{ vars.SLO_S3_IMAGES_FOLDER }} |
| 40 | + grafana_domain: ${{ vars.SLO_GRAFANA_DOMAIN }} |
| 41 | + grafana_dashboard: ${{ vars.SLO_GRAFANA_DASHBOARD }} |
| 42 | + ydb_version: 'newest' |
| 43 | + timeBetweenPhases: 30 |
| 44 | + shutdownTime: 30 |
| 45 | + |
| 46 | + language_id0: 'native' |
| 47 | + workload_path0: 'tests/slo' |
| 48 | + language0: 'Go SDK native' |
| 49 | + workload_build_context0: ../.. |
| 50 | + workload_build_options0: -f Dockerfile --build-arg SRC_PATH=native --build-arg JOB_NAME=workload-native |
| 51 | + |
| 52 | + language_id1: 'databasesql' |
| 53 | + workload_path1: 'tests/slo' |
| 54 | + language1: 'Go SDK database/sql' |
| 55 | + workload_build_context1: ../.. |
| 56 | + workload_build_options1: -f Dockerfile --build-arg SRC_PATH=database/sql --build-arg JOB_NAME=workload-databasesql |
| 57 | + |
| 58 | + language_id2: 'gorm' |
| 59 | + workload_path2: 'tests/slo' |
| 60 | + language2: 'Go SDK gorm' |
| 61 | + workload_build_context2: ../.. |
| 62 | + workload_build_options2: -f Dockerfile --build-arg SRC_PATH=gorm --build-arg JOB_NAME=workload-gorm |
| 63 | + |
| 64 | + language_id3: 'xorm' |
| 65 | + workload_path3: 'tests/slo' |
| 66 | + language3: 'Go SDK xorm' |
| 67 | + workload_build_context3: ../.. |
| 68 | + workload_build_options3: -f Dockerfile --build-arg SRC_PATH=xorm --build-arg JOB_NAME=workload-xorm |
| 69 | + |
| 70 | + - uses: actions/upload-artifact@v3 |
| 71 | + if: always() |
| 72 | + with: |
| 73 | + name: slo-logs |
| 74 | + path: logs/ |
0 commit comments