acceptance_run.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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@v3
  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_size: small,medium,large
  50. test_type: unittest,py3test,py2test,pytest
  51. test_threads: 1
  52. put_build_results_to_cache: true
  53. secs: ${{ format('{{"TESTMO_TOKEN":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
  54. secrets.TESTMO_TOKEN, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
  55. vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
  56. vars.AWS_BUCKET, vars.AWS_ENDPOINT, vars.REMOTE_CACHE_URL_YA, vars.TESTMO_URL, vars.TESTMO_PROJECT_ID ) }}