-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathazure-release-pipelines.yml
230 lines (210 loc) · 8.38 KB
/
azure-release-pipelines.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# Azure Pipeline that is triggered weekdays at midnight or when a release is tagged.
trigger: none
pr: none
# Currently nightly can take up to ~8 hours to run. 1 AM is a good time to start.
# (Note that this is in UTC time, so 1AM UTC is 8PM EST)
schedules:
- cron: "0 1 * * MON-FRI"
displayName: 'Weekdays Daily midnight build'
branches:
include:
- main
exclude:
- develop
parameters:
- name: PYTEST_MARKER
displayName: PyTest Marker
type: string
default: 'not weekly'
# NOTE: these variables determine artifactory channel to publish Bodo/BodoSQL/Iceberg packages.
# See get_channel.sh
# Originally added through Azure Pipeline UI.
# Azure pipeline UI includes AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
variables:
# Azure Pipelines currently doesn't have a "range" function to count from 1 to total
# We have to manually add the element and split into an array
# TODO: Replace with range when available
bodo_1p_each: "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22"
bodo_1p_total: 22
bodo_2p_each: "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"
bodo_2p_total: 30
bodosql_1p_each: "1,2,3,4,5,6,7,8,9,10,11,12"
bodosql_1p_total: 12
bodosql_2p_each: "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22"
bodosql_2p_total: 22
stages:
- stage: Test_Bodo_x86
displayName: 'Test Bodo on Linux x86'
dependsOn: []
jobs:
- template: buildscripts/bodo/azure/azure-test-conda-linux-macos.yml
parameters:
# Note: name is used later in the buildscripts to determine which version of conda to install
name: Bodo_Tests
caching_test: false
spawn_mode_test: false
matrix:
${{ each slice in split(variables.bodo_1p_each, ',') }}:
${{ format('BODO_1P_{0}_OF_{1}', slice, variables.bodo_1p_total) }}:
NP: 1
PYTEST_MARKER: ${{ format('bodo_{0}of{1} and ({2})', slice, variables.bodo_1p_total, parameters.PYTEST_MARKER) }}
${{ each slice in split(variables.bodo_2p_each, ',') }}:
${{ format('BODO_2P_{0}_OF_{1}', slice, variables.bodo_2p_total) }}:
NP: 2
PYTEST_MARKER: ${{ format('bodo_{0}of{1} and ({2})', slice, variables.bodo_2p_total, parameters.PYTEST_MARKER) }}
- template: buildscripts/bodo/azure/azure-test-conda-linux-macos.yml
parameters:
name: Linux_cache
caching_test: true
spawn_mode_test: false
matrix:
TEST_2P:
NP: 2
PYTEST_MARKER: ""
- template: buildscripts/bodo/azure/azure-test-conda-linux-macos.yml
parameters:
name: Bodo_Spawn_mode_tests
caching_test: false
spawn_mode_test: true
matrix:
TEST_1P:
NP: 1
PYTEST_MARKER: "spawn_mode"
TEST_2P:
NP: 2
PYTEST_MARKER: "spawn_mode"
- stage: Test_BodoSQL_x86
displayName: 'Test BodoSQL on Linux x86'
dependsOn: []
jobs:
- template: buildscripts/bodosql/azure/azure-test-conda-linux-macos.yml
parameters:
# Note: this name is not important, as we explicitly check uname to determine the os
# for the bodoSQL tests
name: BodoSQL_Streaming_Tests
SPAWN_MODE_TEST: false
matrix:
${{ each slice in split(variables.bodosql_1p_each, ',') }}:
${{ format('BODOSQL_1P_{0}_OF_{1}', slice, variables.bodosql_1p_total) }}:
NP: 1
PYTEST_MARKER: ${{ format('bodosql_{0}of{1} and ({2})', slice, variables.bodosql_1p_total, parameters.PYTEST_MARKER) }}
${{ each slice in split(variables.bodosql_2p_each, ',') }}:
${{ format('BODOSQL_2P_{0}_OF_{1}', slice, variables.bodosql_2p_total) }}:
NP: 2
PYTEST_MARKER: ${{ format('bodosql_{0}of{1} and ({2})', slice, variables.bodosql_2p_total, parameters.PYTEST_MARKER) }}
- template: buildscripts/bodosql/azure/azure-test-conda-linux-macos.yml
parameters:
# Note: this name is not important, as we explicitly pass CACHE_TEST and
# check uname to determine the os for the bodoSQL tests
name: BodoSQL_Streaming_Caching_Tests
CACHE_TEST: true
SPAWN_MODE_TEST: false
matrix:
TEST_2P:
NP: 2
PYTEST_MARKER: ""
- template: buildscripts/bodosql/azure/azure-test-conda-linux-macos.yml
parameters:
# Note: this name is not important, as we explicitly pass CACHE_TEST and
# check uname to determine the os for the bodoSQL tests
name: BodoSQL_Streaming_Spawn_mode_tests
CACHE_TEST: false
SPAWN_MODE_TEST: true
matrix:
TEST_1P:
NP: 1
PYTEST_MARKER: "spawn_mode"
TEST_2P:
NP: 2
PYTEST_MARKER: "spawn_mode"
# ------------------------------- ARM Tests -------------------------------- #
# - stage: Test_Bodo_ARM
# displayName: 'Test Bodo on Linux ARM'
# dependsOn: []
# jobs:
# - template: buildscripts/bodo/azure/azure-test-conda-linux-macos.yml
# parameters:
# # Note: name is used later in the buildscripts to determine which version of conda to install
# name: Bodo_Tests
# caching_test: false
# spawn_mode_test: false
# pool_name: 'ARM-VMSet'
# matrix:
# ${{ each slice in split(variables.bodo_1p_each, ',') }}:
# ${{ format('BODO_1P_{0}_OF_{1}', slice, variables.bodo_1p_total) }}:
# NP: 1
# PYTEST_MARKER: ${{ format('bodo_{0}of{1} and ({2})', slice, variables.bodo_1p_total, parameters.PYTEST_MARKER) }}
# ${{ each slice in split(variables.bodo_2p_each, ',') }}:
# ${{ format('BODO_2P_{0}_OF_{1}', slice, variables.bodo_2p_total) }}:
# NP: 2
# PYTEST_MARKER: ${{ format('bodo_{0}of{1} and ({2})', slice, variables.bodo_2p_total, parameters.PYTEST_MARKER) }}
# - template: buildscripts/bodo/azure/azure-test-conda-linux-macos.yml
# parameters:
# name: Linux_cache
# caching_test: true
# spawn_mode_test: false
# pool_name: 'ARM-VMSet'
# matrix:
# TEST_2P:
# NP: 2
# PYTEST_MARKER: ""
# - template: buildscripts/bodo/azure/azure-test-conda-linux-macos.yml
# parameters:
# name: Bodo_Spawn_mode_tests
# caching_test: false
# spawn_mode_test: true
# pool_name: 'ARM-VMSet'
# matrix:
# TEST_1P:
# NP: 1
# PYTEST_MARKER: "spawn_mode"
# TEST_2P:
# NP: 2
# PYTEST_MARKER: "spawn_mode"
# - stage: Test_BodoSQL_ARM
# displayName: 'Test BodoSQL on Linux ARM'
# dependsOn: []
# jobs:
# - template: buildscripts/bodosql/azure/azure-test-conda-linux-macos.yml
# parameters:
# # Note: this name is not important, as we explicitly check uname to determine the os
# # for the bodoSQL tests
# name: BodoSQL_Streaming_Tests
# SPAWN_MODE_TEST: false
# pool_name: 'ARM-VMSet'
# matrix:
# ${{ each slice in split(variables.bodosql_1p_each, ',') }}:
# ${{ format('BODOSQL_1P_{0}_OF_{1}', slice, variables.bodosql_1p_total) }}:
# NP: 1
# PYTEST_MARKER: ${{ format('bodosql_{0}of{1} and ({2})', slice, variables.bodosql_1p_total, parameters.PYTEST_MARKER) }}
# ${{ each slice in split(variables.bodosql_2p_each, ',') }}:
# ${{ format('BODOSQL_2P_{0}_OF_{1}', slice, variables.bodosql_2p_total) }}:
# NP: 2
# PYTEST_MARKER: ${{ format('bodosql_{0}of{1} and ({2})', slice, variables.bodosql_2p_total, parameters.PYTEST_MARKER) }}
# - template: buildscripts/bodosql/azure/azure-test-conda-linux-macos.yml
# parameters:
# # Note: this name is not important, as we explicitly pass CACHE_TEST and
# # check uname to determine the os for the bodoSQL tests
# name: BodoSQL_Streaming_Caching_Tests
# CACHE_TEST: true
# SPAWN_MODE_TEST: false
# pool_name: 'ARM-VMSet'
# matrix:
# TEST_2P:
# NP: 2
# PYTEST_MARKER: ""
# - template: buildscripts/bodosql/azure/azure-test-conda-linux-macos.yml
# parameters:
# # Note: this name is not important, as we explicitly pass CACHE_TEST and
# # check uname to determine the os for the bodoSQL tests
# name: BodoSQL_Streaming_Spawn_mode_tests
# CACHE_TEST: false
# SPAWN_MODE_TEST: true
# pool_name: 'ARM-VMSet'
# matrix:
# TEST_1P:
# NP: 1
# PYTEST_MARKER: "spawn_mode"
# TEST_2P:
# NP: 2
# PYTEST_MARKER: "spawn_mode"