build_and_test_ya_provisioned.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. - release
  16. - relwithdebinfo
  17. - release-asan
  18. - release-tsan
  19. - release-msan
  20. - release-cmake14
  21. test_size:
  22. type: choice
  23. default: "small,medium,large"
  24. description: "test size to run"
  25. options:
  26. - small
  27. - small,medium
  28. - small,medium,large
  29. test_type:
  30. type: choice
  31. default: "unittest,py3test,py2test,pytest"
  32. description: "type of tests to run"
  33. options:
  34. - unittest
  35. - py3test,py2test,pytest
  36. - unittest,py3test,py2test,pytest
  37. run_build:
  38. type: boolean
  39. default: true
  40. description: "run build"
  41. run_tests:
  42. type: boolean
  43. default: true
  44. description: "run tests"
  45. test_threads:
  46. type: string
  47. default: "56"
  48. description: "Test threads count"
  49. link_threads:
  50. type: string
  51. default: "12"
  52. description: "link threads count"
  53. runner_label:
  54. type: string
  55. default: "auto-provisioned"
  56. description: "runner label"
  57. put_build_results_to_cache:
  58. type: boolean
  59. default: true
  60. workflow_call:
  61. inputs:
  62. build_target:
  63. type: string
  64. default: "ydb/"
  65. build_preset:
  66. type: string
  67. default: "relwithdebinfo"
  68. test_size:
  69. type: string
  70. default: "small,medium,large"
  71. test_type:
  72. type: string
  73. default: "unittest,py3test,py2test,pytest"
  74. run_build:
  75. type: boolean
  76. default: true
  77. run_tests:
  78. type: boolean
  79. default: true
  80. test_threads:
  81. type: string
  82. default: 56
  83. description: "Test threads count"
  84. link_threads:
  85. type: string
  86. default: 12
  87. description: "link threads count"
  88. runner_label:
  89. type: string
  90. default: "auto-provisioned"
  91. put_build_results_to_cache:
  92. type: boolean
  93. default: true
  94. commit_sha:
  95. type: string
  96. default: ""
  97. jobs:
  98. main:
  99. uses: ./.github/workflows/build_and_test_ya.yml
  100. with:
  101. # FIXME: always use auto-provisioned here?
  102. runner_label: ${{ inputs.runner_label }}
  103. runner_additional_label: ${{ format('build-preset-{0}', inputs.build_preset) }}
  104. build_target: ${{ inputs.build_target }}
  105. build_preset: ${{ inputs.build_preset }}
  106. run_build: ${{ inputs.run_build }}
  107. run_tests: ${{ inputs.run_tests }}
  108. test_size: ${{ inputs.test_size }}
  109. test_type: ${{ inputs.test_type }}
  110. link_threads: ${{ inputs.link_threads }}
  111. test_threads: ${{ inputs.test_threads }}
  112. put_build_results_to_cache: ${{ inputs.put_build_results_to_cache }}
  113. commit_sha: ${{ inputs.commit_sha }}
  114. secrets: inherit