@@ -17,6 +17,12 @@ buildifier:
17
17
version : latest
18
18
# keep this argument in sync with .pre-commit-config.yaml
19
19
warnings : " all"
20
+ .minimum_supported_version : &minimum_supported_version
21
+ # For testing minimum supported version.
22
+ # NOTE: Keep in sync with //:version.bzl
23
+ bazel : 5.4.0
24
+ .minimum_supported_bzlmod_version : &minimum_supported_bzlmod_version
25
+ bazel : 6.0.0 # test minimum supported version of bazel for bzlmod tests
20
26
.reusable_config : &reusable_config
21
27
build_targets :
22
28
- " --"
@@ -54,12 +60,24 @@ buildifier:
54
60
- //tests:version_3_9_test
55
61
- //tests:version_default_test
56
62
tasks :
63
+ gazelle_extension_min :
64
+ << : *minimum_supported_version
65
+ name : Test the Gazelle extension using minimum supported Bazel version
66
+ platform : ubuntu2004
67
+ build_targets : ["//..."]
68
+ test_targets : ["//..."]
69
+ working_directory : gazelle
57
70
gazelle_extension :
58
71
name : Test the Gazelle extension
59
72
platform : ubuntu2004
60
73
build_targets : ["//..."]
61
74
test_targets : ["//..."]
62
75
working_directory : gazelle
76
+ ubuntu_min :
77
+ << : *minimum_supported_version
78
+ << : *reusable_config
79
+ name : Default test on Ubuntu using minimum supported Bazel version
80
+ platform : ubuntu2004
63
81
ubuntu :
64
82
<< : *reusable_config
65
83
name : Default test on Ubuntu
@@ -78,13 +96,27 @@ tasks:
78
96
platform : windows
79
97
test_flags :
80
98
- " --test_tag_filters=-integration-test,-fix-windows"
99
+
100
+ rbe_min :
101
+ << : *minimum_supported_version
102
+ << : *reusable_config
103
+ name : Test on RBE using minimum supported Bazel version
104
+ platform : rbe_ubuntu1604
105
+ test_flags :
106
+ - " --test_tag_filters=-integration-test,-acceptance-test"
81
107
rbe :
82
108
<< : *reusable_config
83
109
name : Test on RBE
84
110
platform : rbe_ubuntu1604
85
111
test_flags :
86
112
- " --test_tag_filters=-integration-test,-acceptance-test"
87
113
114
+ integration_test_build_file_generation_ubuntu_minimum_supported :
115
+ << : *minimum_supported_version
116
+ << : *reusable_build_test_all
117
+ name : build_file_generation integration tests on Ubuntu using minimum supported Bazel version
118
+ working_directory : examples/build_file_generation
119
+ platform : ubuntu2004
88
120
integration_test_build_file_generation_ubuntu :
89
121
<< : *reusable_build_test_all
90
122
name : build_file_generation integration tests on Ubuntu
@@ -106,6 +138,13 @@ tasks:
106
138
working_directory : examples/build_file_generation
107
139
platform : windows
108
140
141
+ integration_test_bzlmod_ubuntu_min :
142
+ << : *minimum_supported_bzlmod_version
143
+ << : *reusable_build_test_all
144
+ << : *coverage_targets_example_bzlmod
145
+ name : bzlmod integration tests on Ubuntu using minimum supported Bazel version
146
+ working_directory : examples/bzlmod
147
+ platform : ubuntu2004
109
148
integration_test_bzlmod_ubuntu :
110
149
<< : *reusable_build_test_all
111
150
<< : *coverage_targets_example_bzlmod
@@ -131,6 +170,12 @@ tasks:
131
170
working_directory : examples/bzlmod
132
171
platform : windows
133
172
173
+ integration_test_multi_python_versions_ubuntu_min :
174
+ << : *minimum_supported_version
175
+ << : *reusable_build_test_all
176
+ name : multi_python_versions integration tests on Ubuntu using minimum supported Bazel version
177
+ working_directory : examples/multi_python_versions
178
+ platform : ubuntu2004
134
179
integration_test_multi_python_versions_ubuntu :
135
180
<< : *reusable_build_test_all
136
181
<< : *coverage_targets_example_multi_python
@@ -156,6 +201,12 @@ tasks:
156
201
working_directory : examples/multi_python_versions
157
202
platform : windows
158
203
204
+ integration_test_pip_install_ubuntu_min :
205
+ << : *minimum_supported_version
206
+ << : *reusable_build_test_all
207
+ name : pip_install integration tests on Ubuntu using minimum supported Bazel version
208
+ working_directory : examples/pip_install
209
+ platform : ubuntu2004
159
210
integration_test_pip_install_ubuntu :
160
211
<< : *reusable_build_test_all
161
212
name : pip_install integration tests on Ubuntu
@@ -177,6 +228,12 @@ tasks:
177
228
working_directory : examples/pip_install
178
229
platform : windows
179
230
231
+ integration_test_pip_parse_ubuntu_min :
232
+ << : *minimum_supported_version
233
+ << : *reusable_build_test_all
234
+ name : pip_parse integration tests on Ubuntu using minimum supported Bazel version
235
+ working_directory : examples/pip_parse
236
+ platform : ubuntu2004
180
237
integration_test_pip_parse_ubuntu :
181
238
<< : *reusable_build_test_all
182
239
name : pip_parse integration tests on Ubuntu
@@ -198,6 +255,12 @@ tasks:
198
255
working_directory : examples/pip_parse
199
256
platform : windows
200
257
258
+ integration_test_pip_parse_vendored_ubuntu_min :
259
+ << : *minimum_supported_version
260
+ << : *reusable_build_test_all
261
+ name : pip_parse_vendored integration tests on Ubuntu using minimum supported Bazel version
262
+ working_directory : examples/pip_parse_vendored
263
+ platform : ubuntu2004
201
264
integration_test_pip_parse_vendored_ubuntu :
202
265
<< : *reusable_build_test_all
203
266
name : pip_parse_vendored integration tests on Ubuntu
@@ -216,6 +279,12 @@ tasks:
216
279
# We don't run pip_parse_vendored under Windows as the file checked in is
217
280
# generated from a repository rule containing OS-specific rendered paths.
218
281
282
+ integration_test_py_proto_library_ubuntu_min :
283
+ << : *minimum_supported_version
284
+ << : *reusable_build_test_all
285
+ name : py_proto_library integration tests on Ubuntu using minimum supported Bazel version
286
+ working_directory : examples/py_proto_library
287
+ platform : ubuntu2004
219
288
integration_test_py_proto_library_ubuntu :
220
289
<< : *reusable_build_test_all
221
290
name : py_proto_library integration tests on Ubuntu
@@ -238,6 +307,13 @@ tasks:
238
307
platform : windows
239
308
240
309
# Check the same using bzlmod as well
310
+ integration_test_py_proto_library_bzlmod_ubuntu_min :
311
+ << : *minimum_supported_bzlmod_version
312
+ << : *common_bzlmod_flags
313
+ << : *reusable_build_test_all
314
+ name : py_proto_library bzlmod integration tests on Ubuntu using minimum supported Bazel version
315
+ working_directory : examples/py_proto_library
316
+ platform : ubuntu2004
241
317
integration_test_py_proto_library_bzlmod_ubuntu :
242
318
<< : *reusable_build_test_all
243
319
<< : *common_bzlmod_flags
@@ -263,6 +339,12 @@ tasks:
263
339
working_directory : examples/py_proto_library
264
340
platform : windows
265
341
342
+ integration_test_pip_repository_annotations_ubuntu_min :
343
+ << : *minimum_supported_version
344
+ << : *reusable_build_test_all
345
+ name : pip_repository_annotations integration tests on Ubuntu using minimum supported Bazel version
346
+ working_directory : examples/pip_repository_annotations
347
+ platform : ubuntu2004
266
348
integration_test_pip_repository_annotations_ubuntu :
267
349
<< : *reusable_build_test_all
268
350
name : pip_repository_annotations integration tests on Ubuntu
@@ -284,6 +366,12 @@ tasks:
284
366
working_directory : examples/pip_repository_annotations
285
367
platform : windows
286
368
369
+ integration_test_compile_pip_requirements_ubuntu_min :
370
+ << : *minimum_supported_version
371
+ << : *reusable_build_test_all
372
+ name : compile_pip_requirements integration tests on Ubuntu using minimum supported Bazel version
373
+ working_directory : tests/compile_pip_requirements
374
+ platform : ubuntu2004
287
375
integration_test_compile_pip_requirements_ubuntu :
288
376
<< : *reusable_build_test_all
289
377
name : compile_pip_requirements integration tests on Ubuntu
@@ -333,6 +421,12 @@ tasks:
333
421
- " bazel run //:requirements.update"
334
422
- " git diff --exit-code"
335
423
424
+ integration_test_pip_repository_entry_points_ubuntu_min :
425
+ << : *minimum_supported_version
426
+ << : *reusable_build_test_all
427
+ name : pip_repository_entry_points integration tests on Ubuntu using minimum supported Bazel version
428
+ working_directory : tests/pip_repository_entry_points
429
+ platform : ubuntu2004
336
430
integration_test_pip_repository_entry_points_ubuntu :
337
431
<< : *reusable_build_test_all
338
432
name : pip_repository_entry_points integration tests on Ubuntu
@@ -354,6 +448,12 @@ tasks:
354
448
working_directory : tests/pip_repository_entry_points
355
449
platform : windows
356
450
451
+ integration_test_ignore_root_user_error_ubuntu_min :
452
+ << : *minimum_supported_version
453
+ << : *reusable_build_test_all
454
+ name : ignore_root_user_error integration tests on Ubuntu using minimum supported Bazel version
455
+ working_directory : tests/ignore_root_user_error
456
+ platform : ubuntu2004
357
457
integration_test_ignore_root_user_error_ubuntu :
358
458
<< : *reusable_build_test_all
359
459
name : ignore_root_user_error integration tests on Ubuntu
0 commit comments