-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.gitlab-ci.yml
557 lines (511 loc) · 19.3 KB
/
.gitlab-ci.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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
include:
- remote: https://gitlab-templates.ddbuild.io/libdatadog/include/single-step-instrumentation-tests.yml
stages:
- nodejs_ssi_pipelines
- java_ssi_pipelines
- python_ssi_pipelines
- php_ssi_pipelines
- dotnet_ssi_pipelines
- ruby_ssi_pipelines
- stats_results
- parse_results
- before_tests
variables:
# Do not modify this - must be the repository name for Kubernetes gitlab runners to run
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: system-tests #helm-charts
TEST: 1
.step1_generate_aws_ssi_pipeline:
"image": "registry.ddbuild.io/docker:20.10.13-gbi-focal"
"tags": ["arch:amd64"]
stage: nodejs_ssi_pipelines
script:
- echo ">>>>>>>>>>>>>>> Generating lang pipeline >>>>>>>>>>>>>>>"
- echo "FILTER_ENV=${ONBOARDING_FILTER_ENV:-prod}" >> run.env
- echo "INSTALLER_LIBRARY_VERSION=${DD_INSTALLER_LIBRARY_VERSION:- }" >> run.env
- echo "INSTALLER_INJECTOR_VERSION=${DD_INSTALLER_INJECTOR_VERSION:- }" >> run.env
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
- when: manual
allow_failure: true
artifacts:
reports:
dotenv: run.env
.compute_aws_scenarios:
image: registry.ddbuild.io/ci/libdatadog-build/system-tests:48436362
tags: ["arch:arm64"]
stage: nodejs_ssi_pipelines
allow_failure: true
variables:
TEST_LIBRARY: "nodejs"
ONBOARDING_FILTER_WEBLOG: "test-app-nodejs"
SCENARIO: "HOST_AUTO_INJECTION_INSTALL_SCRIPT"
#Because sometimes I don't want to run all pipeline, I only run step1_xx with env filter param
ONBOARDING_FILTER_ENV: "$FILTER_ENV"
DD_INSTALLER_LIBRARY_VERSION: "$INSTALLER_LIBRARY_VERSION"
DD_INSTALLER_INJECTOR_VERSION: "$INSTALLER_INJECTOR_VERSION"
before_script:
- export DD_API_KEY_ONBOARDING=xyz
- export DD_APP_KEY_ONBOARDING=xyz
script:
- ./build.sh -i runner
- ./run.sh $SCENARIO --vm-weblog ${ONBOARDING_FILTER_WEBLOG} --vm-env ${ONBOARDING_FILTER_ENV} --vm-library ${TEST_LIBRARY} --vm-provider aws --vm-default-vms All --vm-gitlab-pipeline system-tests
after_script:
- SCENARIO_SUFIX=$(echo "$SCENARIO" | tr '[:upper:]' '[:lower:]')
- mkdir -p reports/logs_"${SCENARIO_SUFIX}_${ONBOARDING_FILTER_WEBLOG}"
- cp -R logs_"${SCENARIO_SUFIX}"/gitlab_pipeline.yml reports/logs_"${SCENARIO_SUFIX}_${ONBOARDING_FILTER_WEBLOG}"/
artifacts:
paths:
- reports/
.x_compute_docker_scenarios:
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/test-infra-definitions/runner:a58cc31c
tags: ["arch:amd64"]
stage: nodejs_ssi_pipelines
variables:
TEST_LIBRARY: "nodejs"
#Because sometimes I don't want to run all pipeline, I only run step1_xx with env filter param
ONBOARDING_FILTER_ENV: "$FILTER_ENV"
DD_INSTALLER_LIBRARY_VERSION: "$INSTALLER_LIBRARY_VERSION"
DD_INSTALLER_INJECTOR_VERSION: "$INSTALLER_INJECTOR_VERSION"
script:
- python utils/docker_ssi/docker_ssi_matrix_builder.py --language $TEST_LIBRARY --format yaml --output-file gitlab_pipeline.yml
needs:
- job: step1_generate_nodejs_ssi_pipeline
artifacts: true
after_script:
- SCENARIO_SUFIX="docker_ssi"
- mkdir -p reports/logs_"${SCENARIO_SUFIX}"
- cp gitlab_pipeline.yml reports/logs_"${SCENARIO_SUFIX}"/
artifacts:
paths:
- reports/
.x_compute_k8s_scenarios:
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/test-infra-definitions/runner:a58cc31c
tags: ["arch:amd64"]
stage: nodejs_ssi_pipelines
variables:
TEST_LIBRARY: "nodejs"
#Because sometimes I don't want to run all pipeline, I only run step1_xx with env filter param
ONBOARDING_FILTER_ENV: "$FILTER_ENV"
script:
- python utils/k8s_lib_injection/k8s_matrix_builder.py --language $TEST_LIBRARY --format yaml --output-file gitlab_pipeline.yml --env $ONBOARDING_FILTER_ENV
needs:
- job: step1_generate_nodejs_ssi_pipeline
artifacts: true
after_script:
- SCENARIO_SUFIX="k8s_ssi"
- mkdir -p reports/logs_"${SCENARIO_SUFIX}"
- cp gitlab_pipeline.yml reports/logs_"${SCENARIO_SUFIX}"/
artifacts:
paths:
- reports/
.merge_aws_ssi_pipeline:
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/test-infra-definitions/runner:a58cc31c
stage: nodejs_ssi_pipelines
tags: ["arch:amd64"]
script:
- |
for folder in reports/logs*/ ; do
echo "Checking folder:: ${folder}"
for filename in ./${folder}gitlab_pipeline.yml; do
if [ -e ${filename} ]
then
echo "Processing pipeline: ${filename}"
python utils/scripts/merge_gitlab_aws_pipelines.py --input ${filename} --output aws_gitlab_pipeline.yml
fi
done
done
needs: ["onboarding_nodejs"]
dependencies:
- onboarding_nodejs
artifacts:
paths:
- aws_gitlab_pipeline.yml
.exec_aws_ssi_pipeline:
stage: nodejs_ssi_pipelines
needs: ["merge_aws_ssi_pipeline"]
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
- when: manual
allow_failure: true
variables:
PARENT_PIPELINE_SOURCE: $CI_PIPELINE_SOURCE
trigger:
include:
- artifact: aws_gitlab_pipeline.yml
job: merge_aws_ssi_pipeline
strategy: depend
# ----------- Node.js SSI ----------------
step1_generate_nodejs_ssi_pipeline:
extends: .step1_generate_aws_ssi_pipeline
needs: []
x_compute_nodejs_aws_scenarios:
extends: .compute_aws_scenarios
variables:
TEST_LIBRARY: "nodejs"
parallel:
matrix:
- ONBOARDING_FILTER_WEBLOG: [test-app-nodejs]
SCENARIO:
- HOST_AUTO_INJECTION_INSTALL_SCRIPT
- HOST_AUTO_INJECTION_INSTALL_SCRIPT_PROFILING
- ONBOARDING_FILTER_WEBLOG: [test-app-nodejs-multicontainer]
SCENARIO:
- CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT
- CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT_PROFILING
- ONBOARDING_FILTER_WEBLOG: [test-app-nodejs,test-app-nodejs-container]
SCENARIO: [INSTALLER_AUTO_INJECTION,SIMPLE_AUTO_INJECTION_PROFILING]
- ONBOARDING_FILTER_WEBLOG: [test-app-nodejs-08, test-app-nodejs-16, test-app-nodejs-unsupported-defaults]
SCENARIO: [INSTALLER_NOT_SUPPORTED_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-nodejs]
SCENARIO: [CHAOS_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-nodejs-multicontainer,test-app-nodejs-esm]
SCENARIO: [SIMPLE_INSTALLER_AUTO_INJECTION]
needs:
- job: step1_generate_nodejs_ssi_pipeline
artifacts: true
x_compute_nodejs_docker_scenarios:
extends: .x_compute_docker_scenarios
stage: nodejs_ssi_pipelines
variables:
TEST_LIBRARY: "nodejs"
needs:
- job: step1_generate_nodejs_ssi_pipeline
artifacts: true
x_compute_nodejs_k8s_scenarios:
extends: .x_compute_k8s_scenarios
stage: nodejs_ssi_pipelines
variables:
TEST_LIBRARY: "nodejs"
needs:
- job: step1_generate_nodejs_ssi_pipeline
artifacts: true
x_merge_nodejs_ssi_pipeline:
extends: .merge_aws_ssi_pipeline
needs: ["x_compute_nodejs_aws_scenarios", "x_compute_nodejs_docker_scenarios", "x_compute_nodejs_k8s_scenarios"]
dependencies:
- x_compute_nodejs_aws_scenarios
- x_compute_nodejs_docker_scenarios
- x_compute_nodejs_k8s_scenarios
step2_exec_nodejs_ssi_pipeline:
extends: .exec_aws_ssi_pipeline
needs: ["x_merge_nodejs_ssi_pipeline"]
trigger:
include:
- artifact: aws_gitlab_pipeline.yml
job: x_merge_nodejs_ssi_pipeline
strategy: depend
# ----------- Java SSI ----------------
step1_generate_java_ssi_pipeline:
stage: java_ssi_pipelines
dependencies: []
extends: .step1_generate_aws_ssi_pipeline
x_compute_java_aws_scenarios:
stage: java_ssi_pipelines
extends: .compute_aws_scenarios
variables:
TEST_LIBRARY: "java"
parallel:
matrix:
- ONBOARDING_FILTER_WEBLOG: [test-app-java]
SCENARIO:
- HOST_AUTO_INJECTION_INSTALL_SCRIPT
- HOST_AUTO_INJECTION_INSTALL_SCRIPT_PROFILING
- ONBOARDING_FILTER_WEBLOG: [test-app-java-multicontainer,test-app-java-multialpine]
SCENARIO:
- CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT
- CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT_PROFILING
- ONBOARDING_FILTER_WEBLOG: [test-app-java,test-app-java-container,test-app-java-alpine,test-app-java-buildpack]
SCENARIO: [INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-java,test-app-java-multicontainer,test-app-java-multialpine]
SCENARIO: [SIMPLE_AUTO_INJECTION_PROFILING]
- ONBOARDING_FILTER_WEBLOG: [test-app-java]
SCENARIO: [CHAOS_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-java-multicontainer,test-app-java-multialpine]
SCENARIO: [SIMPLE_INSTALLER_AUTO_INJECTION]
needs:
- job: step1_generate_java_ssi_pipeline
artifacts: true
x_compute_java_docker_scenarios:
extends: .x_compute_docker_scenarios
stage: java_ssi_pipelines
variables:
TEST_LIBRARY: "java"
needs:
- job: step1_generate_java_ssi_pipeline
artifacts: true
x_compute_java_k8s_scenarios:
extends: .x_compute_k8s_scenarios
stage: java_ssi_pipelines
variables:
TEST_LIBRARY: "java"
needs:
- job: step1_generate_java_ssi_pipeline
artifacts: true
x_merge_java_ssi_pipeline:
stage: java_ssi_pipelines
extends: .merge_aws_ssi_pipeline
needs: ["x_compute_java_aws_scenarios", "x_compute_java_docker_scenarios", "x_compute_java_k8s_scenarios"]
dependencies:
- x_compute_java_aws_scenarios
- x_compute_java_docker_scenarios
- x_compute_java_k8s_scenarios
step2_exec_java_ssi_pipeline:
stage: java_ssi_pipelines
extends: .exec_aws_ssi_pipeline
needs: ["x_merge_java_ssi_pipeline"]
trigger:
include:
- artifact: aws_gitlab_pipeline.yml
job: x_merge_java_ssi_pipeline
strategy: depend
# ----------- Python SSI ----------------
step1_generate_python_ssi_pipeline:
stage: python_ssi_pipelines
dependencies: []
extends: .step1_generate_aws_ssi_pipeline
x_compute_python_aws_scenarios:
stage: python_ssi_pipelines
extends: .compute_aws_scenarios
variables:
TEST_LIBRARY: "python"
parallel:
matrix:
- ONBOARDING_FILTER_WEBLOG: [test-app-python]
SCENARIO: [HOST_AUTO_INJECTION_INSTALL_SCRIPT]
- ONBOARDING_FILTER_WEBLOG: [test-app-python-container,test-app-python-alpine]
SCENARIO: [ CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT]
- ONBOARDING_FILTER_WEBLOG: [
test-app-python,
test-app-python-container,
test-app-python-alpine
]
SCENARIO: [INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-python]
SCENARIO: [CHAOS_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-python-multicontainer,test-app-python-multialpine]
SCENARIO: [SIMPLE_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-python-unsupported-defaults,test-app-python-27]
SCENARIO: [INSTALLER_NOT_SUPPORTED_AUTO_INJECTION]
needs:
- job: step1_generate_python_ssi_pipeline
artifacts: true
x_compute_python_docker_scenarios:
extends: .x_compute_docker_scenarios
stage: python_ssi_pipelines
variables:
TEST_LIBRARY: "python"
needs:
- job: step1_generate_python_ssi_pipeline
artifacts: true
x_compute_python_k8s_scenarios:
extends: .x_compute_k8s_scenarios
stage: python_ssi_pipelines
variables:
TEST_LIBRARY: "python"
needs:
- job: step1_generate_python_ssi_pipeline
artifacts: true
x_merge_python_ssi_pipeline:
stage: python_ssi_pipelines
extends: .merge_aws_ssi_pipeline
needs: ["x_compute_python_aws_scenarios", "x_compute_python_docker_scenarios", "x_compute_python_k8s_scenarios"]
dependencies:
- x_compute_python_aws_scenarios
- x_compute_python_docker_scenarios
- x_compute_python_k8s_scenarios
step2_exec_python_ssi_pipeline:
stage: python_ssi_pipelines
extends: .exec_aws_ssi_pipeline
needs: ["x_merge_python_ssi_pipeline"]
trigger:
include:
- artifact: aws_gitlab_pipeline.yml
job: x_merge_python_ssi_pipeline
strategy: depend
# ----------- PHP SSI ----------------
step1_generate_php_ssi_pipeline:
stage: php_ssi_pipelines
dependencies: []
extends: .step1_generate_aws_ssi_pipeline
x_compute_php_aws_scenarios:
stage: php_ssi_pipelines
extends: .compute_aws_scenarios
variables:
TEST_LIBRARY: "php"
parallel:
matrix:
- ONBOARDING_FILTER_WEBLOG: [test-app-php]
SCENARIO: [HOST_AUTO_INJECTION_INSTALL_SCRIPT]
- ONBOARDING_FILTER_WEBLOG: [test-app-php-container-83,test-app-php-alpine]
SCENARIO: [CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT]
- ONBOARDING_FILTER_WEBLOG: [test-app-php, test-app-php-container-83, test-app-php-alpine]
SCENARIO: [INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-php]
SCENARIO: [CHAOS_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-php-container-56]
SCENARIO: [INSTALLER_NOT_SUPPORTED_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-php-multicontainer, test-app-php-multialpine]
SCENARIO: [SIMPLE_INSTALLER_AUTO_INJECTION]
needs:
- job: step1_generate_php_ssi_pipeline
artifacts: true
x_compute_php_docker_scenarios:
extends: .x_compute_docker_scenarios
stage: php_ssi_pipelines
variables:
TEST_LIBRARY: "php"
needs:
- job: step1_generate_php_ssi_pipeline
artifacts: true
x_merge_php_ssi_pipeline:
stage: php_ssi_pipelines
extends: .merge_aws_ssi_pipeline
needs: ["x_compute_php_aws_scenarios", "x_compute_php_docker_scenarios"]
dependencies:
- x_compute_php_aws_scenarios
- x_compute_php_docker_scenarios
step2_exec_php_ssi_pipeline:
stage: php_ssi_pipelines
extends: .exec_aws_ssi_pipeline
needs: ["x_merge_php_ssi_pipeline"]
trigger:
include:
- artifact: aws_gitlab_pipeline.yml
job: x_merge_php_ssi_pipeline
strategy: depend
# ----------- .NET SSI ----------------
step1_generate_dotnet_ssi_pipeline:
stage: dotnet_ssi_pipelines
dependencies: []
extends: .step1_generate_aws_ssi_pipeline
x_compute_dotnet_aws_scenarios:
stage: dotnet_ssi_pipelines
extends: .compute_aws_scenarios
variables:
TEST_LIBRARY: "dotnet"
parallel:
matrix:
- ONBOARDING_FILTER_WEBLOG: [test-app-dotnet]
SCENARIO:
- HOST_AUTO_INJECTION_INSTALL_SCRIPT
- HOST_AUTO_INJECTION_INSTALL_SCRIPT_PROFILING
- ONBOARDING_FILTER_WEBLOG: [test-app-dotnet-container]
SCENARIO:
- CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT
- CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT_PROFILING
- ONBOARDING_FILTER_WEBLOG: [test-app-dotnet,test-app-dotnet-container]
SCENARIO: [INSTALLER_AUTO_INJECTION, SIMPLE_AUTO_INJECTION_PROFILING]
- ONBOARDING_FILTER_WEBLOG: [test-app-dotnet]
SCENARIO: [CHAOS_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-dotnet-multicontainer,test-app-dotnet-multialpine]
SCENARIO: [SIMPLE_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-dotnet-unsupported]
SCENARIO: [INSTALLER_NOT_SUPPORTED_AUTO_INJECTION]
needs:
- job: step1_generate_dotnet_ssi_pipeline
artifacts: true
x_compute_dotnet_k8s_scenarios:
extends: .x_compute_k8s_scenarios
stage: dotnet_ssi_pipelines
variables:
TEST_LIBRARY: "dotnet"
needs:
- job: step1_generate_dotnet_ssi_pipeline
artifacts: true
x_merge_dotnet_ssi_pipeline:
stage: dotnet_ssi_pipelines
extends: .merge_aws_ssi_pipeline
needs: ["x_compute_dotnet_aws_scenarios", "x_compute_dotnet_k8s_scenarios"]
dependencies:
- x_compute_dotnet_aws_scenarios
- x_compute_dotnet_k8s_scenarios
step2_exec_dotnet_ssi_pipeline:
stage: dotnet_ssi_pipelines
extends: .exec_aws_ssi_pipeline
needs: ["x_merge_dotnet_ssi_pipeline"]
trigger:
include:
- artifact: aws_gitlab_pipeline.yml
job: x_merge_dotnet_ssi_pipeline
strategy: depend
# ----------- Ruby SSI ----------------
step1_generate_ruby_ssi_pipeline:
stage: ruby_ssi_pipelines
dependencies: []
extends: .step1_generate_aws_ssi_pipeline
x_compute_ruby_aws_scenarios:
stage: ruby_ssi_pipelines
extends: .compute_aws_scenarios
variables:
TEST_LIBRARY: "ruby"
parallel:
matrix:
- ONBOARDING_FILTER_WEBLOG: [test-app-ruby]
SCENARIO: [HOST_AUTO_INJECTION_INSTALL_SCRIPT]
- ONBOARDING_FILTER_WEBLOG: [test-app-ruby-container]
SCENARIO: [ CONTAINER_AUTO_INJECTION_INSTALL_SCRIPT]
- ONBOARDING_FILTER_WEBLOG: [test-app-ruby,test-app-ruby-container]
SCENARIO: [INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-ruby]
SCENARIO: [CHAOS_INSTALLER_AUTO_INJECTION]
- ONBOARDING_FILTER_WEBLOG: [test-app-ruby-multicontainer]
SCENARIO: [SIMPLE_INSTALLER_AUTO_INJECTION]
needs:
- job: step1_generate_ruby_ssi_pipeline
artifacts: true
x_compute_ruby_k8s_scenarios:
extends: .x_compute_k8s_scenarios
stage: ruby_ssi_pipelines
variables:
TEST_LIBRARY: "ruby"
needs:
- job: step1_generate_ruby_ssi_pipeline
artifacts: true
x_merge_ruby_ssi_pipeline:
stage: ruby_ssi_pipelines
extends: .merge_aws_ssi_pipeline
needs: ["x_compute_ruby_aws_scenarios", "x_compute_ruby_k8s_scenarios"]
dependencies:
- x_compute_ruby_aws_scenarios
- x_compute_ruby_k8s_scenarios
step2_exec_ruby_ssi_pipeline:
stage: ruby_ssi_pipelines
extends: .exec_aws_ssi_pipeline
needs: ["x_merge_ruby_ssi_pipeline"]
trigger:
include:
- artifact: aws_gitlab_pipeline.yml
job: x_merge_ruby_ssi_pipeline
strategy: depend
check_merge_labels:
#Build docker images if it's needed. Check if the PR has the labels associated with the image build.
image: registry.ddbuild.io/images/ci_docker_base
tags: ["runner:docker"]
stage: before_tests
allow_failure: true
before_script:
- export GH_TOKEN=$(aws ssm get-parameter --region us-east-1 --name ci.system-tests.gh-token --with-decryption --query "Parameter.Value" --out text)
- export DOCKER_LOGIN=$(aws ssm get-parameter --region us-east-1 --name ci.system-tests.docker-login-write --with-decryption --query "Parameter.Value" --out text)
- export DOCKER_LOGIN_PASS=$(aws ssm get-parameter --region us-east-1 --name ci.system-tests.docker-login-pass-write --with-decryption --query "Parameter.Value" --out text)
script:
- echo $GH_TOKEN | docker login ghcr.io -u publisher --password-stdin
- ./utils/scripts/get_pr_merged_labels.sh
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "main"
generate_system_tests_images:
image: registry.ddbuild.io/images/ci_docker_base
tags: ["runner:docker"]
stage: before_tests
allow_failure: true
before_script:
- export GH_TOKEN=$(aws ssm get-parameter --region us-east-1 --name ci.system-tests.gh-token --with-decryption --query "Parameter.Value" --out text)
- export DOCKER_LOGIN=$(aws ssm get-parameter --region us-east-1 --name ci.system-tests.docker-login-write --with-decryption --query "Parameter.Value" --out text)
- export DOCKER_LOGIN_PASS=$(aws ssm get-parameter --region us-east-1 --name ci.system-tests.docker-login-pass-write --with-decryption --query "Parameter.Value" --out text)
script:
- echo $GH_TOKEN | docker login ghcr.io -u publisher --password-stdin
- ./utils/build/build_tracer_buddies.sh --push
- ./utils/build/build_python_base_images.sh --push
- ./lib-injection/build/build_lib_injection_images.sh
when: manual