collect_analytics.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Collect-analytics-run
  2. on:
  3. schedule:
  4. - cron: "0 * * * *" # Every 1 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@v4
  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 testowners
  30. run: python3 .github/scripts/analytics/upload_testowners.py
  31. - name: Collect test history data with window 1 days relwithdebinfo for main
  32. run: python3 .github/scripts/analytics/flaky_tests_history.py --days-window=1
  33. - name: Collect test history data with window 1 days release-asan for main
  34. run: python3 .github/scripts/analytics/flaky_tests_history.py --days-window=1 --build_type=release-asan
  35. - name: Collect test history data with window 10 run relwithdebinfo for main
  36. run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=10
  37. - name: Collect test history data with window 10 run release-asan for main
  38. run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=10 --build_type=release-asan
  39. - name: Collect test history data with window 50 run relwithdebinfo for main
  40. run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=50
  41. - name: Collect test history data with window 50 run release-asan for main
  42. run: python3 .github/scripts/analytics/flaky_tests_history_n_runs.py --runs=50 --build_type=release-asan
  43. - name: Collect all muted and not muted tests
  44. run: python3 .github/scripts/tests/get_muted_tests.py upload_muted_tests --branch main