|
13 | 13 | IMAGE_WIN_11: "platform-ingest-elastic-agent-windows-11-1749862860" |
14 | 14 |
|
15 | 15 | steps: |
16 | | - - label: "check-ci" |
17 | | - key: "check-ci" |
18 | | - command: ".buildkite/scripts/steps/check-ci.sh" |
19 | | - agents: |
20 | | - provider: "gcp" |
21 | | - image: "${IMAGE_UBUNTU_2204_X86_64}" |
22 | | - retry: |
23 | | - manual: |
24 | | - allowed: true |
25 | | - |
26 | | - - group: "Unit tests" |
27 | | - key: "unit-tests" |
28 | | - steps: |
29 | | - - label: "Unit tests - Ubuntu 22.04" |
30 | | - key: "unit-tests-2204" |
31 | | - command: ".buildkite/scripts/steps/unit-tests.sh" |
32 | | - artifact_paths: |
33 | | - - "build/TEST-*.html" |
34 | | - - "build/TEST-*.xml" |
35 | | - - "build/diagnostics/*" |
36 | | - - "coverage-*.out" |
37 | | - agents: |
38 | | - provider: "gcp" |
39 | | - image: "${IMAGE_UBUNTU_2204_X86_64}" |
40 | | - retry: |
41 | | - automatic: |
42 | | - limit: 1 |
43 | | - manual: |
44 | | - allowed: true |
45 | | - |
46 | | - - label: "Unit tests - Ubuntu 22.04 with requirefips build tag" |
47 | | - key: "unit-tests-2204-fips-tag" |
48 | | - command: ".buildkite/scripts/steps/unit-tests.sh" |
49 | | - env: |
50 | | - FIPS: "true" |
51 | | - artifact_paths: |
52 | | - - "build/TEST-*.html" |
53 | | - - "build/TEST-*.xml" |
54 | | - - "build/diagnostics/*" |
55 | | - - "coverage-*.out" |
56 | | - agents: |
57 | | - provider: "gcp" |
58 | | - image: "${IMAGE_UBUNTU_2204_X86_64}" |
59 | | - retry: |
60 | | - automatic: |
61 | | - limit: 1 |
62 | | - manual: |
63 | | - allowed: true |
64 | | - |
65 | | - - label: "Unit tests - fips140=only Ubuntu 22.04" |
66 | | - key: "unit-tests-2204-fips140-only" |
67 | | - command: ".buildkite/scripts/steps/unit-tests.sh" |
68 | | - env: |
69 | | - FIPS: "true" |
70 | | - GODEBUG: "fips140=only" |
71 | | - artifact_paths: |
72 | | - - "build/TEST-*.html" |
73 | | - - "build/TEST-*.xml" |
74 | | - - "build/diagnostics/*" |
75 | | - - "coverage-*.out" |
76 | | - agents: |
77 | | - provider: "gcp" |
78 | | - image: "${IMAGE_UBUNTU_2204_X86_64}" |
79 | | - retry: |
80 | | - automatic: |
81 | | - limit: 1 |
82 | | - manual: |
83 | | - allowed: true |
84 | | - |
85 | | - - label: "Unit tests - Ubuntu 22.04 ARM64" |
86 | | - key: "unit-tests-2204-arm64" |
87 | | - command: ".buildkite/scripts/steps/unit-tests.sh" |
88 | | - artifact_paths: |
89 | | - - "build/TEST-*.html" |
90 | | - - "build/TEST-*.xml" |
91 | | - - "build/diagnostics/*" |
92 | | - - "coverage-*.out" |
93 | | - agents: |
94 | | - provider: "aws" |
95 | | - image: "${IMAGE_UBUNTU_2204_ARM_64}" |
96 | | - diskSizeGb: 200 |
97 | | - instanceType: "m6g.xlarge" |
98 | | - retry: |
99 | | - automatic: |
100 | | - limit: 1 |
101 | | - manual: |
102 | | - allowed: true |
103 | | - |
104 | | - - label: "Unit tests - Windows 2022" |
105 | | - key: "unit-tests-win2022" |
106 | | - command: .buildkite/scripts/steps/unit-tests.ps1 |
107 | | - artifact_paths: |
108 | | - - "build/TEST-*.html" |
109 | | - - "build/TEST-*.xml" |
110 | | - - "build/diagnostics/*" |
111 | | - - "coverage-*.out" |
112 | | - agents: |
113 | | - provider: "gcp" |
114 | | - image: "${IMAGE_WIN_2022}" |
115 | | - machine_type: "n2-standard-8" |
116 | | - disk_size: 200 |
117 | | - disk_type: "pd-ssd" |
118 | | - retry: |
119 | | - automatic: |
120 | | - limit: 1 |
121 | | - manual: |
122 | | - allowed: true |
123 | | - |
124 | | - - label: "Unit tests - Windows 2016" |
125 | | - key: "unit-tests-win2016" |
126 | | - command: .buildkite/scripts/steps/unit-tests.ps1 |
127 | | - artifact_paths: |
128 | | - - "build/TEST-*.html" |
129 | | - - "build/TEST-*.xml" |
130 | | - - "build/diagnostics/*" |
131 | | - - "coverage-*.out" |
132 | | - agents: |
133 | | - provider: "gcp" |
134 | | - image: "${IMAGE_WIN_2016}" |
135 | | - machine_type: "n2-standard-8" |
136 | | - disk_size: 200 |
137 | | - disk_type: "pd-ssd" |
138 | | - retry: |
139 | | - automatic: |
140 | | - limit: 1 |
141 | | - manual: |
142 | | - allowed: true |
143 | | - |
144 | | - - group: "macOS tests" |
145 | | - key: "macos-unit-tests" |
146 | | - steps: |
147 | | - - label: "Unit tests - macOS 15 ARM" |
148 | | - command: ".buildkite/scripts/steps/unit-tests.sh" |
149 | | - artifact_paths: |
150 | | - - "build/TEST-*.html" |
151 | | - - "build/TEST-*.xml" |
152 | | - - "build/diagnostics/*" |
153 | | - - "coverage-*.out" |
154 | | - agents: |
155 | | - provider: orka |
156 | | - imagePrefix: generic-base-15-arm-002 |
157 | | - retry: |
158 | | - automatic: |
159 | | - limit: 1 |
160 | | - manual: |
161 | | - allowed: true |
162 | | - |
163 | | - # Runs only on main and release branches |
164 | | - - label: "Unit tests - macOS 13" |
165 | | - command: ".buildkite/scripts/steps/unit-tests.sh" |
166 | | - branches: "main 8.* 9.*" |
167 | | - artifact_paths: |
168 | | - - "build/TEST-*.html" |
169 | | - - "build/TEST-*.xml" |
170 | | - - "build/diagnostics/*" |
171 | | - - "coverage-*.out" |
172 | | - agents: |
173 | | - provider: orka |
174 | | - imagePrefix: generic-13-ventura-x64 |
175 | | - retry: |
176 | | - automatic: |
177 | | - limit: 1 |
178 | | - manual: |
179 | | - allowed: true |
180 | | - |
181 | | - - group: "Desktop Windows tests" |
182 | | - key: "extended-windows" |
183 | | - steps: |
184 | | - - label: "Unit tests - Windows 10" |
185 | | - key: "unit-tests-win10" |
186 | | - command: .buildkite/scripts/steps/unit-tests.ps1 |
187 | | - artifact_paths: |
188 | | - - "build/TEST-*.html" |
189 | | - - "build/TEST-*.xml" |
190 | | - - "build/diagnostics/*" |
191 | | - - "coverage-*.out" |
192 | | - agents: |
193 | | - provider: "gcp" |
194 | | - image: "${IMAGE_WIN_10}" |
195 | | - machine_type: "n2-standard-8" |
196 | | - disk_type: "pd-ssd" |
197 | | - retry: |
198 | | - automatic: |
199 | | - limit: 1 |
200 | | - manual: |
201 | | - allowed: true |
202 | | - |
203 | | - - label: "Unit tests - Windows 11" |
204 | | - key: "unit-tests-win11" |
205 | | - command: .buildkite/scripts/steps/unit-tests.ps1 |
206 | | - artifact_paths: |
207 | | - - "build/TEST-*.html" |
208 | | - - "build/TEST-*.xml" |
209 | | - - "build/diagnostics/*" |
210 | | - - "coverage-*.out" |
211 | | - agents: |
212 | | - provider: "gcp" |
213 | | - image: "${IMAGE_WIN_11}" |
214 | | - machine_type: "n2-standard-8" |
215 | | - disk_type: "pd-ssd" |
216 | | - retry: |
217 | | - automatic: |
218 | | - limit: 1 |
219 | | - manual: |
220 | | - allowed: true |
221 | | - |
222 | | - - label: ":junit: Junit annotate" |
223 | | - plugins: |
224 | | - - junit-annotate#v2.5.0: |
225 | | - artifacts: "**TEST-*.xml" |
226 | | - always-annotate: true |
227 | | - agents: |
228 | | - provider: "gcp" |
229 | | - depends_on: |
230 | | - - step: "unit-tests-2204" |
231 | | - allow_failure: true |
232 | | - - step: "unit-tests-2204-fips-tag" |
233 | | - allow_failure: true |
234 | | - - step: "unit-tests-2204-fips140-only" |
235 | | - allow_failure: true |
236 | | - - step: "unit-tests-2204-arm64" |
237 | | - allow_failure: true |
238 | | - - step: "unit-tests-win2022" |
239 | | - allow_failure: true |
240 | | - - step: "unit-tests-win2016" |
241 | | - allow_failure: true |
242 | | - - step: "macos-unit-tests" |
243 | | - allow_failure: true |
244 | | - - step: "unit-tests-win10" |
245 | | - allow_failure: true |
246 | | - - step: "unit-tests-win11" |
247 | | - allow_failure: true |
248 | | - |
249 | | - - label: "Merge coverage reports" |
250 | | - key: "merge-coverage" |
251 | | - env: |
252 | | - BUILDKITE_REPO: "" |
253 | | - command: | |
254 | | - .buildkite/scripts/steps/merge.sh |
255 | | - artifact_paths: |
256 | | - - "build/TEST-go-unit.cov" |
257 | | - agents: |
258 | | - image: "golang:1.24.4" |
259 | | - depends_on: |
260 | | - - unit-tests |
261 | | - - extended-windows |
262 | | - allow_dependency_failure: true |
263 | | - soft_fail: true # Until https://github.com/elastic/ingest-dev/issues/4042 is resolved |
264 | | - |
265 | | - - group: "K8s tests" |
266 | | - key: "k8s-tests" |
267 | | - steps: |
268 | | - - label: "K8s tests: {{matrix.k8s_version}}" |
269 | | - env: |
270 | | - K8S_VERSION: "v{{matrix.k8s_version}}" |
271 | | - KIND_VERSION: "v0.27.0" |
272 | | - command: ".buildkite/scripts/steps/k8s-tests.sh" |
273 | | - agents: |
274 | | - provider: "gcp" |
275 | | - image: "${IMAGE_UBUNTU_2204_X86_64}" |
276 | | - matrix: |
277 | | - setup: |
278 | | - k8s_version: |
279 | | - - "1.33.0" |
280 | | - - "1.32.0" |
281 | | - - "1.31.0" |
282 | | - - "1.30.0" |
283 | | - - "1.29.4" |
284 | | - - "1.28.9" |
285 | | - retry: |
286 | | - manual: |
287 | | - allowed: true |
288 | | - |
289 | | - - label: ":sonarqube: Continuous Code Inspection" |
290 | | - env: |
291 | | - VAULT_SONAR_TOKEN_PATH: "kv/ci-shared/platform-ingest/elastic/elastic-agent/sonar-analyze-token" |
292 | | - agents: |
293 | | - image: "docker.elastic.co/cloud-ci/sonarqube/buildkite-scanner:latest" |
294 | | - command: |
295 | | - - "buildkite-agent artifact download --step merge-coverage build/TEST-go-unit.cov ." |
296 | | - - "/scan-source-code.sh" |
297 | | - depends_on: |
298 | | - - "merge-coverage" |
299 | | - retry: |
300 | | - manual: |
301 | | - allowed: true |
302 | | - soft_fail: true # Until https://github.com/elastic/ingest-dev/issues/4042 is resolved |
303 | | - |
304 | | - # Triggers a dynamic step: Sync K8s |
305 | | - # Runs only on main and if k8s files are changed |
306 | | - - label: "Trigger k8s sync" |
307 | | - branches: main |
308 | | - plugins: |
309 | | - - monorepo-diff#v1.2.0: |
310 | | - diff: "git diff --name-only HEAD~1" |
311 | | - interpolation: false |
312 | | - watch: |
313 | | - - path: |
314 | | - - deploy/kubernetes/* |
315 | | - - version/docs/version.asciidoc |
316 | | - config: |
317 | | - label: "Sync K8s" |
318 | | - command: ".buildkite/scripts/steps/sync-k8s.sh" |
319 | | - agents: |
320 | | - provider: "gcp" |
321 | | - image: "${IMAGE_UBUNTU_2204_X86_64}" |
322 | | - env: |
323 | | - - GH_VERSION=2.4.0 |
324 | | - |
325 | 16 | # Trigger for pull requests |
326 | 17 | - label: "Trigger Extended tests for Pull request" |
327 | 18 | if: | |
|
0 commit comments