-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade(CI): Test OCI system-tests scenarios on every commit (#4371)
- Loading branch information
1 parent
87b22d6
commit b87a273
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
- export DD_APP_KEY_ONBOARDING=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-js.dd-app-key-onboarding --with-decryption --query "Parameter.Value" --out text) | ||
- export ONBOARDING_AWS_INFRA_SUBNET_ID=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-js.aws-infra-subnet-id --with-decryption --query "Parameter.Value" --out text) | ||
- export ONBOARDING_AWS_INFRA_SECURITY_GROUPS_ID=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-js.aws-infra-securiy-groups-id --with-decryption --query "Parameter.Value" --out text) | ||
- export ONBOARDING_AWS_INFRA_IAM_INSTANCE_PROFILE=ec2InstanceRole | ||
- export PULUMI_CONFIG_PASSPHRASE=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-js.pulumi-config-passphrase --with-decryption --query "Parameter.Value" --out text) | ||
#Install plugins for PULUMI you need connect to gh. Sometimes this problem arises: GitHub rate limit exceeded | ||
- export GITHUB_TOKEN=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-js.gh-token --with-decryption --query "Parameter.Value" --out text) | ||
|
@@ -64,4 +65,27 @@ onboarding_tests: | |
- ls system-tests/binaries | ||
- cd system-tests | ||
- ./build.sh -i runner | ||
- timeout 2700s ./run.sh $SCENARIO --vm-weblog ${ONBOARDING_FILTER_WEBLOG} --vm-env prod --vm-library ${TEST_LIBRARY} --vm-provider aws --vm-skip-branches ubuntu18_amd64 | ||
- timeout 2700s ./run.sh $SCENARIO --vm-weblog ${ONBOARDING_FILTER_WEBLOG} --vm-env prod --vm-library ${TEST_LIBRARY} --vm-provider aws --vm-skip-branches ubuntu18_amd64 | ||
|
||
onboarding_tests_installer: | ||
extends: .base_job_onboarding_tests | ||
stage: single-step-instrumentation-tests | ||
needs: [oci-internal-test-ecr-publish] | ||
rules: | ||
- when: on_success | ||
allow_failure: true | ||
allow_failure: false | ||
variables: | ||
TEST_LIBRARY: nodejs | ||
ONBOARDING_FILTER_ENV: prod | ||
parallel: | ||
matrix: | ||
- ONBOARDING_FILTER_WEBLOG: [test-app-nodejs,test-app-nodejs-container] | ||
SCENARIO: [INSTALLER_AUTO_INJECTION] | ||
script: | ||
- git clone https://[email protected]/DataDog/system-tests.git system-tests | ||
- export DD_INSTALLER_LIBRARY_VERSION="pipeline-${CI_PIPELINE_ID}" | ||
- ls system-tests/binaries | ||
- cd system-tests | ||
- ./build.sh -i runner | ||
- timeout 2700s ./run.sh $SCENARIO --vm-weblog ${ONBOARDING_FILTER_WEBLOG} --vm-env prod --vm-library ${TEST_LIBRARY} --vm-provider aws --vm-skip-branches ubuntu18_amd64 |