forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
1196 lines (1070 loc) · 42.7 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
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
include:
- .gitlab/.pre/cancel-prev-pipelines.yml
- .gitlab/.pre/test_gitlab_configuration.yml
- .gitlab/benchmarks/include.yml
- .gitlab/binary_build/include.yml
- .gitlab/check_deploy/check_deploy.yml
- .gitlab/check_merge/do_not_merge.yml
- .gitlab/choco_build/choco_build.yml
- .gitlab/choco_deploy/choco_deploy.yml
- .gitlab/powershell_script_signing/powershell_script_signing.yml
- .gitlab/powershell_script_deploy/powershell_script_deploy.yml
- .gitlab/common/shared.yml
- .gitlab/common/skip_ci_check.yml
- .gitlab/common/pr_commenter.yml
- .gitlab/common/test_infra_version.yml
- .gitlab/container_build/include.yml
- .gitlab/container_scan/container_scan.yml
- .gitlab/deploy_containers/deploy_containers.yml
- .gitlab/deploy_cws_instrumentation/deploy_cws_instrumentation.yml
- .gitlab/deploy_dca/deploy_dca.yml
- .gitlab/deploy_packages/include.yml
- .gitlab/deps_build/deps_build.yml
- .gitlab/deps_fetch/deps_fetch.yml
- .gitlab/dev_container_deploy/include.yml
- .gitlab/e2e/e2e.yml
- .gitlab/e2e_install_packages/include.yml
- .gitlab/e2e_pre_test/e2e_pre_test.yml
- .gitlab/functional_test/include.yml
- .gitlab/functional_test_cleanup/functional_test_cleanup.yml
- .gitlab/install_script_testing/install_script_testing.yml
- .gitlab/integration_test/include.yml
- .gitlab/internal_image_deploy/internal_image_deploy.yml
- .gitlab/internal_kubernetes_deploy/include.yml
- .gitlab/junit_upload/junit_upload.yml
- .gitlab/kitchen_cleanup/include.yml
- .gitlab/kitchen_deploy/kitchen_deploy.yml
- .gitlab/kitchen_testing/include.yml
- .gitlab/lint/include.yml
- .gitlab/maintenance_jobs/include.yml
- .gitlab/notify/notify.yml
- .gitlab/package_build/include.yml
- .gitlab/packaging/include.yml
- .gitlab/package_deps_build/package_deps_build.yml
- .gitlab/pkg_metrics/pkg_metrics.yml
- .gitlab/post_rc_build/post_rc_tasks.yml
- .gitlab/setup/setup.yml
- .gitlab/source_test/include.yml
- .gitlab/trigger_release/trigger_release.yml
default:
retry:
max: 2
exit_codes: 42
when:
- runner_system_failure
- stuck_or_timeout_failure
- unknown_failure
- api_failure
- scheduler_failure
- stale_schedule
- data_integrity_failure
stages:
- .pre
- setup
- maintenance_jobs
- deps_build
- deps_fetch
- lint
- source_test
- source_test_stats
- software_composition_analysis
- binary_build
- package_deps_build
- kernel_matrix_testing_prepare
- kernel_matrix_testing_system_probe
- kernel_matrix_testing_security_agent
- kernel_matrix_testing_cleanup
- integration_test
- benchmarks
- package_build
- packaging
- pkg_metrics
- kitchen_deploy
- kitchen_testing
- container_build
- container_scan
- check_deploy
- dev_container_deploy
- deploy_containers
- deploy_packages
- deploy_cws_instrumentation
- deploy_dca
- trigger_release
- choco_and_install_script_build
- choco_and_install_script_deploy
- internal_image_deploy
- install_script_testing
- e2e_pre_test
- e2e
- e2e_k8s
- e2e_install_packages
- kitchen_cleanup
- functional_test
- functional_test_cleanup
- junit_upload
- internal_kubernetes_deploy
- post_rc_build
- check_merge
- notify
variables:
# Directory in which we execute the omnibus build.
# For an unknown reason, it does not go well with
# a ruby dependency if we build directly into $CI_PROJECT_DIR/.omnibus
OMNIBUS_BASE_DIR: /omnibus
# Directory in which we put the artifacts after the build
# Must be in $CI_PROJECT_DIR
OMNIBUS_PACKAGE_DIR: $CI_PROJECT_DIR/omnibus/pkg/
# Directory in which we put the SUSE artifacts after the SUSE build
# Must be in $CI_PROJECT_DIR
# RPM builds and SUSE RPM builds create artifacts with the same name.
# To differentiate them, we put them in different folders. That also
# avoids accidentally overwriting files when downloading artifacts from
# both RPM and SUSE rpm jobs.
OMNIBUS_PACKAGE_DIR_SUSE: $CI_PROJECT_DIR/omnibus/suse/pkg
DD_AGENT_TESTING_DIR: $CI_PROJECT_DIR/test/kitchen
STATIC_BINARIES_DIR: bin/static
DOGSTATSD_BINARIES_DIR: bin/dogstatsd
AGENT_BINARIES_DIR: bin/agent
CLUSTER_AGENT_BINARIES_DIR: bin/datadog-cluster-agent
CWS_INSTRUMENTATION_BINARIES_DIR: bin/cws-instrumentation
CLUSTER_AGENT_CLOUDFOUNDRY_BINARIES_DIR: bin/datadog-cluster-agent-cloudfoundry
SYSTEM_PROBE_BINARIES_DIR: bin/system-probe
DEB_S3_BUCKET: apt.datad0g.com
RPM_S3_BUCKET: yum.datad0g.com
MACOS_S3_BUCKET: dd-agent-macostesting
WIN_S3_BUCKET: dd-agent-mstesting
PROCESS_S3_BUCKET: datad0g-process-agent
BUCKET_BRANCH: dev # path inside the staging s3 buckets to release to: 'dev', 'nightly', 'oldnightly', 'beta' or 'stable'
DEB_TESTING_S3_BUCKET: apttesting.datad0g.com
RPM_TESTING_S3_BUCKET: yumtesting.datad0g.com
WINDOWS_TESTING_S3_BUCKET_A6: pipelines/A6/$CI_PIPELINE_ID
WINDOWS_TESTING_S3_BUCKET_A7: pipelines/A7/$CI_PIPELINE_ID
WINDOWS_BUILDS_S3_BUCKET: $WIN_S3_BUCKET/builds
WINDOWS_POWERSHELL_DIR: $CI_PROJECT_DIR/signed_scripts
DEB_RPM_TESTING_BUCKET_BRANCH: testing # branch of the DEB_TESTING_S3_BUCKET and RPM_TESTING_S3_BUCKET repos to release to, 'testing'
S3_CP_OPTIONS: --no-progress --region us-east-1 --sse AES256
S3_CP_CMD: aws s3 cp $S3_CP_OPTIONS
S3_ARTIFACTS_URI: s3://dd-ci-artefacts-build-stable/$CI_PROJECT_NAME/$CI_PIPELINE_ID
S3_PROJECT_ARTIFACTS_URI: s3://dd-ci-artefacts-build-stable/$CI_PROJECT_NAME
S3_PERMANENT_ARTIFACTS_URI: s3://dd-ci-persistent-artefacts-build-stable/$CI_PROJECT_NAME
S3_SBOM_STORAGE_URI: s3://sbom-root-us1-ddbuild-io/$CI_PROJECT_NAME/$CI_PIPELINE_ID
S3_RELEASE_ARTIFACTS_URI: s3://dd-release-artifacts/$CI_PROJECT_NAME/$CI_PIPELINE_ID
S3_RELEASE_INSTALLER_ARTIFACTS_URI: s3://dd-release-artifacts/datadog-installer/$CI_PIPELINE_ID
## comment out both lines below (S3_OMNIBUS_CACHE_BUCKET and USE_S3_CACHING) to allow
## build to succeed with S3 caching disabled.
S3_OMNIBUS_CACHE_BUCKET: dd-ci-datadog-agent-omnibus-cache-build-stable
USE_S3_CACHING: --omnibus-s3-cache
OMNIBUS_GIT_CACHE_DIR: /tmp/omnibus-git-cache
## comment out the line below to disable integration wheels cache
INTEGRATION_WHEELS_CACHE_BUCKET: dd-agent-omnibus
S3_DD_AGENT_OMNIBUS_LLVM_URI: s3://dd-agent-omnibus/llvm
S3_DD_AGENT_OMNIBUS_BTFS_URI: s3://dd-agent-omnibus/btfs
BTFHUB_ARCHIVE_BRANCH: main
GENERAL_ARTIFACTS_CACHE_BUCKET_URL: https://dd-agent-omnibus.s3.amazonaws.com
S3_DSD6_URI: s3://dsd6-staging
RELEASE_VERSION_6: nightly
RELEASE_VERSION_7: nightly-a7
# Build images versions
# To use images from datadog-agent-buildimages dev branches, set the corresponding
# SUFFIX variable to _test_only
DATADOG_AGENT_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_BUILDIMAGES: v45186095-84d9d5f2
DATADOG_AGENT_WINBUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_WINBUILDIMAGES: v45186095-84d9d5f2
DATADOG_AGENT_ARMBUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_ARMBUILDIMAGES: v45186095-84d9d5f2
DATADOG_AGENT_SYSPROBE_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_SYSPROBE_BUILDIMAGES: v45186095-84d9d5f2
DATADOG_AGENT_BTF_GEN_BUILDIMAGES_SUFFIX: ""
DATADOG_AGENT_BTF_GEN_BUILDIMAGES: v45186095-84d9d5f2
DATADOG_AGENT_EMBEDDED_PATH: /opt/datadog-agent/embedded
DEB_GPG_KEY_ID: c0962c7d
DEB_GPG_KEY_NAME: "Datadog, Inc. APT key"
RPM_GPG_KEY_ID: b01082d3
RPM_GPG_KEY_NAME: "Datadog, Inc. RPM key"
DOCKER_REGISTRY_URL: docker.io
KITCHEN_INFRASTRUCTURE_FLAKES_RETRY: 2
CLANG_LLVM_VER: 12.0.1
KERNEL_MATRIX_TESTING_X86_AMI_ID: "ami-0c54d42f8f4180b0c"
KERNEL_MATRIX_TESTING_ARM_AMI_ID: "ami-021f04c00ecfa8590"
RUN_E2E_TESTS: "auto" # Should be "off", "auto" or "on" it will change the trigger condition for new-e2e tests on branch != main
RUN_KMT_TESTS: "auto" # Should be "auto" or "on". "on" forces all Kernel Matrix Testing jobs to run.
RUN_UNIT_TESTS: "auto" # Should be "auto", "on", "off" it will change the trigger condition for unit tests on branch != main
# skip known flaky tests by default
GO_TEST_SKIP_FLAKE: "true"
# Start aws ssm variables
# They must be defined as environment variables in the GitLab CI/CD settings, to ease rotation if needed
AGENT_QA_PROFILE: ci.datadog-agent.agent-qa-profile # agent-devx-infra
API_KEY_ORG2: ci.datadog-agent.datadog_api_key_org2 # agent-devx-infra
API_KEY_DDDEV: ci.datadog-agent.datadog_api_key # agent-devx-infra
APP_KEY_ORG2: ci.datadog-agent.datadog_app_key_org2 # agent-devx-infra
CHANGELOG_COMMIT_SHA: ci.datadog-agent.gitlab_changelog_commit_sha # agent-devx-infra
CHOCOLATEY_API_KEY: ci.datadog-agent.chocolatey_api_key # windows-agent
CODECOV_TOKEN: ci.datadog-agent.codecov_token # agent-devx-infra
DEB_GPG_KEY: ci.datadog-agent.deb_signing_private_key_${DEB_GPG_KEY_ID} # agent-delivery
DEB_SIGNING_PASSPHRASE: ci.datadog-agent.deb_signing_key_passphrase_${DEB_GPG_KEY_ID} # agent-delivery
DOCKER_REGISTRY_LOGIN: ci.datadog-agent.docker_hub_login # container-integrations
DOCKER_REGISTRY_PWD: ci.datadog-agent.docker_hub_pwd # container-integrations
E2E_TESTS_API_KEY: ci.datadog-agent.e2e_tests_api_key # agent-devx-loops
E2E_TESTS_APP_KEY: ci.datadog-agent.e2e_tests_app_key # agent-devx-loops
E2E_TESTS_RC_KEY: ci.datadog-agent.e2e_tests_rc_key # agent-devx-loops
E2E_TESTS_AZURE_CLIENT_ID: ci.datadog-agent.e2e_tests_azure_client_id # agent-devx-loops
E2E_TESTS_AZURE_CLIENT_SECRET: ci.datadog-agent.e2e_tests_azure_client_secret # agent-devx-loops
E2E_TESTS_AZURE_TENANT_ID: ci.datadog-agent.e2e_tests_azure_tenant_id # agent-devx-loops
E2E_TESTS_AZURE_SUBSCRIPTION_ID: ci.datadog-agent.e2e_tests_azure_subscription_id # agent-devx-loops
E2E_TESTS_GCP_CREDENTIALS: ci.datadog-agent.e2e_tests_gcp_credentials # agent-devx-loops
KITCHEN_EC2_SSH_KEY: ci.datadog-agent.aws_ec2_kitchen_ssh_key # agent-devx-loops
KITCHEN_AZURE_CLIENT_ID: ci.datadog-agent.azure_kitchen_client_id # agent-devx-loops
KITCHEN_AZURE_CLIENT_SECRET: ci.datadog-agent.azure_kitchen_client_secret # agent-devx-loops
KITCHEN_AZURE_SUBSCRIPTION_ID: ci.datadog-agent.azure_kitchen_subscription_id # agent-devx-loops
KITCHEN_AZURE_TENANT_ID: ci.datadog-agent.azure_kitchen_tenant_id # agent-devx-loops
GITHUB_PR_COMMENTER_APP_KEY: pr-commenter.github_app_key # agent-devx-infra
GITHUB_PR_COMMENTER_INTEGRATION_ID: pr-commenter.github_integration_id # agent-devx-infra
GITHUB_PR_COMMENTER_INSTALLATION_ID: pr-commenter.github_installation_id # agent-devx-infra
GITLAB_SCHEDULER_TOKEN: ci.datadog-agent.gitlab_pipelines_scheduler_token # ci-cd
GITLAB_READ_API_TOKEN: ci.datadog-agent.gitlab_read_api_token # ci-cd
GITLAB_FULL_API_TOKEN: ci.datadog-agent.gitlab_full_api_token # ci-cd
INSTALL_SCRIPT_API_KEY: ci.agent-linux-install-script.datadog_api_key_2 # agent-delivery
JIRA_READ_API_TOKEN: ci.datadog-agent.jira_read_api_token # agent-devx-infra
AGENT_GITHUB_APP_ID: ci.datadog-agent.platform-github-app-id # agent-devx-infra
AGENT_GITHUB_INSTALLATION_ID: ci.datadog-agent.platform-github-app-installation-id # agent-devx-infra
AGENT_GITHUB_KEY: ci.datadog-agent.platform-github-app-key # agent-devx-infra
MACOS_GITHUB_APP_ID: ci.datadog-agent.macos_github_app_id # agent-devx-infra
MACOS_GITHUB_INSTALLATION_ID: ci.datadog-agent.macos_github_installation_id # agent-devx-infra
MACOS_GITHUB_KEY: ci.datadog-agent.macos_github_key_b64 # agent-devx-infra
MACOS_GITHUB_APP_ID_2: ci.datadog-agent.macos_github_app_id_2 # agent-devx-infra
MACOS_GITHUB_INSTALLATION_ID_2: ci.datadog-agent.macos_github_installation_id_2 # agent-devx-infra
MACOS_GITHUB_KEY_2: ci.datadog-agent.macos_github_key_b64_2 # agent-devx-infra
RPM_GPG_KEY: ci.datadog-agent.rpm_signing_private_key_${RPM_GPG_KEY_ID} # agent-delivery
RPM_SIGNING_PASSPHRASE: ci.datadog-agent.rpm_signing_key_passphrase_${RPM_GPG_KEY_ID} # agent-delivery
SLACK_AGENT_CI_TOKEN: ci.datadog-agent.slack_agent_ci_token # agent-devx-infra
SMP_ACCOUNT_ID: ci.datadog-agent.single-machine-performance-account-id # single-machine-performance
SMP_AGENT_TEAM_ID: ci.datadog-agent.single-machine-performance-agent-team-id # single-machine-performance
SMP_API: ci.datadog-agent.single-machine-performance-api # single-machine-performance
SMP_BOT_ACCESS_KEY: ci.datadog-agent.single-machine-performance-bot-access-key # single-machine-performance
SMP_BOT_ACCESS_KEY_ID: ci.datadog-agent.single-machine-performance-bot-access-key-id # single-machine-performance
SSH_KEY: ci.datadog-agent.ssh_key # system-probe
SSH_KEY_RSA: ci.datadog-agent.ssh_key_rsa # agent-devx-loops
SSH_PUBLIC_KEY_RSA: ci.datadog-agent.ssh_public_key_rsa # agent-devx-loops
VCPKG_BLOB_SAS_URL: ci.datadog-agent-buildimages.vcpkg_blob_sas_url # windows-agent
WINGET_PAT: ci.datadog-agent.winget_pat # windows-agent
# End aws ssm variables
# Start vault variables
# End vault variables
ATLASSIAN_WRITE: atlassian-write
AGENT_GITHUB_APP: agent-github-app
MACOS_GITHUB_APP_1: macos-github-app-one
MACOS_GITHUB_APP_2: macos-github-app-two
DD_PKG_VERSION: "latest"
# Job stage attempts (see https://docs.gitlab.com/ee/ci/runners/configure_runners.html#job-stages-attempts)
ARTIFACT_DOWNLOAD_ATTEMPTS: 2
EXECUTOR_JOB_SECTION_ATTEMPTS: 2
GET_SOURCES_ATTEMPTS: 2
RESTORE_CACHE_ATTEMPTS: 2
# Feature flags
FF_SCRIPT_SECTIONS: 1 # Prevent multiline scripts log collapsing, see https://gitlab.com/gitlab-org/gitlab-runner/-/issues/3392
FF_KUBERNETES_HONOR_ENTRYPOINT: true # Honor the entrypoint in the Docker image when running Kubernetes jobs
#
# Condition mixins for simplification of rules
#
.if_main_branch: &if_main_branch
if: $CI_COMMIT_BRANCH == "main"
.if_release_branch: &if_release_branch
if: $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+\.x$/
.if_version_6: &if_version_6
if: $RELEASE_VERSION_6 != ""
.if_not_version_6: &if_not_version_6
if: $RELEASE_VERSION_6 == ""
.if_version_7: &if_version_7
if: $RELEASE_VERSION_7 != ""
.if_not_version_7: &if_not_version_7
if: $RELEASE_VERSION_7 == ""
.if_deploy: &if_deploy
if: $DEPLOY_AGENT == "true" || $DDR_WORKFLOW_ID != null
.if_not_deploy: &if_not_deploy
if: $DEPLOY_AGENT != "true" && $DDR_WORKFLOW_ID == null
.if_deploy_installer: &if_deploy_installer
if: $DEPLOY_INSTALLER == "true" || $DDR_WORKFLOW_ID != null
.if_tagged_commit: &if_tagged_commit
if: $CI_COMMIT_TAG != null
.if_not_nightly_or_dev_repo_branch: &if_not_nightly_or_dev_repo_branch
if: $BUCKET_BRANCH != "nightly" && $BUCKET_BRANCH != "oldnightly" && $BUCKET_BRANCH != "dev"
.if_not_stable_or_beta_repo_branch: &if_not_stable_or_beta_repo_branch
if: $BUCKET_BRANCH != "beta" && $BUCKET_BRANCH != "stable"
.if_not_stable_repo_branch: &if_not_stable_repo_branch
if: $BUCKET_BRANCH != "stable"
# CI_PIPELINE_SOURCE can be set to "trigger" or "pipeline" depending on how the trigger was done.
# See https://docs.gitlab.com/ee/ci/triggers/index.html#configure-cicd-jobs-to-run-in-triggered-pipelines.
.if_triggered_pipeline: &if_triggered_pipeline
if: $CI_PIPELINE_SOURCE == "trigger" || $CI_PIPELINE_SOURCE == "pipeline"
# Rule to trigger all builds conditionally.
# By default:
# - on main and deploy pipelines, all builds are run
# - on branch pipelines, only a subset of build jobs are run (the ARM and MacOS jobs are not run).
# RUN_ALL_BUILDS can be set to true to force all build jobs to be run on a branch pipeline.
# RUN_ALL_BUILDS has no effect on main/deploy pipelines: they always run all builds (as some jobs
# on main and deploy pipelines depend on jobs that are only run if we run all builds).
.if_run_all_builds: &if_run_all_builds
if: $CI_COMMIT_BRANCH == "main" || $DEPLOY_AGENT == "true" || $RUN_ALL_BUILDS == "true" || $DDR_WORKFLOW_ID != null
.if_not_run_all_builds: &if_not_run_all_builds
if: $CI_COMMIT_BRANCH != "main" && $DEPLOY_AGENT != "true" && $RUN_ALL_BUILDS != "true" && $DDR_WORKFLOW_ID == null
# Rule to trigger test setup, run, and cleanup.
# By default:
# - on main and deploy pipelines, installer tests are run
# - on branch pipelines, installer tests are run on a subset of the OSes we test
# RUN_E2E_TESTS can be set to on to force all the installer tests to be run on a branch pipeline.
# RUN_E2E_TESTS can be set to false to force installer tests to not run on main/deploy pipelines.
.if_installer_tests: &if_installer_tests
if: ($CI_COMMIT_BRANCH == "main" || $DEPLOY_AGENT == "true" || $RUN_E2E_TESTS == "on" || $DDR_WORKFLOW_ID != null) && $RUN_E2E_TESTS != "off"
.if_testing_cleanup: &if_testing_cleanup
if: $TESTING_CLEANUP == "true"
.if_run_all_e2e_tests: &if_run_all_e2e_tests
if: $RUN_E2E_TESTS == "on"
# When RUN_E2E_TESTS is set to "auto". We do not enforce a behavior for the tests.
# The behavior of each test will be defined by its rules.
# For example for new-e2e tests created by each team, here is an example of such rules: https://github.com/DataDog/datadog-agent/blob/ba7079d92077ab5898378594dcafb9cd88a77e57/.gitlab-ci.yml#L1160-L1167
# For the installer tests when RUN_E2E_TESTS is set to "auto", we run a subset of tests on branch pipelines and all the tests on main.
.if_auto_e2e_tests: &if_auto_e2e_tests
if: $RUN_E2E_TESTS == "auto"
.if_disable_e2e_tests: &if_disable_e2e_tests
if: $RUN_E2E_TESTS == "off"
# Enable forcing all KMT tests to run
.if_run_all_kmt_tests: &if_run_all_kmt_tests
if: $RUN_KMT_TESTS == 'on'
.if_disable_unit_tests: &if_disable_unit_tests
if: $RUN_UNIT_TESTS == "off"
.if_run_all_unit_tests: &if_run_all_unit_tests
if: $RUN_UNIT_TESTS == "on"
.if_deploy_on_beta_repo_branch: &if_deploy_on_beta_repo_branch
if: ($DEPLOY_AGENT == "true" || $DDR_WORKFLOW_ID != null) && $BUCKET_BRANCH == "beta"
# Rule to trigger jobs only when a tag matches a given pattern (for RCs)
# on the beta branch.
# Note: due to workflow rules, rc tag => deploy pipeline, so there's technically no
# need to check again if the pipeline is a deploy pipeline, but it doesn't hurt
# to explicitly add it.
.if_deploy_on_rc_tag_on_beta_repo_branch: &if_deploy_on_rc_tag_on_beta_repo_branch
if: ($DEPLOY_AGENT == "true" || $DDR_WORKFLOW_ID != null) && $BUCKET_BRANCH == "beta" && $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$/
.if_scheduled_main: &if_scheduled_main
if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main"
# Rule to trigger jobs only when a branch matches the mergequeue pattern.
.if_mergequeue: &if_mergequeue
if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
.fakeintake_paths: &fakeintake_paths
paths:
- "test/fakeintake/**/*"
- .gitlab/binary_build/fakeintake.yml
- .gitlab/container_build/fakeintake.yml
- .gitlab/dev_container_deploy/fakeintake.yml
#
# Workflow rules
# Rules used to define whether a pipeline should run, and with which variables
#
workflow:
rules:
- <<: *if_triggered_pipeline
- <<: *if_main_branch
variables:
GO_TEST_SKIP_FLAKE: "false"
- <<: *if_release_branch
- <<: *if_deploy
- <<: *if_deploy_installer
- if: $CI_COMMIT_TAG == null
#
# List of rule blocks used in the pipeline
# Any job in the pipeline either runs (with when: on_success) in all pipelines, or follows one of the below rule blocks.
#
.except_mergequeue:
- <<: *if_mergequeue
when: never
.on_mergequeue:
- <<: *if_mergequeue
when: on_success
.manual:
- !reference [.except_mergequeue]
- when: manual
allow_failure: true
.except_no_a6_or_no_a7:
- !reference [.except_mergequeue]
- <<: *if_not_version_6
when: never
- <<: *if_not_version_7
when: never
.on_dev_branch_manual:
- !reference [.except_mergequeue]
- <<: *if_main_branch
when: never
- <<: *if_tagged_commit
when: never
- when: manual
allow_failure: true
.on_main:
- <<: *if_main_branch
.on_main_manual:
- <<: *if_main_branch
when: manual
allow_failure: true
.on_main_always:
- <<: *if_main_branch
when: always
.on_tag_or_a7:
- !reference [.except_mergequeue]
- <<: *if_tagged_commit
- <<: *if_version_7
.on_deploy:
- <<: *if_deploy
.on_deploy_installer:
- <<: *if_deploy_installer
.on_deploy_failure:
- <<: *if_deploy
when: on_failure
.on_deploy_rc:
- <<: *if_not_deploy
when: never
- <<: *if_deploy_on_rc_tag_on_beta_repo_branch
when: on_success
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
# rule to trigger job for internal image deployment if deploy is set or
# manually if not
.on_deploy_internal_or_manual:
- !reference [.except_mergequeue]
- <<: *if_deploy
variables:
RELEASE_PROD: "true"
- when: manual
allow_failure: true
variables:
RELEASE_PROD: "false"
# Same as on_deploy_manual, except the job would not run on pipelines
# using beta branch, it would only run for the final release.
.on_deploy_manual_final:
- <<: *if_not_deploy
when: never
- <<: *if_deploy_on_beta_repo_branch
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
DSD_REPOSITORY: dogstatsd-dev
IMG_REGISTRIES: dev
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
# This rule is a variation of on_deploy_manual where
# the job is usually run manually, except when the pipeline
# builds an RC: in this case, the job is run automatically.
# This is done to reduce the number of manual steps that have
# to be done when creating RCs.
.on_deploy_manual_auto_on_rc:
- <<: *if_not_deploy
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent-dev
DSD_REPOSITORY: dogstatsd-dev
IMG_REGISTRIES: dev
- <<: *if_deploy_on_rc_tag_on_beta_repo_branch
when: on_success
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: agent
DSD_REPOSITORY: dogstatsd
IMG_REGISTRIES: public
# This is used for image vulnerability scanning. Because agent 6
# uses python 2, which has many vulnerabilities that will not get
# patched, we do not wish to scan this image. For this reason, only
# agent 7 versions should be published internally using these
# configurations.
.on_deploy_internal_rc:
- <<: *if_not_deploy
when: never
- <<: *if_deploy_on_rc_tag_on_beta_repo_branch
when: on_success
variables:
AGENT_REPOSITORY: ci/datadog-agent/agent-release
CLUSTER_AGENT_REPOSITORY: ci/datadog-agent/cluster-agent-release
DSD_REPOSITORY: ci/datadog-agent/dogstatsd-release
IMG_REGISTRIES: internal-aws-ddbuild
# Same as on_deploy_manual_final, except the job is used to publish images
# to our internal registries.
.on_deploy_internal_manual_final:
- <<: *if_not_deploy
when: never
- <<: *if_deploy_on_beta_repo_branch
when: never
- <<: *if_not_stable_or_beta_repo_branch
when: never
- when: manual
allow_failure: true
variables:
AGENT_REPOSITORY: ci/datadog-agent/agent-release
CLUSTER_AGENT_REPOSITORY: ci/datadog-agent/cluster-agent-release
DSD_REPOSITORY: ci/datadog-agent/dogstatsd-release
IMG_REGISTRIES: internal-aws-ddbuild
.on_deploy_nightly_repo_branch:
- <<: *if_not_nightly_or_dev_repo_branch
when: never
- <<: *if_deploy
.on_deploy_nightly_repo_branch_always:
- <<: *if_not_nightly_or_dev_repo_branch
when: never
- <<: *if_deploy
when: always
.on_deploy_stable_or_beta_repo_branch:
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_deploy
.on_deploy_stable_or_beta_repo_branch_manual:
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_deploy
when: manual
allow_failure: true
# This rule will add the job as manual when running on beta deploy branch
# and will add it as a regular automatically running job when running
# on stable deploy branch.
.on_deploy_stable_or_beta_manual_auto_on_stable:
- <<: *if_not_stable_or_beta_repo_branch
when: never
- <<: *if_not_deploy
when: never
- <<: *if_not_stable_repo_branch
when: manual
allow_failure: true
- when: on_success
.except_deploy:
- <<: *if_deploy
when: never
.except_no_tests_no_deploy:
- if: $DEPLOY_AGENT == "false" && $DDR_WORKFLOW_ID == null && $RUN_E2E_TESTS == "off"
when: never
.on_main_or_release_branch:
- <<: *if_main_branch
- <<: *if_release_branch
.on_main_or_release_branch_or_all_builds_or_pkg_installer_changes:
- <<: *if_main_branch
- <<: *if_release_branch
- <<: *if_run_all_builds
- <<: *if_run_all_unit_tests
- changes:
paths:
- pkg/fleet/**/*
compare_to: main
variables:
FAST_TESTS: "true"
.except_main_or_release_branch:
- <<: *if_main_branch
when: never
- <<: *if_release_branch
when: never
- !reference [.except_mergequeue]
.on_main_or_release_branch_or_deploy_always:
- <<: *if_deploy
when: always
- <<: *if_main_branch
when: always
- <<: *if_release_branch
when: always
.on_all_builds:
- <<: *if_run_all_builds
.on_all_builds_manual:
- <<: *if_run_all_builds
when: manual
allow_failure: true
.on_kitchen_tests:
- <<: *if_installer_tests
.on_kitchen_tests_always:
- <<: *if_installer_tests
when: always
.on_all_install_script_tests:
- <<: *if_installer_tests
# Default kitchen tests are also run on dev branches
# In that case, the target OS versions is a subset of the
# available versions, stored in DEFAULT_KITCHEN_OSVERS
.on_default_kitchen_tests:
- !reference [.except_mergequeue]
- <<: *if_installer_tests
- <<: *if_auto_e2e_tests
variables:
KITCHEN_OSVERS: $DEFAULT_KITCHEN_OSVERS
.on_default_new_e2e_tests:
- !reference [.except_mergequeue]
- <<: *if_disable_e2e_tests
when: never
- <<: *if_installer_tests
- <<: *if_auto_e2e_tests
variables:
E2E_OSVERS: $E2E_BRANCH_OSVERS
.on_default_kitchen_tests_always:
- !reference [.except_mergequeue]
- <<: *if_installer_tests
when: always
- <<: *if_auto_e2e_tests
when: always
variables:
KITCHEN_OSVERS: $DEFAULT_KITCHEN_OSVERS
.on_main_or_testing_cleanup:
- <<: *if_main_branch
- <<: *if_testing_cleanup
.on_testing_cleanup:
- <<: *if_testing_cleanup
.security_agent_change_paths: &security_agent_change_paths
- pkg/ebpf/**/*
- pkg/security/**/*
- pkg/eventmonitor/**/*
- test/kitchen/site-cookbooks/dd-security-agent-check/**/*
- test/kitchen/test/integration/security-agent-test/**/*
- test/kitchen/test/integration/security-agent-stress/**/*
- .gitlab/functional_test/security_agent.yml
- .gitlab/kernel_matrix_testing/security_agent.yml
- .gitlab/kernel_matrix_testing/common.yml
- .gitlab/source_test/ebpf.yml
- test/new-e2e/system-probe/**/*
- test/new-e2e/scenarios/system-probe/**/*
- test/new-e2e/pkg/runner/**/*
- test/new-e2e/pkg/utils/**/*
- test/new-e2e/go.mod
- tasks/security_agent.py
- tasks/kmt.py
- tasks/kernel_matrix_testing/*
.on_security_agent_changes_or_manual:
- <<: *if_main_branch
allow_failure: true
- !reference [.except_mergequeue]
- <<: *if_run_all_kmt_tests
- changes:
paths: *security_agent_change_paths
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
- when: manual
allow_failure: true
.if_windows_installer_changes: &if_windows_installer_changes
changes:
paths:
- tools/windows/DatadogAgentInstaller/**/*
- .gitlab/e2e_install_packages/windows.yml
- test/new-e2e/tests/windows/install-test/**/*
- test/new-e2e/tests/windows/domain-test/**/*
- tasks/msi.py
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.except_windows_installer_changes:
- <<: *if_windows_installer_changes
when: never
.system_probe_change_paths: &system_probe_change_paths
- pkg/collector/corechecks/ebpf/**/*
- pkg/collector/corechecks/servicediscovery/module/*
- pkg/ebpf/**/*
- pkg/network/**/*
- pkg/process/monitor/*
- pkg/util/kernel/**/*
- .gitlab/kernel_matrix_testing/system_probe.yml
- .gitlab/kernel_matrix_testing/common.yml
- .gitlab/source_test/ebpf.yml
- test/new-e2e/system-probe/**/*
- test/new-e2e/scenarios/system-probe/**/*
- test/new-e2e/pkg/runner/**/*
- test/new-e2e/pkg/utils/**/*
- test/new-e2e/go.mod
- tasks/system_probe.py
- tasks/kmt.py
- tasks/kernel_matrix_testing/*
.on_system_probe_or_e2e_changes_or_manual:
- <<: *if_main_branch
- !reference [.except_mergequeue]
- <<: *if_run_all_kmt_tests
- changes:
paths: *system_probe_change_paths
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_e2e_changes_or_manual:
- <<: *if_main_branch
- !reference [.except_mergequeue]
- changes:
paths:
- test/new-e2e/pkg/**/*
- test/new-e2e/test-infra-definition/*
- test/new-e2e/go.mod
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
when: on_success
- when: manual
allow_failure: true
# New E2E related rules
.on_e2e_main_release_or_rc: # This rule is used as a base for all new-e2e rules
- <<: *if_disable_e2e_tests
when: never
- !reference [.except_mergequeue]
- <<: *if_run_all_e2e_tests
when: on_success
- <<: *if_main_branch
when: on_success
- <<: *if_release_branch
when: on_success
- if: $CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$/
when: on_success
- changes:
paths:
- test/new-e2e/pkg/**/*
- test/new-e2e/go.mod
- flakes.yaml
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_e2e_or_windows_installer_changes:
- !reference [.on_e2e_main_release_or_rc]
- <<: *if_windows_installer_changes
when: on_success
.on_e2e_or_fakeintake_changes_or_manual:
- !reference [.on_e2e_main_release_or_rc]
- changes:
<<: *fakeintake_paths
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
variables:
FAKEINTAKE_IMAGE_OVERRIDE: "public.ecr.aws/datadog/fakeintake:v$CI_COMMIT_SHORT_SHA"
when: on_success
- changes:
paths:
- test/new-e2e/test-infra-definition/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
when: on_success
- when: manual
allow_failure: true
.on_container_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- comp/core/tagger/**/*
- comp/core/workloadmeta/**/*
- comp/core/autodiscovery/listeners/**/*
- comp/core/autodiscovery/providers/**/*
- comp/languagedetection/**/*
- pkg/clusteragent/admission/mutate/**/*
- pkg/collector/corechecks/cluster/**/*
- pkg/collector/corechecks/containers/**/*
- pkg/collector/corechecks/containerimage/**/*
- pkg/collector/corechecks/containerlifecycle/**/*
- pkg/collector/corechecks/sbom/**/*
- pkg/sbom/**/*
- pkg/util/clusteragent/**/*
- pkg/util/containerd/**/*
- pkg/util/containers/**/*
- pkg/util/docker/**/*
- pkg/util/ecs/**/*
- pkg/util/kubernetes/**/*
- pkg/util/cgroups/**/*
- pkg/util/trivy/**/*
- test/new-e2e/tests/containers/**/*
- test/new-e2e/go.mod
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
when: on_success
.on_rc_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- pkg/config/remote/**/*
- comp/remote-config/**/*
- test/new-e2e/tests/remote-config/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_asc_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
# TODO: Add paths that should trigger tests for ASC
- test/new-e2e/tests/agent-shared-components/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_subcommands_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- cmd/**/*
- pkg/**/*
- comp/**/*
- test/new-e2e/tests/agent-subcommands/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_language-detection_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
# TODO: Add paths that should trigger tests for language detection
- test/new-e2e/tests/language-detection/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_npm_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
# TODO: Add paths that should trigger tests for npm
- test/new-e2e/tests/npm/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_discovery_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- test/new-e2e/tests/discovery/**/*
- pkg/collector/corechecks/servicediscovery/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_aml_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- test/new-e2e/tests/agent-metrics-logs/**/*
- cmd/agent/subcommands/dogstatsd*/*
- cmd/agent/subcommands/streamlogs/*
- cmd/dogstatsd/**/*
- comp/agent/jmxlogger/**/*
- comp/aggregator/**/*
- comp/collector/**/*
- comp/core/agenttelemetry/**/*
- comp/core/autodiscovery/providers/config_reader*.go
- comp/core/autodiscovery/providers/file*.go
- comp/dogstatsd/**/*
- comp/forwarder/**/*
- comp/logs/**/*
- comp/serializer/compression/**/*
- pkg/aggregator/**/*
- pkg/collector/**/*
- pkg/commonchecks/**/*
- pkg/jmxfetch/**/*
- pkg/logs/**/*
- pkg/metrics/**/*
- pkg/persistentcache/**/*
- pkg/serializer/**/*
- rtloader/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_cws_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
# TODO: Add paths that should trigger tests for CWS
- test/new-e2e/tests/cws/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_process_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- test/new-e2e/tests/process/**/*
- cmd/process-agent/**/*
- comp/process/**/*
- pkg/process/**/*
- pkg/config/setup/process.go
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_orchestrator_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
# TODO: Add paths that should trigger tests for orchestrator
- test/new-e2e/tests/orchestrator/**/*
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.on_apm_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- pkg/trace/**/*
- cmd/trace-agent/**/*
- comp/trace/**/*
- test/new-e2e/tests/apm/**/*
- test/new-e2e/go.mod
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
when: on_success
.on_installer_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- .gitlab/**/*
- omnibus/config/**/*
- pkg/fleet/**/*
- cmd/installer/**/*
- test/new-e2e/tests/installer/**/*
- tasks/installer.py
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
when: on_success
.on_ndm_netflow_or_e2e_changes:
- !reference [.on_e2e_main_release_or_rc]
- changes:
paths:
- comp/netflow/**/*
- test/new-e2e/tests/ndm/netflow/**/*
- test/new-e2e/go.mod