acceptance_run.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: Acceptance-run
  2. on:
  3. schedule:
  4. - cron: "0 0 * * *" # At 00:00 every day
  5. workflow_dispatch:
  6. inputs:
  7. build_preset:
  8. type: choice
  9. default: "relwithdebinfo"
  10. description: "Build preset"
  11. options:
  12. - debug
  13. - release
  14. - relwithdebinfo
  15. - release-asan
  16. - release-tsan
  17. - release-msan
  18. runner_label:
  19. type: string
  20. default: "auto-provisioned"
  21. description: "runner label"
  22. commit_sha:
  23. type: string
  24. default: ""
  25. jobs:
  26. main:
  27. name: Build and test ydb/tests/acceptance
  28. runs-on: [ self-hosted, "${{ inputs.runner_label || 'auto-provisioned' }}", "${{ format('build-preset-{0}', inputs.build_preset || 'relwithdebinfo') }}" ]
  29. steps:
  30. - name: Checkout
  31. uses: actions/checkout@v4
  32. with:
  33. ref: ${{ inputs.commit_sha }}
  34. - name: Setup ssh key for slice
  35. uses: webfactory/ssh-agent@v0.9.0
  36. with:
  37. ssh-private-key: ${{ secrets.SLICE_QA_SSH_PRIVATE_KEY }}
  38. - name: Setup ydb access
  39. uses: ./.github/actions/setup_ci_ydb_service_account_key_file_credentials
  40. with:
  41. ci_ydb_service_account_key_file_credentials: ${{ secrets.CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS }}
  42. - name: Build and test
  43. uses: ./.github/actions/build_and_test_ya
  44. with:
  45. build_preset: ${{ inputs.build_preset || 'relwithdebinfo'}}
  46. build_target: "ydb/tests/acceptance"
  47. increment: false
  48. run_tests: true
  49. test_retry_count: 1
  50. test_size: small,medium,large
  51. test_type: unittest,py3test,py2test,pytest
  52. test_threads: 1
  53. put_build_results_to_cache: true
  54. secs: ${{ format('{{"TESTMO_TOKEN2":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
  55. secrets.TESTMO_TOKEN2, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
  56. vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
  57. vars.AWS_BUCKET, vars.AWS_ENDPOINT, vars.REMOTE_CACHE_URL_YA, vars.TESTMO_URL, vars.TESTMO_PROJECT_ID ) }}