xref: /aosp_15_r20/external/bazelbuild-rules_python/.bazelci/presubmit.yml (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1*60517a1eSAndroid Build Coastguard Worker# Copyright 2023 The Bazel Authors. All rights reserved.
2*60517a1eSAndroid Build Coastguard Worker#
3*60517a1eSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*60517a1eSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*60517a1eSAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*60517a1eSAndroid Build Coastguard Worker#
7*60517a1eSAndroid Build Coastguard Worker#     http://www.apache.org/licenses/LICENSE-2.0
8*60517a1eSAndroid Build Coastguard Worker#
9*60517a1eSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*60517a1eSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*60517a1eSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*60517a1eSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*60517a1eSAndroid Build Coastguard Worker# limitations under the License.
14*60517a1eSAndroid Build Coastguard Worker
15*60517a1eSAndroid Build Coastguard Worker---
16*60517a1eSAndroid Build Coastguard Workerbuildifier:
17*60517a1eSAndroid Build Coastguard Worker  # keep these arguments in sync with .pre-commit-config.yaml
18*60517a1eSAndroid Build Coastguard Worker  # Use a specific version to avoid skew issues when new versions are released.
19*60517a1eSAndroid Build Coastguard Worker  version: 6.1.0
20*60517a1eSAndroid Build Coastguard Worker  warnings: "all"
21*60517a1eSAndroid Build Coastguard Worker.minimum_supported_version: &minimum_supported_version
22*60517a1eSAndroid Build Coastguard Worker  # For testing minimum supported version.
23*60517a1eSAndroid Build Coastguard Worker  # NOTE: Keep in sync with //:version.bzl
24*60517a1eSAndroid Build Coastguard Worker  bazel: 6.4.0
25*60517a1eSAndroid Build Coastguard Worker  skip_in_bazel_downstream_pipeline: "Bazel 6 required"
26*60517a1eSAndroid Build Coastguard Worker.reusable_config: &reusable_config
27*60517a1eSAndroid Build Coastguard Worker  build_targets:
28*60517a1eSAndroid Build Coastguard Worker    - "--"
29*60517a1eSAndroid Build Coastguard Worker    - "..."
30*60517a1eSAndroid Build Coastguard Worker    # As a regression test for #225, check that wheel targets still build when
31*60517a1eSAndroid Build Coastguard Worker    # their package path is qualified with the repo name.
32*60517a1eSAndroid Build Coastguard Worker    - "@rules_python//examples/wheel/..."
33*60517a1eSAndroid Build Coastguard Worker  build_flags:
34*60517a1eSAndroid Build Coastguard Worker    - "--keep_going"
35*60517a1eSAndroid Build Coastguard Worker    - "--build_tag_filters=-integration-test"
36*60517a1eSAndroid Build Coastguard Worker  test_targets:
37*60517a1eSAndroid Build Coastguard Worker    - "--"
38*60517a1eSAndroid Build Coastguard Worker    - "..."
39*60517a1eSAndroid Build Coastguard Worker  test_flags:
40*60517a1eSAndroid Build Coastguard Worker    - "--test_tag_filters=-integration-test"
41*60517a1eSAndroid Build Coastguard Worker.common_workspace_flags_min_bazel: &common_workspace_flags_min_bazel
42*60517a1eSAndroid Build Coastguard Worker  test_flags:
43*60517a1eSAndroid Build Coastguard Worker    - "--noenable_bzlmod"
44*60517a1eSAndroid Build Coastguard Worker  build_flags:
45*60517a1eSAndroid Build Coastguard Worker    - "--noenable_bzlmod"
46*60517a1eSAndroid Build Coastguard Worker.common_workspace_flags: &common_workspace_flags
47*60517a1eSAndroid Build Coastguard Worker  test_flags:
48*60517a1eSAndroid Build Coastguard Worker    - "--noenable_bzlmod"
49*60517a1eSAndroid Build Coastguard Worker    - "--enable_workspace"
50*60517a1eSAndroid Build Coastguard Worker  build_flags:
51*60517a1eSAndroid Build Coastguard Worker    - "--noenable_bzlmod"
52*60517a1eSAndroid Build Coastguard Worker    - "--enable_workspace"
53*60517a1eSAndroid Build Coastguard Worker.common_bazelinbazel_config: &common_bazelinbazel_config
54*60517a1eSAndroid Build Coastguard Worker    build_flags:
55*60517a1eSAndroid Build Coastguard Worker      - "--build_tag_filters=integration-test"
56*60517a1eSAndroid Build Coastguard Worker    test_flags:
57*60517a1eSAndroid Build Coastguard Worker      - "--test_tag_filters=integration-test"
58*60517a1eSAndroid Build Coastguard Worker      - "--jobs=2"
59*60517a1eSAndroid Build Coastguard Worker      # The integration tests are so expensive that only a few can be run concurrently
60*60517a1eSAndroid Build Coastguard Worker      # without harming overall reliability and runtime.
61*60517a1eSAndroid Build Coastguard Worker      - "--local_test_jobs=2"
62*60517a1eSAndroid Build Coastguard Worker    build_targets: ["..."]
63*60517a1eSAndroid Build Coastguard Worker    test_targets: ["..."]
64*60517a1eSAndroid Build Coastguard Worker
65*60517a1eSAndroid Build Coastguard Worker.reusable_build_test_all: &reusable_build_test_all
66*60517a1eSAndroid Build Coastguard Worker  build_targets: ["..."]
67*60517a1eSAndroid Build Coastguard Worker  test_targets: ["..."]
68*60517a1eSAndroid Build Coastguard Worker.lockfile_mode_error: &lockfile_mode_error
69*60517a1eSAndroid Build Coastguard Worker  # For testing lockfile support
70*60517a1eSAndroid Build Coastguard Worker  skip_in_bazel_downstream_pipeline: "Lockfile depends on the bazel version"
71*60517a1eSAndroid Build Coastguard Worker  build_flags:
72*60517a1eSAndroid Build Coastguard Worker    - "--lockfile_mode=error"
73*60517a1eSAndroid Build Coastguard Worker  test_flags:
74*60517a1eSAndroid Build Coastguard Worker    - "--lockfile_mode=error"
75*60517a1eSAndroid Build Coastguard Worker  coverage_flags:
76*60517a1eSAndroid Build Coastguard Worker    - "--lockfile_mode=error"
77*60517a1eSAndroid Build Coastguard Worker.coverage_targets_example_bzlmod: &coverage_targets_example_bzlmod
78*60517a1eSAndroid Build Coastguard Worker  coverage_targets: ["..."]
79*60517a1eSAndroid Build Coastguard Worker.coverage_targets_example_bzlmod_build_file_generation: &coverage_targets_example_bzlmod_build_file_generation
80*60517a1eSAndroid Build Coastguard Worker  coverage_targets: ["//:bzlmod_build_file_generation_test"]
81*60517a1eSAndroid Build Coastguard Worker.coverage_targets_example_multi_python: &coverage_targets_example_multi_python
82*60517a1eSAndroid Build Coastguard Worker  coverage_targets:
83*60517a1eSAndroid Build Coastguard Worker    - //tests:my_lib_3_10_test
84*60517a1eSAndroid Build Coastguard Worker    - //tests:my_lib_3_11_test
85*60517a1eSAndroid Build Coastguard Worker    - //tests:my_lib_3_8_test
86*60517a1eSAndroid Build Coastguard Worker    - //tests:my_lib_3_9_test
87*60517a1eSAndroid Build Coastguard Worker    - //tests:my_lib_default_test
88*60517a1eSAndroid Build Coastguard Worker    - //tests:version_3_10_test
89*60517a1eSAndroid Build Coastguard Worker    - //tests:version_3_11_test
90*60517a1eSAndroid Build Coastguard Worker    - //tests:version_3_8_test
91*60517a1eSAndroid Build Coastguard Worker    - //tests:version_3_9_test
92*60517a1eSAndroid Build Coastguard Worker    - //tests:version_default_test
93*60517a1eSAndroid Build Coastguard Worker.pystar_base: &pystar_base
94*60517a1eSAndroid Build Coastguard Worker  bazel: "7.x"
95*60517a1eSAndroid Build Coastguard Worker  environment:
96*60517a1eSAndroid Build Coastguard Worker    RULES_PYTHON_ENABLE_PYSTAR: "1"
97*60517a1eSAndroid Build Coastguard Worker  test_flags:
98*60517a1eSAndroid Build Coastguard Worker    # The doc check tests fail because the Starlark implementation makes the
99*60517a1eSAndroid Build Coastguard Worker    # PyInfo and PyRuntimeInfo symbols become documented.
100*60517a1eSAndroid Build Coastguard Worker    - "--test_tag_filters=-integration-test,-doc_check_test"
101*60517a1eSAndroid Build Coastguard Workertasks:
102*60517a1eSAndroid Build Coastguard Worker  gazelle_extension_min:
103*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags_min_bazel
104*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
105*60517a1eSAndroid Build Coastguard Worker    name: "Gazelle: workspace, minumum supported Bazel version"
106*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
107*60517a1eSAndroid Build Coastguard Worker    build_targets: ["//..."]
108*60517a1eSAndroid Build Coastguard Worker    test_targets: ["//..."]
109*60517a1eSAndroid Build Coastguard Worker    working_directory: gazelle
110*60517a1eSAndroid Build Coastguard Worker  gazelle_extension_workspace:
111*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
112*60517a1eSAndroid Build Coastguard Worker    name: "Gazelle: workspace"
113*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
114*60517a1eSAndroid Build Coastguard Worker    build_targets: ["//..."]
115*60517a1eSAndroid Build Coastguard Worker    test_targets: ["//..."]
116*60517a1eSAndroid Build Coastguard Worker    working_directory: gazelle
117*60517a1eSAndroid Build Coastguard Worker  gazelle_extension:
118*60517a1eSAndroid Build Coastguard Worker    name: "Gazelle: default settings"
119*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
120*60517a1eSAndroid Build Coastguard Worker    build_targets: ["//..."]
121*60517a1eSAndroid Build Coastguard Worker    test_targets: ["//..."]
122*60517a1eSAndroid Build Coastguard Worker    working_directory: gazelle
123*60517a1eSAndroid Build Coastguard Worker
124*60517a1eSAndroid Build Coastguard Worker  ubuntu_min_workspace:
125*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
126*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
127*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags_min_bazel
128*60517a1eSAndroid Build Coastguard Worker    name: "Default: Ubuntu, workspace, minimum Bazel"
129*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
130*60517a1eSAndroid Build Coastguard Worker  ubuntu_min_bzlmod:
131*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
132*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
133*60517a1eSAndroid Build Coastguard Worker    name: "Default: Ubuntu, bzlmod, minimum Bazel"
134*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
135*60517a1eSAndroid Build Coastguard Worker  ubuntu:
136*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
137*60517a1eSAndroid Build Coastguard Worker    name: "Default: Ubuntu"
138*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
139*60517a1eSAndroid Build Coastguard Worker
140*60517a1eSAndroid Build Coastguard Worker  pystar_ubuntu_workspace:
141*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
142*60517a1eSAndroid Build Coastguard Worker    <<: *pystar_base
143*60517a1eSAndroid Build Coastguard Worker    name: "Default test: Ubuntu, Pystar, workspace"
144*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
145*60517a1eSAndroid Build Coastguard Worker  pystar_ubuntu_bzlmod:
146*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
147*60517a1eSAndroid Build Coastguard Worker    <<: *pystar_base
148*60517a1eSAndroid Build Coastguard Worker    name: "Default test: Ubuntu, Pystar, bzlmod"
149*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
150*60517a1eSAndroid Build Coastguard Worker  pystar_mac_workspace:
151*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
152*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
153*60517a1eSAndroid Build Coastguard Worker    <<: *pystar_base
154*60517a1eSAndroid Build Coastguard Worker    name: "Default test: Mac, Pystar, workspace"
155*60517a1eSAndroid Build Coastguard Worker    platform: macos
156*60517a1eSAndroid Build Coastguard Worker  pystar_windows_workspace:
157*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
158*60517a1eSAndroid Build Coastguard Worker    <<: *pystar_base
159*60517a1eSAndroid Build Coastguard Worker    name: "Default test: Windows, Pystar, workspace"
160*60517a1eSAndroid Build Coastguard Worker    platform: windows
161*60517a1eSAndroid Build Coastguard Worker
162*60517a1eSAndroid Build Coastguard Worker  debian:
163*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
164*60517a1eSAndroid Build Coastguard Worker    name: "Default: Debian"
165*60517a1eSAndroid Build Coastguard Worker    platform: debian11
166*60517a1eSAndroid Build Coastguard Worker  macos:
167*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
168*60517a1eSAndroid Build Coastguard Worker    name: "Default: MacOS"
169*60517a1eSAndroid Build Coastguard Worker    platform: macos
170*60517a1eSAndroid Build Coastguard Worker  windows:
171*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
172*60517a1eSAndroid Build Coastguard Worker    name: "Default: Windows"
173*60517a1eSAndroid Build Coastguard Worker    platform: windows
174*60517a1eSAndroid Build Coastguard Worker    test_flags:
175*60517a1eSAndroid Build Coastguard Worker      - "--test_tag_filters=-integration-test,-fix-windows"
176*60517a1eSAndroid Build Coastguard Worker  rbe_min:
177*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
178*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
179*60517a1eSAndroid Build Coastguard Worker    name: "RBE: Ubuntu, minimum Bazel"
180*60517a1eSAndroid Build Coastguard Worker    platform: rbe_ubuntu1604
181*60517a1eSAndroid Build Coastguard Worker    build_flags:
182*60517a1eSAndroid Build Coastguard Worker      # BazelCI sets --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1,
183*60517a1eSAndroid Build Coastguard Worker      # which prevents cc toolchain autodetection from working correctly
184*60517a1eSAndroid Build Coastguard Worker      # on Bazel 5.4 and earlier. To workaround this, manually specify the
185*60517a1eSAndroid Build Coastguard Worker      # build kite cc toolchain.
186*60517a1eSAndroid Build Coastguard Worker      - "--extra_toolchains=@buildkite_config//config:cc-toolchain"
187*60517a1eSAndroid Build Coastguard Worker      - "--build_tag_filters=-docs"
188*60517a1eSAndroid Build Coastguard Worker    test_flags:
189*60517a1eSAndroid Build Coastguard Worker      - "--test_tag_filters=-integration-test,-acceptance-test,-docs"
190*60517a1eSAndroid Build Coastguard Worker      # BazelCI sets --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1,
191*60517a1eSAndroid Build Coastguard Worker      # which prevents cc toolchain autodetection from working correctly
192*60517a1eSAndroid Build Coastguard Worker      # on Bazel 5.4 and earlier. To workaround this, manually specify the
193*60517a1eSAndroid Build Coastguard Worker      # build kite cc toolchain.
194*60517a1eSAndroid Build Coastguard Worker      - "--extra_toolchains=@buildkite_config//config:cc-toolchain"
195*60517a1eSAndroid Build Coastguard Worker  rbe:
196*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_config
197*60517a1eSAndroid Build Coastguard Worker    name: "RBE: Ubuntu"
198*60517a1eSAndroid Build Coastguard Worker    platform: rbe_ubuntu1604
199*60517a1eSAndroid Build Coastguard Worker    test_flags:
200*60517a1eSAndroid Build Coastguard Worker      - "--test_tag_filters=-integration-test,-acceptance-test"
201*60517a1eSAndroid Build Coastguard Worker      - "--extra_toolchains=@buildkite_config//config:cc-toolchain"
202*60517a1eSAndroid Build Coastguard Worker
203*60517a1eSAndroid Build Coastguard Worker  integration_test_build_file_generation_ubuntu_minimum_supported_workspace:
204*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
205*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
206*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags_min_bazel
207*60517a1eSAndroid Build Coastguard Worker    name: "examples/build_file_generation: Ubuntu, workspace, minimum Bazel"
208*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/build_file_generation
209*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
210*60517a1eSAndroid Build Coastguard Worker  integration_test_build_file_generation_ubuntu_workspace:
211*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
212*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
213*60517a1eSAndroid Build Coastguard Worker    name: "examples/build_file_generation: Ubuntu, workspace"
214*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/build_file_generation
215*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
216*60517a1eSAndroid Build Coastguard Worker  integration_test_build_file_generation_debian_workspace:
217*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
218*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
219*60517a1eSAndroid Build Coastguard Worker    name: "examples/build_file_generation: Debian, workspace"
220*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/build_file_generation
221*60517a1eSAndroid Build Coastguard Worker    platform: debian11
222*60517a1eSAndroid Build Coastguard Worker  integration_test_build_file_generation_macos_workspace:
223*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
224*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
225*60517a1eSAndroid Build Coastguard Worker    name: "examples/build_file_generation: macOS, workspace"
226*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/build_file_generation
227*60517a1eSAndroid Build Coastguard Worker    platform: macos
228*60517a1eSAndroid Build Coastguard Worker  integration_test_build_file_generation_windows_workspace:
229*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
230*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
231*60517a1eSAndroid Build Coastguard Worker    name: "examples/build_file_generation: Windows, workspace"
232*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/build_file_generation
233*60517a1eSAndroid Build Coastguard Worker    platform: windows
234*60517a1eSAndroid Build Coastguard Worker
235*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_ubuntu_min:
236*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
237*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
238*60517a1eSAndroid Build Coastguard Worker    coverage_targets: ["//:test"]
239*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod: Ubuntu, minimum Bazel"
240*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod
241*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
242*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_ubuntu:
243*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
244*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod
245*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod: Ubuntu"
246*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod
247*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
248*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_debian:
249*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
250*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod
251*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod: Debian"
252*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod
253*60517a1eSAndroid Build Coastguard Worker    platform: debian11
254*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_macos:
255*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
256*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod
257*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod: macOS"
258*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod
259*60517a1eSAndroid Build Coastguard Worker    platform: macos
260*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_windows:
261*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
262*60517a1eSAndroid Build Coastguard Worker    # coverage is not supported on Windows
263*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod: Windows"
264*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod
265*60517a1eSAndroid Build Coastguard Worker    platform: windows
266*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_ubuntu_lockfile:
267*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
268*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod
269*60517a1eSAndroid Build Coastguard Worker    <<: *lockfile_mode_error
270*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod: Ubuntu with lockfile"
271*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod
272*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
273*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_macos_lockfile:
274*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
275*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod
276*60517a1eSAndroid Build Coastguard Worker    <<: *lockfile_mode_error
277*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod: macOS with lockfile"
278*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod
279*60517a1eSAndroid Build Coastguard Worker    platform: macos
280*60517a1eSAndroid Build Coastguard Worker
281*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_generate_build_file_generation_ubuntu_min:
282*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
283*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
284*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod_build_file_generation
285*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod_build_file_generation: Ubuntu, minimum Bazel"
286*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod_build_file_generation
287*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
288*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_generation_build_files_ubuntu:
289*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
290*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod_build_file_generation
291*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod_build_file_generation: Ubuntu"
292*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod_build_file_generation
293*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
294*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_generation_build_files_ubuntu_run:
295*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
296*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod_build_file_generation: Ubuntu, Gazelle and pip"
297*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod_build_file_generation
298*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
299*60517a1eSAndroid Build Coastguard Worker    shell_commands:
300*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:gazelle_python_manifest.update"
301*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:gazelle -- update"
302*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_build_file_generation_debian:
303*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
304*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod_build_file_generation
305*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod_build_file_integration: Debian"
306*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod_build_file_generation
307*60517a1eSAndroid Build Coastguard Worker    platform: debian11
308*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_build_file_generation_macos:
309*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
310*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_bzlmod_build_file_generation
311*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod_build_file_generation: MacOS"
312*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod_build_file_generation
313*60517a1eSAndroid Build Coastguard Worker    platform: macos
314*60517a1eSAndroid Build Coastguard Worker  integration_test_bzlmod_build_file_generation_windows:
315*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
316*60517a1eSAndroid Build Coastguard Worker    # coverage is not supported on Windows
317*60517a1eSAndroid Build Coastguard Worker    name: "examples/bzlmod_build_file_generateion: Windows"
318*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/bzlmod_build_file_generation
319*60517a1eSAndroid Build Coastguard Worker    platform: windows
320*60517a1eSAndroid Build Coastguard Worker
321*60517a1eSAndroid Build Coastguard Worker  integration_test_multi_python_versions_ubuntu_workspace:
322*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
323*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
324*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_multi_python
325*60517a1eSAndroid Build Coastguard Worker    name: "examples/multi_python_versions: Ubuntu, workspace"
326*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/multi_python_versions
327*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
328*60517a1eSAndroid Build Coastguard Worker  integration_test_multi_python_versions_debian_workspace:
329*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
330*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
331*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_multi_python
332*60517a1eSAndroid Build Coastguard Worker    name: "examples/multi_python_versions: Debian, workspace"
333*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/multi_python_versions
334*60517a1eSAndroid Build Coastguard Worker    platform: debian11
335*60517a1eSAndroid Build Coastguard Worker  integration_test_multi_python_versions_macos_workspace:
336*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
337*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
338*60517a1eSAndroid Build Coastguard Worker    <<: *coverage_targets_example_multi_python
339*60517a1eSAndroid Build Coastguard Worker    name: "examples/multi_python_versions: MacOS, workspace"
340*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/multi_python_versions
341*60517a1eSAndroid Build Coastguard Worker    platform: macos
342*60517a1eSAndroid Build Coastguard Worker  integration_test_multi_python_versions_windows_workspace:
343*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
344*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
345*60517a1eSAndroid Build Coastguard Worker    # coverage is not supported on Windows
346*60517a1eSAndroid Build Coastguard Worker    name: "examples/multi_python_versions: Windows, workspace"
347*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/multi_python_versions
348*60517a1eSAndroid Build Coastguard Worker    platform: windows
349*60517a1eSAndroid Build Coastguard Worker
350*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_ubuntu_min_workspace:
351*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
352*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags_min_bazel
353*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
354*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse: Ubuntu, workspace, minimum supporte Bazel version"
355*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse
356*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
357*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_ubuntu_min_bzlmod:
358*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
359*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
360*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse: Ubuntu, bzlmod, minimum supporte Bazel version"
361*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse
362*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
363*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_ubuntu:
364*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
365*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse: Ubuntu"
366*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse
367*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
368*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_debian:
369*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
370*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse: Debian"
371*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse
372*60517a1eSAndroid Build Coastguard Worker    platform: debian11
373*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_macos:
374*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
375*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse: MacOS"
376*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse
377*60517a1eSAndroid Build Coastguard Worker    platform: macos
378*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_windows:
379*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
380*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse: Windows"
381*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse
382*60517a1eSAndroid Build Coastguard Worker    platform: windows
383*60517a1eSAndroid Build Coastguard Worker
384*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_vendored_ubuntu_min_workspace:
385*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
386*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags_min_bazel
387*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
388*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse_vendored: Ubuntu, workspace, minimum Bazel"
389*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse_vendored
390*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
391*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_vendored_ubuntu_min_bzlmod:
392*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
393*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
394*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse_vendored: Ubuntu, bzlmod, minimum Bazel"
395*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse_vendored
396*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
397*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_vendored_ubuntu:
398*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
399*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse_vendored: Ubuntu"
400*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse_vendored
401*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
402*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_vendored_debian:
403*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
404*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse_vendored: Debian"
405*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse_vendored
406*60517a1eSAndroid Build Coastguard Worker    platform: debian11
407*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_parse_vendored_macos:
408*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
409*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_parse_vendored: MacOS"
410*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_parse_vendored
411*60517a1eSAndroid Build Coastguard Worker    platform: macos
412*60517a1eSAndroid Build Coastguard Worker  # We don't run pip_parse_vendored under Windows as the file checked in is
413*60517a1eSAndroid Build Coastguard Worker  # generated from a repository rule containing OS-specific rendered paths.
414*60517a1eSAndroid Build Coastguard Worker
415*60517a1eSAndroid Build Coastguard Worker  # The proto example is workspace-only; bzlmod functionality is covered
416*60517a1eSAndroid Build Coastguard Worker  # by examples/bzlmod/py_proto_library
417*60517a1eSAndroid Build Coastguard Worker  integration_test_py_proto_library_ubuntu_workspace:
418*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
419*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
420*60517a1eSAndroid Build Coastguard Worker    name: "examples/py_proto_library: Ubuntu, workspace"
421*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/py_proto_library
422*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
423*60517a1eSAndroid Build Coastguard Worker  integration_test_py_proto_library_debian_workspace:
424*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
425*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
426*60517a1eSAndroid Build Coastguard Worker    name: "examples/py_proto_library: Debian, workspace"
427*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/py_proto_library
428*60517a1eSAndroid Build Coastguard Worker    platform: debian11
429*60517a1eSAndroid Build Coastguard Worker  integration_test_py_proto_library_macos_workspace:
430*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
431*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
432*60517a1eSAndroid Build Coastguard Worker    name: "examples/py_proto_library: MacOS, workspace"
433*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/py_proto_library
434*60517a1eSAndroid Build Coastguard Worker    platform: macos
435*60517a1eSAndroid Build Coastguard Worker  integration_test_py_proto_library_windows_workspace:
436*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
437*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
438*60517a1eSAndroid Build Coastguard Worker    name: "examples/py_proto_library: Windows, workspace"
439*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/py_proto_library
440*60517a1eSAndroid Build Coastguard Worker    platform: windows
441*60517a1eSAndroid Build Coastguard Worker
442*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_repository_annotations_ubuntu_workspace:
443*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
444*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
445*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_repository_annotations: Ubuntu, workspace"
446*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_repository_annotations
447*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
448*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_repository_annotations_debian_workspace:
449*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
450*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
451*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_repository_annotations: Debian, workspace"
452*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_repository_annotations
453*60517a1eSAndroid Build Coastguard Worker    platform: debian11
454*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_repository_annotations_macos_workspace:
455*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
456*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
457*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_repository_annotations: macOS, workspace"
458*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_repository_annotations
459*60517a1eSAndroid Build Coastguard Worker    platform: macos
460*60517a1eSAndroid Build Coastguard Worker  integration_test_pip_repository_annotations_windows_workspace:
461*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
462*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
463*60517a1eSAndroid Build Coastguard Worker    name: "examples/pip_repository_annotations: Windows, workspace"
464*60517a1eSAndroid Build Coastguard Worker    working_directory: examples/pip_repository_annotations
465*60517a1eSAndroid Build Coastguard Worker    platform: windows
466*60517a1eSAndroid Build Coastguard Worker
467*60517a1eSAndroid Build Coastguard Worker  integration_test_bazelinbazel_ubuntu:
468*60517a1eSAndroid Build Coastguard Worker    <<: *common_bazelinbazel_config
469*60517a1eSAndroid Build Coastguard Worker    name: "tests/integration bazel-in-bazel: Ubuntu"
470*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
471*60517a1eSAndroid Build Coastguard Worker  integration_test_bazelinbazel_debian:
472*60517a1eSAndroid Build Coastguard Worker    <<: *common_bazelinbazel_config
473*60517a1eSAndroid Build Coastguard Worker    name: "tests/integration bazel-in-bazel: Debian"
474*60517a1eSAndroid Build Coastguard Worker    platform: debian11
475*60517a1eSAndroid Build Coastguard Worker
476*60517a1eSAndroid Build Coastguard Worker  integration_test_compile_pip_requirements_ubuntu:
477*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
478*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements: Ubuntu"
479*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements
480*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
481*60517a1eSAndroid Build Coastguard Worker    shell_commands:
482*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:requirements.update does the
483*60517a1eSAndroid Build Coastguard Worker    # right thing.
484*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock.txt"
485*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
486*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:requirements.update"
487*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
488*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:os_specific_requirements.update does the
489*60517a1eSAndroid Build Coastguard Worker    # right thing.
490*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock_linux.txt"
491*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
492*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:os_specific_requirements.update"
493*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
494*60517a1eSAndroid Build Coastguard Worker  integration_test_compile_pip_requirements_debian:
495*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
496*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements: Debian"
497*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements
498*60517a1eSAndroid Build Coastguard Worker    platform: debian11
499*60517a1eSAndroid Build Coastguard Worker    shell_commands:
500*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:requirements.update does the
501*60517a1eSAndroid Build Coastguard Worker    # right thing.
502*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock.txt"
503*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
504*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:requirements.update"
505*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
506*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:os_specific_requirements.update does the
507*60517a1eSAndroid Build Coastguard Worker    # right thing.
508*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock_linux.txt"
509*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
510*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:os_specific_requirements.update"
511*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
512*60517a1eSAndroid Build Coastguard Worker  integration_test_compile_pip_requirements_macos:
513*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
514*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements: MacOS"
515*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements
516*60517a1eSAndroid Build Coastguard Worker    platform: macos
517*60517a1eSAndroid Build Coastguard Worker    shell_commands:
518*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:requirements.update does the
519*60517a1eSAndroid Build Coastguard Worker    # right thing.
520*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock.txt"
521*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
522*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:requirements.update"
523*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
524*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:os_specific_requirements.update does the
525*60517a1eSAndroid Build Coastguard Worker    # right thing.
526*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock_darwin.txt"
527*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
528*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:os_specific_requirements.update"
529*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
530*60517a1eSAndroid Build Coastguard Worker  integration_test_compile_pip_requirements_windows:
531*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
532*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements: Windows"
533*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements
534*60517a1eSAndroid Build Coastguard Worker    platform: windows
535*60517a1eSAndroid Build Coastguard Worker    shell_commands:
536*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:requirements.update does the
537*60517a1eSAndroid Build Coastguard Worker    # right thing.
538*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock.txt"
539*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
540*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:requirements.update"
541*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
542*60517a1eSAndroid Build Coastguard Worker    # Make a change to the locked requirements and then assert that //:os_specific_requirements.update does the
543*60517a1eSAndroid Build Coastguard Worker    # right thing.
544*60517a1eSAndroid Build Coastguard Worker    - "echo '' > requirements_lock_windows.txt"
545*60517a1eSAndroid Build Coastguard Worker    - "! git diff --exit-code"
546*60517a1eSAndroid Build Coastguard Worker    - "bazel run //:os_specific_requirements.update"
547*60517a1eSAndroid Build Coastguard Worker    - "git diff --exit-code"
548*60517a1eSAndroid Build Coastguard Worker
549*60517a1eSAndroid Build Coastguard Worker
550*60517a1eSAndroid Build Coastguard Worker  integration_test_ignore_root_user_error_macos_workspace:
551*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
552*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
553*60517a1eSAndroid Build Coastguard Worker    name: "ignore_root_user_error: macOS, workspace"
554*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/ignore_root_user_error
555*60517a1eSAndroid Build Coastguard Worker    platform: macos
556*60517a1eSAndroid Build Coastguard Worker  integration_test_ignore_root_user_error_windows_workspace:
557*60517a1eSAndroid Build Coastguard Worker    <<: *reusable_build_test_all
558*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags
559*60517a1eSAndroid Build Coastguard Worker    name: "ignore_root_user_error: Windows, workspace"
560*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/ignore_root_user_error
561*60517a1eSAndroid Build Coastguard Worker    platform: windows
562*60517a1eSAndroid Build Coastguard Worker
563*60517a1eSAndroid Build Coastguard Worker  integration_compile_pip_requirements_test_from_external_repo_ubuntu_min_workspace:
564*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
565*60517a1eSAndroid Build Coastguard Worker    <<: *common_workspace_flags_min_bazel
566*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements_test_from_external_repo: Ubuntu, workspace, minimum Bazel"
567*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements_test_from_external_repo
568*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
569*60517a1eSAndroid Build Coastguard Worker    shell_commands:
570*60517a1eSAndroid Build Coastguard Worker    # Assert that @compile_pip_requirements//:requirements_test does the right thing.
571*60517a1eSAndroid Build Coastguard Worker    - "bazel test @compile_pip_requirements//..."
572*60517a1eSAndroid Build Coastguard Worker  integration_compile_pip_requirements_test_from_external_repo_ubuntu_min_bzlmod:
573*60517a1eSAndroid Build Coastguard Worker    <<: *minimum_supported_version
574*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements_test_from_external_repo: Ubuntu, bzlmod, minimum Bazel"
575*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements_test_from_external_repo
576*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
577*60517a1eSAndroid Build Coastguard Worker    shell_commands:
578*60517a1eSAndroid Build Coastguard Worker    # Assert that @compile_pip_requirements//:requirements_test does the right thing.
579*60517a1eSAndroid Build Coastguard Worker    - "bazel test @compile_pip_requirements//..."
580*60517a1eSAndroid Build Coastguard Worker  integration_compile_pip_requirements_test_from_external_repo_ubuntu:
581*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements_test_from_external_repo: Ubuntu"
582*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements_test_from_external_repo
583*60517a1eSAndroid Build Coastguard Worker    platform: ubuntu2004
584*60517a1eSAndroid Build Coastguard Worker    shell_commands:
585*60517a1eSAndroid Build Coastguard Worker    # Assert that @compile_pip_requirements//:requirements_test does the right thing.
586*60517a1eSAndroid Build Coastguard Worker    - "bazel test @compile_pip_requirements//..."
587*60517a1eSAndroid Build Coastguard Worker  integration_compile_pip_requirements_test_from_external_repo_debian:
588*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements_test_from_external_repo: Debian"
589*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements_test_from_external_repo
590*60517a1eSAndroid Build Coastguard Worker    platform: debian11
591*60517a1eSAndroid Build Coastguard Worker    shell_commands:
592*60517a1eSAndroid Build Coastguard Worker    # Assert that @compile_pip_requirements//:requirements_test does the right thing.
593*60517a1eSAndroid Build Coastguard Worker    - "bazel test @compile_pip_requirements//..."
594*60517a1eSAndroid Build Coastguard Worker  integration_compile_pip_requirements_test_from_external_repo_macos:
595*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements_test_from_external_repo: macOS"
596*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements_test_from_external_repo
597*60517a1eSAndroid Build Coastguard Worker    platform: macos
598*60517a1eSAndroid Build Coastguard Worker    shell_commands:
599*60517a1eSAndroid Build Coastguard Worker    # Assert that @compile_pip_requirements//:requirements_test does the right thing.
600*60517a1eSAndroid Build Coastguard Worker    - "bazel test @compile_pip_requirements//..."
601*60517a1eSAndroid Build Coastguard Worker  integration_compile_pip_requirements_test_from_external_repo_windows:
602*60517a1eSAndroid Build Coastguard Worker    name: "compile_pip_requirements_test_from_external_repo: Windows"
603*60517a1eSAndroid Build Coastguard Worker    working_directory: tests/integration/compile_pip_requirements_test_from_external_repo
604*60517a1eSAndroid Build Coastguard Worker    platform: windows
605*60517a1eSAndroid Build Coastguard Worker    shell_commands:
606*60517a1eSAndroid Build Coastguard Worker    # Assert that @compile_pip_requirements//:requirements_test does the right thing.
607*60517a1eSAndroid Build Coastguard Worker    - "bazel test @compile_pip_requirements//..."
608