build_and_test_ya_provisioned.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. name: Ya-Build-and-Test-Provisioned
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. build_target:
  6. type: string
  7. default: "ydb/"
  8. description: "limit build and test to specific target"
  9. build_preset:
  10. type: choice
  11. default: "relwithdebinfo"
  12. description: "Build preset"
  13. options:
  14. - debug
  15. - relwithdebinfo
  16. - release-asan
  17. - release-tsan
  18. - release-msan
  19. test_size:
  20. type: choice
  21. default: "small,medium,large"
  22. description: "test size to run"
  23. options:
  24. - small
  25. - small,medium
  26. - small,medium,large
  27. test_type:
  28. type: choice
  29. default: "unittest,py3test,py2test,pytest"
  30. description: "type of tests to run"
  31. options:
  32. - unittest
  33. - py3test,py2test,pytest
  34. - unittest,py3test,py2test,pytest
  35. run_build:
  36. type: boolean
  37. default: true
  38. description: "run build"
  39. run_tests:
  40. type: boolean
  41. default: true
  42. description: "run tests"
  43. test_threads:
  44. type: string
  45. default: "28"
  46. description: "Test threads count"
  47. link_threads:
  48. type: string
  49. default: "8"
  50. description: "link threads count"
  51. runner_label:
  52. type: string
  53. default: "auto-provisioned"
  54. description: "runner label"
  55. workflow_call:
  56. inputs:
  57. build_target:
  58. type: string
  59. default: "ydb/"
  60. build_preset:
  61. type: string
  62. default: "relwithdebinfo"
  63. test_size:
  64. type: string
  65. default: "small,medium,large"
  66. test_type:
  67. type: string
  68. default: "unittest,py3test,py2test,pytest"
  69. run_build:
  70. type: boolean
  71. default: true
  72. run_tests:
  73. type: boolean
  74. default: true
  75. test_threads:
  76. type: string
  77. default: 28
  78. description: "Test threads count"
  79. link_threads:
  80. type: string
  81. default: 8
  82. description: "link threads count"
  83. runner_label:
  84. type: string
  85. default: "auto-provisioned"
  86. put_build_results_to_cache:
  87. type: boolean
  88. default: true
  89. jobs:
  90. main:
  91. uses: ./.github/workflows/build_and_test_ya.yml
  92. with:
  93. # FIXME: always use auto-provisioned here?
  94. runner_label: ${{ inputs.runner_label }}
  95. # naive check for -asan, -tsan, -msan
  96. runner_additional_label: ${{ contains(inputs.build_preset, '-') && format('build-preset-{0}', inputs.build_preset) || '' }}
  97. build_target: ${{ inputs.build_target }}
  98. build_preset: ${{ inputs.build_preset }}
  99. run_build: ${{ inputs.run_build }}
  100. run_tests: ${{ inputs.run_tests }}
  101. test_size: ${{ inputs.test_size }}
  102. test_type: ${{ inputs.test_type }}
  103. link_threads: ${{ inputs.link_threads }}
  104. test_threads: ${{ inputs.test_threads }}
  105. put_build_results_to_cache: ${{ inputs.put_build_results_to_cache || true }}
  106. secrets: inherit