postcommit_asan.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Postcommit_asan
  2. on:
  3. push:
  4. branches:
  5. - 'main'
  6. - 'stable-*'
  7. - 'stream-nb-*'
  8. paths-ignore:
  9. - 'ydb/docs/**'
  10. jobs:
  11. build_and_test:
  12. if: ${{vars.CHECKS_SWITCH != '' && fromJSON(vars.CHECKS_SWITCH).postcommit_asan == true}}
  13. runs-on: [ self-hosted, auto-provisioned, build-preset-release-asan, postcommit ]
  14. name: Build and test release-asan
  15. steps:
  16. - name: Checkout
  17. uses: actions/checkout@v4
  18. with:
  19. fetch-depth: 2
  20. - name: Setup ydb access
  21. uses: ./.github/actions/setup_ci_ydb_service_account_key_file_credentials
  22. with:
  23. ci_ydb_service_account_key_file_credentials: ${{ secrets.CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS }}
  24. - name: Build and test
  25. uses: ./.github/actions/build_and_test_ya
  26. with:
  27. build_preset: "release-asan"
  28. build_target: "ydb/"
  29. increment: true
  30. run_tests: true
  31. test_size: "small,medium"
  32. test_threads: 52
  33. put_build_results_to_cache: true
  34. additional_ya_make_args: -DDEBUGINFO_LINES_ONLY # we don't need full symbols in CI checks
  35. secs: ${{ format('{{"TESTMO_TOKEN2":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
  36. secrets.TESTMO_TOKEN2, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
  37. vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
  38. vars.AWS_BUCKET, vars.AWS_ENDPOINT, vars.REMOTE_CACHE_URL_YA, vars.TESTMO_URL, vars.TESTMO_PROJECT_ID ) }}