@@ -51,10 +51,22 @@ functions:
51
51
52
52
# ## Setup Functions ###
53
53
54
+ setup_jq : &setup_jq
55
+ command : subprocess.exec
56
+ type : setup
57
+ params :
58
+ << : *e2e_include_expansions_in_env
59
+ add_to_path :
60
+ - ${workdir}/bin
61
+ working_dir : src/github.com/mongodb/mongodb-kubernetes
62
+ binary : scripts/evergreen/setup_jq.sh
63
+
54
64
setup_context : &setup_context # Running the first switch is important to fill the workdir and other important initial env vars
55
65
command : shell.exec
56
66
type : setup
57
67
params :
68
+ add_to_path :
69
+ - ${workdir}/bin
58
70
shell : bash
59
71
working_dir : src/github.com/mongodb/mongodb-kubernetes
60
72
<< : *e2e_include_expansions_in_env
@@ -103,6 +115,7 @@ functions:
103
115
type : setup
104
116
params :
105
117
command :
" git config --global user.email '[email protected] '"
118
+ - *setup_jq # we need jq in the context
106
119
- *setup_context
107
120
108
121
setup_kubectl : &setup_kubectl
@@ -112,13 +125,6 @@ functions:
112
125
working_dir : src/github.com/mongodb/mongodb-kubernetes
113
126
binary : scripts/evergreen/setup_kubectl.sh
114
127
115
- setup_jq : &setup_jq
116
- command : subprocess.exec
117
- type : setup
118
- params :
119
- working_dir : src/github.com/mongodb/mongodb-kubernetes
120
- binary : scripts/evergreen/setup_jq.sh
121
-
122
128
setup_shellcheck :
123
129
command : subprocess.exec
124
130
type : setup
@@ -225,7 +231,7 @@ functions:
225
231
working_dir : src/github.com/mongodb/mongodb-kubernetes
226
232
add_to_path :
227
233
- ${workdir}/bin
228
- binary : scripts/dev/configure_docker_auth .sh
234
+ binary : scripts/dev/configure_container_auth .sh
229
235
230
236
setup_evg_host : &setup_evg_host
231
237
command : subprocess.exec
@@ -256,16 +262,35 @@ functions:
256
262
# Configures docker authentication to ECR and RH registries.
257
263
setup_building_host :
258
264
- *switch_context
265
+ - *python_venv
259
266
- *setup_aws
260
- - *configure_docker_auth
261
267
- *setup_evg_host
262
- - *python_venv
268
+ - *configure_docker_auth
263
269
264
- prune_docker_resources :
270
+ # This differs for normal evg_host as we require minikube instead of kind for
271
+ # IBM machines also install aws cli via pip instead and use podman
272
+ setup_building_host_minikube :
273
+ - *switch_context
265
274
- command : subprocess.exec
266
275
type : setup
267
276
params :
268
- command : " docker system prune -a -f"
277
+ working_dir : src/github.com/mongodb/mongodb-kubernetes
278
+ add_to_path :
279
+ - ${workdir}/bin
280
+ command : scripts/evergreen/setup_minikube_host.sh
281
+
282
+ prune_docker_resources :
283
+ - command : shell.exec
284
+ type : setup
285
+ params :
286
+ shell : bash
287
+ script : |
288
+ if command -v docker >/dev/null 2>&1; then
289
+ echo "Docker found, pruning docker resources..."
290
+ docker system prune -a -f
291
+ else
292
+ echo "Docker not found, skipping docker resource pruning"
293
+ fi
269
294
270
295
# the task configures the set of tools necessary for any task working with K8 cluster:
271
296
# installs kubectl, jq, kind (if necessary), configures docker authentication
@@ -327,8 +352,7 @@ functions:
327
352
shell : bash
328
353
working_dir : src/github.com/mongodb/mongodb-kubernetes
329
354
script : |
330
- source .generated/context.export.env
331
- scripts/evergreen/e2e/setup_cloud_qa.py create
355
+ scripts/dev/run_python.sh scripts/evergreen/e2e/setup_cloud_qa.py create
332
356
# The additional switch is needed, since we now have created the needed OM exports.
333
357
- *switch_context
334
358
@@ -340,8 +364,7 @@ functions:
340
364
shell : bash
341
365
working_dir : src/github.com/mongodb/mongodb-kubernetes
342
366
script : |
343
- source .generated/context.export.env
344
- scripts/evergreen/e2e/setup_cloud_qa.py delete
367
+ scripts/dev/run_python.sh scripts/evergreen/e2e/setup_cloud_qa.py delete
345
368
346
369
dump_diagnostic_information_from_all_namespaces :
347
370
- command : subprocess.exec
@@ -433,6 +456,7 @@ functions:
433
456
content_type : text/plain
434
457
- command : attach.xunit_results
435
458
params :
459
+ continue_on_err : true
436
460
file : " src/github.com/mongodb/mongodb-kubernetes/logs/myreport.xml"
437
461
438
462
upload_e2e_logs_gotest :
@@ -506,17 +530,31 @@ functions:
506
530
- ${workdir}/bin
507
531
- ${workdir}
508
532
509
- pipeline :
533
+ build_test_image_ibm :
510
534
- *switch_context
511
- - command : shell.exec
535
+ - command : subprocess.exec
536
+ params :
537
+ shell : bash
538
+ working_dir : src/github.com/mongodb/mongodb-kubernetes
539
+ include_expansions_in_env :
540
+ - version_id
541
+ add_to_path :
542
+ - ${workdir}/bin
543
+ binary : scripts/evergreen/e2e/build_tests_image_ibm.sh
544
+
545
+ pipeline_migrate_agents :
546
+ - *switch_context
547
+ - command : subprocess.exec
548
+ retry_on_failure : false
512
549
type : setup
513
550
params :
514
551
shell : bash
515
- script : |
516
- # Docker Hub workaround
517
- # docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
518
- docker buildx create --driver=docker-container --driver-opt=image=268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/moby/buildkit:buildx-stable-1 --use
519
- docker buildx inspect --bootstrap
552
+ << : *e2e_include_expansions_in_env
553
+ working_dir : src/github.com/mongodb/mongodb-kubernetes
554
+ binary : scripts/release/pipeline_migrate_agent.sh
555
+
556
+ pipeline :
557
+ - *switch_context
520
558
- command : subprocess.exec
521
559
retry_on_failure : true
522
560
type : setup
0 commit comments