forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
127 lines (125 loc) · 3.79 KB
/
acceptance_run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: Acceptance-run
on:
schedule:
- cron: "0 0 * * *" # At 00:00 every day
workflow_dispatch:
inputs:
test_label_regexp:
required: false
type: string
build_target:
type: string
default: "ydb/"
description: "limit build and test to specific target"
build_preset:
type: choice
default: "relwithdebinfo"
description: "Build preset"
options:
- debug
- release
- relwithdebinfo
- release-asan
- release-tsan
- release-msan
- release-cmake14
test_size:
type: choice
default: "small,medium,large"
description: "test size to run"
options:
- small
- small,medium
- small,medium,large
test_type:
type: choice
default: "unittest,py3test,py2test,pytest"
description: "type of tests to run"
options:
- unittest
- py3test,py2test,pytest
- unittest,py3test,py2test,pytest
run_build:
type: boolean
default: true
description: "run build"
run_tests:
type: boolean
default: true
description: "run tests"
test_threads:
type: string
default: "56"
description: "Test threads count"
link_threads:
type: string
default: "12"
description: "link threads count"
runner_label:
type: string
default: "auto-provisioned"
description: "runner label"
put_build_results_to_cache:
type: boolean
default: true
workflow_call:
inputs:
build_target:
type: string
default: "ydb/tests/acceptance"
build_preset:
type: string
default: "relwithdebinfo"
test_size:
type: string
default: "small,medium,large"
test_type:
type: string
default: "unittest,py3test,py2test,pytest"
run_build:
type: boolean
default: true
run_tests:
type: boolean
default: true
test_threads:
type: string
default: 56
description: "Test threads count"
link_threads:
type: string
default: 12
description: "link threads count"
runner_label:
type: string
default: "auto-provisioned"
put_build_results_to_cache:
type: boolean
default: true
commit_sha:
type: string
default: ""
jobs:
main:
name: Build and test ${{ inputs.build_preset }}
runs-on: [ self-hosted, "${{ inputs.runner_label }}", "${{ inputs.runner_additional_label || inputs.runner_label }}"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.commit_sha }}
- name: Build and test
uses: ./.github/actions/build_and_test_ya
with:
build_preset: ${{ inputs.build_preset }}
build_target: ${{ inputs.build_target }}
increment: false
run_tests: ${{ inputs.run_tests }}
test_size: ${{ inputs.test_size }}
test_type: ${{ inputs.test_type }}
test_threads: ${{ inputs.test_threads }}
put_build_results_to_cache: ${{ inputs.put_build_results_to_cache }}
secs: ${{ format('{{"TESTMO_TOKEN":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
secrets.TESTMO_TOKEN, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
vars.AWS_BUCKET, vars.AWS_ENDPOINT, vars.REMOTE_CACHE_URL_YA, vars.TESTMO_URL, vars.TESTMO_PROJECT_ID ) }}