github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/.github/workflows/slo.yml (about)

     1  name: SLO
     2  on:
     3    pull_request:
     4      branches:
     5        - master
     6        - release-*
     7    workflow_dispatch:
     8  jobs:
     9    test-slo:
    10      concurrency:
    11        group: slo-${{ github.ref }}
    12      if: (!contains(github.event.pull_request.labels.*.name, 'no slo'))
    13  
    14      runs-on: ubuntu-latest
    15      name: SLO test
    16      permissions:
    17        checks: write
    18        pull-requests: write
    19        contents: read
    20        issues: write
    21  
    22      steps:
    23        - name: Checkout repository
    24          uses: actions/checkout@v3
    25  
    26        - name: Run SLO
    27          uses: ydb-platform/slo-tests@js-version
    28          continue-on-error: true
    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-table'
    47            workload_path0: 'tests/slo'
    48            language0: 'Native ydb-go-sdk/v3 over table-service'
    49            workload_build_context0: ../..
    50            workload_build_options0: -f Dockerfile --build-arg SRC_PATH=native/table --build-arg JOB_NAME=workload-native-table
    51  
    52            language_id1: 'native-query'
    53            workload_path1: 'tests/slo'
    54            language1: 'Native ydb-go-sdk/v3 over query-service'
    55            workload_build_context1: ../..
    56            workload_build_options1: -f Dockerfile --build-arg SRC_PATH=native/query --build-arg JOB_NAME=workload-native-query
    57  
    58            language_id2: 'database-sql'
    59            workload_path2: 'tests/slo'
    60            language2: 'Go SDK database/sql'
    61            workload_build_context2: ../..
    62            workload_build_options2: -f Dockerfile --build-arg SRC_PATH=database/sql --build-arg JOB_NAME=workload-database-sql
    63  
    64            language_id3: 'gorm'
    65            workload_path3: 'tests/slo'
    66            language3: 'Go SDK gorm'
    67            workload_build_context3: ../..
    68            workload_build_options3: -f Dockerfile --build-arg SRC_PATH=gorm --build-arg JOB_NAME=workload-gorm
    69  
    70            language_id4: 'xorm'
    71            workload_path4: 'tests/slo'
    72            language4: 'Go SDK xorm'
    73            workload_build_context4: ../..
    74            workload_build_options4: -f Dockerfile --build-arg SRC_PATH=xorm --build-arg JOB_NAME=workload-xorm
    75  
    76        - uses: actions/upload-artifact@v3
    77          if: always()
    78          with:
    79            name: slo-logs
    80            path: logs/