@@ -80,19 +80,15 @@ functions:
80
80
echo "Finished initializing to the root context"
81
81
82
82
switch_context : &switch_context
83
- command : shell .exec
83
+ command : subprocess .exec
84
84
type : setup
85
85
params :
86
- shell : bash
87
86
working_dir : src/github.com/mongodb/mongodb-kubernetes
88
87
<< : *e2e_include_expansions_in_env
89
88
add_to_path :
90
89
- ${workdir}/bin
91
90
- ${workdir}/google-cloud-sdk/bin
92
- script : |
93
- echo "Switching context"
94
- scripts/dev/switch_context.sh "${build_variant}"
95
- echo "Finished switching context"
91
+ command : scripts/dev/switch_context.sh "${build_variant}"
96
92
97
93
python_venv : &python_venv
98
94
command : subprocess.exec
@@ -245,6 +241,15 @@ functions:
245
241
- ${workdir}/bin
246
242
binary : scripts/dev/setup_evg_host.sh
247
243
244
+ setup_chart_testing_cli : &setup_chart_testing_cli
245
+ command : subprocess.exec
246
+ type : setup
247
+ params :
248
+ working_dir : src/github.com/mongodb/mongodb-kubernetes
249
+ add_to_path :
250
+ - ${workdir}/bin
251
+ command : scripts/dev/setup_chart_testing_cli.sh
252
+
248
253
lint_repo :
249
254
- command : subprocess.exec
250
255
type : setup
@@ -253,6 +258,7 @@ functions:
253
258
add_to_path :
254
259
- ${workdir}/bin
255
260
command : scripts/evergreen/setup_yq.sh
261
+ - *setup_chart_testing_cli
256
262
- command : subprocess.exec
257
263
type : test
258
264
params :
@@ -264,7 +270,6 @@ functions:
264
270
265
271
# Configures docker authentication to ECR and RH registries.
266
272
setup_building_host :
267
- - *switch_context
268
273
- *python_venv
269
274
- *setup_aws
270
275
- *setup_evg_host
@@ -273,7 +278,6 @@ functions:
273
278
# This differs for normal evg_host as we require minikube instead of kind for
274
279
# IBM machines also install aws cli via pip instead and use podman
275
280
setup_building_host_minikube :
276
- - *switch_context
277
281
- command : subprocess.exec
278
282
type : setup
279
283
params :
@@ -298,7 +302,6 @@ functions:
298
302
# the task configures the set of tools necessary for any task working with K8 cluster:
299
303
# installs kubectl, jq, kind (if necessary), configures docker authentication
300
304
download_kube_tools :
301
- - *switch_context
302
305
- *setup_kubectl
303
306
- *setup_jq
304
307
# we need aws to configure docker authentication
@@ -348,7 +351,6 @@ functions:
348
351
command : " docker login quay.io -u ${quay_prod_username} -p ${quay_prod_robot_token}"
349
352
350
353
setup_cloud_qa :
351
- - *switch_context
352
354
- command : shell.exec
353
355
type : setup
354
356
params :
@@ -479,7 +481,6 @@ functions:
479
481
files : [ "src/github.com/mongodb/mongodb-kubernetes/logs/*.suite" ]
480
482
481
483
preflight_image :
482
- - *switch_context
483
484
- command : subprocess.exec
484
485
params :
485
486
working_dir : src/github.com/mongodb/mongodb-kubernetes
@@ -507,7 +508,6 @@ functions:
507
508
- ${workdir}
508
509
509
510
build_test_image_ibm :
510
- - *switch_context
511
511
- command : subprocess.exec
512
512
params :
513
513
shell : bash
@@ -517,7 +517,6 @@ functions:
517
517
binary : scripts/evergreen/e2e/build_tests_image_ibm.sh
518
518
519
519
pipeline :
520
- - *switch_context
521
520
- command : subprocess.exec
522
521
retry_on_failure : true
523
522
type : setup
@@ -530,7 +529,6 @@ functions:
530
529
IMAGE_NAME : ${IMAGE_NAME}
531
530
532
531
pipeline_agent :
533
- - *switch_context
534
532
- command : subprocess.exec
535
533
retry_on_failure : true
536
534
type : setup
@@ -543,7 +541,6 @@ functions:
543
541
FLAGS : ${FLAGS}
544
542
545
543
pipeline_ops_manager :
546
- - *switch_context
547
544
- command : subprocess.exec
548
545
retry_on_failure : true
549
546
type : setup
@@ -554,7 +551,6 @@ functions:
554
551
binary : scripts/release/pipeline_ops_manager.sh
555
552
556
553
pipeline_readiness_probe :
557
- - *switch_context
558
554
- command : subprocess.exec
559
555
retry_on_failure : true
560
556
type : setup
@@ -565,7 +561,6 @@ functions:
565
561
binary : scripts/release/pipeline_readiness_probe.sh
566
562
567
563
pipeline_version_upgrade_hook :
568
- - *switch_context
569
564
- command : subprocess.exec
570
565
retry_on_failure : true
571
566
type : setup
@@ -576,7 +571,6 @@ functions:
576
571
binary : scripts/release/pipeline_version_upgrade_hook.sh
577
572
578
573
teardown_cloud_qa_all :
579
- - *switch_context
580
574
- command : shell.exec
581
575
type : setup
582
576
params :
@@ -732,7 +726,6 @@ functions:
732
726
make sbom-tests
733
727
734
728
generate_perf_tests_tasks :
735
- - *switch_context
736
729
- command : shell.exec
737
730
type : setup
738
731
params :
@@ -817,7 +810,6 @@ functions:
817
810
818
811
# it executes a script by convention: ./scripts/code_snippets/tests/${task_name}
819
812
test_code_snippets :
820
- - *switch_context
821
813
- command : shell.exec
822
814
params :
823
815
shell : bash
0 commit comments