slo.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. on:
  2. push:
  3. branches: [main]
  4. pull_request:
  5. branches: [main]
  6. workflow_dispatch:
  7. name: SLO
  8. jobs:
  9. test-slo:
  10. concurrency:
  11. group: slo-${{ github.ref }}
  12. if: (!contains(github.event.pull_request.labels.*.name, 'no slo'))
  13. runs-on: ubuntu-latest
  14. name: SLO test
  15. permissions:
  16. checks: write
  17. pull-requests: write
  18. contents: read
  19. issues: write
  20. steps:
  21. - name: Checkout repository
  22. uses: actions/checkout@v3
  23. if: env.DOCKER_REPO != null # check permissions
  24. env:
  25. DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
  26. - name: Run SLO
  27. uses: ydb-platform/slo-tests@main
  28. if: env.DOCKER_REPO != null # check permissions
  29. env:
  30. DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
  31. with:
  32. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  33. KUBECONFIG_B64: ${{ secrets.SLO_KUBE_CONFIG }}
  34. AWS_CREDENTIALS_B64: ${{ secrets.SLO_AWS_CREDENTIALS }}
  35. AWS_CONFIG_B64: ${{ secrets.SLO_AWS_CONFIG }}
  36. DOCKER_USERNAME: ${{ secrets.SLO_DOCKER_USERNAME }}
  37. DOCKER_PASSWORD: ${{ secrets.SLO_DOCKER_PASSWORD }}
  38. DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
  39. DOCKER_FOLDER: ${{ secrets.SLO_DOCKER_FOLDER }}
  40. s3_endpoint: ${{ secrets.SLO_S3_ENDPOINT }}
  41. s3_images_folder: ${{ vars.SLO_S3_IMAGES_FOLDER }}
  42. grafana_domain: ${{ vars.SLO_GRAFANA_DOMAIN }}
  43. grafana_dashboard: dca60386-0d3d-43f5-a2af-5f3fd3e3b295
  44. grafana_dashboard_width: 2000
  45. grafana_dashboard_height: 2600
  46. ydb_version: 'newest'
  47. timeBetweenPhases: 30
  48. shutdownTime: 30
  49. language_id0: 'php'
  50. workload_path0: 'slo-workload'
  51. language0: 'php'
  52. workload_build_context0: ../.
  53. workload_build_options0: -f Dockerfile
  54. - uses: actions/upload-artifact@v3
  55. if: always() && env.DOCKER_REPO != null # check permissions and execute, even if the previous stage was failed
  56. env:
  57. DOCKER_REPO: ${{ secrets.SLO_DOCKER_REPO }}
  58. with:
  59. name: slo-logs
  60. path: logs/