collect_analytics.yml 1018 B

123456789101112131415161718192021222324252627282930313233
  1. name: Collect-analytics-run
  2. on:
  3. schedule:
  4. - cron: "0 */4 * * *" # Every 4 h
  5. workflow_dispatch:
  6. inputs:
  7. commit_sha:
  8. type: string
  9. default: ""
  10. defaults:
  11. run:
  12. shell: bash
  13. jobs:
  14. main:
  15. name: Checkout and setup
  16. runs-on: [ self-hosted ]
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v3
  20. with:
  21. ref: ${{ inputs.commit_sha }}
  22. - name: Setup ydb access
  23. uses: ./.github/actions/setup_ci_ydb_service_account_key_file_credentials
  24. with:
  25. ci_ydb_service_account_key_file_credentials: ${{ secrets.CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS }}
  26. - name: Install dependencies
  27. run: |
  28. python3 -m pip install ydb ydb[yc] codeowners
  29. - name: Collect test history data with window 5 days
  30. run: python3 .github/scripts/analytics/flaky_tests_history.py --days-window=5
  31. - name: Collect test history data with window 1 day
  32. run: python3 .github/scripts/analytics/flaky_tests_history.py --days-window=1