Skip to content

Commit

Permalink
Merge pull request #382 from ydb-platform/slo-fix
Browse files Browse the repository at this point in the history
SLO fix
  • Loading branch information
Alexey Zorkaltsev authored May 14, 2024
2 parents d3ff782 + eb87f83 commit cd797f9
Showing 1 changed file with 52 additions and 10 deletions.
62 changes: 52 additions & 10 deletions .github/workflows/slo.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,57 @@
name: SLO
on:
pull_request:
branches: [main]

name: SLO
branches:
- master
- release-*
workflow_dispatch:

jobs:
test-slo:
if: github.event.pull_request.head.repo.full_name == 'ydb-platform/ydb-nodejs-sdk'
uses: ydb-platform/slo-tests/.github/workflows/slo.yml@main
secrets: inherit
with:
language_id: nodejs
language: nodejs
workload_path: slo-workload
concurrency:
group: slo-${{ github.ref }}
if: (!contains(github.event.pull_request.labels.*.name, 'no slo'))

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

- name: Run SLO
uses: ydb-platform/slo-tests@js-version
continue-on-error: true
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KUBECONFIG_B64: ${{ secrets.SLO_KUBE_CONFIG }}
AWS_CREDENTIALS_B64: ${{ secrets.SLO_AWS_CREDENTIALS }}
AWS_CONFIG_B64: ${{ secrets.SLO_AWS_CONFIG }}
DOCKER_USERNAME: ${{ secrets.SLO_DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.SLO_DOCKER_PASSWORD }}
DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
DOCKER_FOLDER: ${{ secrets.SLO_DOCKER_FOLDER }}
s3_endpoint: ${{ secrets.SLO_S3_ENDPOINT }}
s3_images_folder: ${{ vars.SLO_S3_IMAGES_FOLDER }}
grafana_domain: ${{ vars.SLO_GRAFANA_DOMAIN }}
grafana_dashboard: ${{ vars.SLO_GRAFANA_DASHBOARD }}
ydb_version: 'newest'
timeBetweenPhases: 30
shutdownTime: 30

language_id0: 'nodejs'
workload_path0: 'slo-workload'
language0: 'Native ydb-nodejs-sdk general'
workload_build_context0: ../..
workload_build_options0: -f Dockerfile --build-arg SRC_PATH=slo-workload --build-arg JOB_NAME=workload-slo

- uses: actions/upload-artifact@v4
if: always()
with:
name: slo-logs
path: logs/

0 comments on commit cd797f9

Please sign in to comment.