Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Nov 18, 2024
1 parent c157bef commit 2cb4d93
Showing 1 changed file with 111 additions and 85 deletions.
196 changes: 111 additions & 85 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
---
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/common/shared.yml
- .gitlab/common/pr_commenter.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_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/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/software_composition_analysis/software_composition_analysis.yml
- .gitlab/source_test/include.yml
- .gitlab/trigger_release/trigger_release.yml
# - .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/common/shared.yml
# - .gitlab/common/pr_commenter.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_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/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/software_composition_analysis/software_composition_analysis.yml
# - .gitlab/source_test/include.yml
# - .gitlab/trigger_release/trigger_release.yml

default:
retry:
Expand All @@ -54,52 +54,78 @@ default:
- data_integrity_failure

stages:
- .pre
# - .pre
- setup
- maintenance_jobs
- deps_build
- deps_fetch
- 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
- kitchen_deploy
- e2e_pre_test
- kitchen_testing
- pkg_metrics
- container_build
- container_scan
- check_deploy
- dev_container_deploy
- deploy_containers
- deploy_packages
- deploy_cws_instrumentation
- deploy_dca
- trigger_release
- choco_build
- choco_deploy
- internal_image_deploy
- install_script_testing
- e2e
- kitchen_cleanup
- functional_test
- functional_test_sysprobe
- functional_test_cleanup
- junit_upload
- internal_kubernetes_deploy
- lint
- post_rc_build
- check_merge
- notify
# - maintenance_jobs
# - deps_build
# - deps_fetch
# - 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
# - kitchen_deploy
# - e2e_pre_test
# - kitchen_testing
# - pkg_metrics
# - container_build
# - container_scan
# - check_deploy
# - dev_container_deploy
# - deploy_containers
# - deploy_packages
# - deploy_cws_instrumentation
# - deploy_dca
# - trigger_release
# - choco_build
# - choco_deploy
# - internal_image_deploy
# - install_script_testing
# - e2e
# - kitchen_cleanup
# - functional_test
# - functional_test_sysprobe
# - functional_test_cleanup
# - junit_upload
# - internal_kubernetes_deploy
# - lint
# - post_rc_build
# - check_merge
# - notify

test_job:
stage: setup
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/test-infra-definitions/runner:0a48ed729822
tags: ["arch:amd64"]
script:
- mkdir -p ~/.aws
- $CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $AGENT_QA_PROFILE_SSM_NAME >> ~/.aws/config
- export AWS_PROFILE=agent-qa-ci
- $CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $SSH_PUBLIC_KEY_RSA_SSM_NAME > $E2E_PUBLIC_KEY_PATH
- touch $E2E_PRIVATE_KEY_PATH && chmod 600 $E2E_PRIVATE_KEY_PATH && $CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $SSH_KEY_RSA_SSM_NAME > $E2E_PRIVATE_KEY_PATH
- pulumi login "s3://dd-pulumi-state?region=us-east-1&awssdk=v2&profile=$AWS_PROFILE"
- export DD_API_KEY=$($CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $INSTALL_SCRIPT_API_KEY_SSM_NAME)
- echo ${#DD_API_KEY}
- echo $DD_API_KEY | grep -q "revoked" && echo "Seems like API key is revoked"
variables:
KUBERNETES_MEMORY_REQUEST: 12Gi
KUBERNETES_MEMORY_LIMIT: 16Gi
KUBERNETES_CPU_REQUEST: 6
E2E_PUBLIC_KEY_PATH: /tmp/agent-qa-ssh-key.pub
E2E_PRIVATE_KEY_PATH: /tmp/agent-qa-ssh-key
E2E_KEY_PAIR_NAME: datadog-agent-ci-rsa
E2E_PIPELINE_ID: $CI_PIPELINE_ID
E2E_COMMIT_SHA: $CI_COMMIT_SHORT_SHA
E2E_OUTPUT_DIR: $CI_PROJECT_DIR/e2e-output
E2E_MAJOR_VERSION: 6

variables:
# Directory in which we execute the omnibus build.
Expand Down

0 comments on commit 2cb4d93

Please sign in to comment.