-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into khanayan123/update-otel-invalid-telemetry-…
…calculation
- Loading branch information
Showing
118 changed files
with
5,026 additions
and
983 deletions.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Datadog Static Analysis | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
static-analysis: | ||
runs-on: ubuntu-latest | ||
name: Datadog Static Analyzer | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Check code meets quality and security standards | ||
id: datadog-static-analysis | ||
uses: DataDog/datadog-static-analyzer-github-action@v1 | ||
with: | ||
dd_api_key: ${{ secrets.DD_STATIC_ANALYSIS_API_KEY }} | ||
dd_app_key: ${{ secrets.DD_STATIC_ANALYSIS_APP_KEY }} | ||
dd_service: dd-trace-js | ||
dd_env: ci | ||
dd_site: datadoghq.com | ||
cpu_count: 2 |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.macrobenchmarks: | ||
stage: macrobenchmarks | ||
rules: | ||
- if: ($NIGHTLY_BENCHMARKS || $CI_PIPELINE_SOURCE != "schedule") && $CI_COMMIT_REF_NAME == "master" | ||
when: always | ||
- when: manual | ||
tags: ["runner:apm-k8s-same-cpu"] | ||
needs: [] | ||
interruptible: true | ||
timeout: 1h | ||
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:js-hapi | ||
script: | ||
- git clone --branch js/hapi https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform platform && cd platform | ||
- bp-runner bp-runner.yml --debug -t | ||
artifacts: | ||
name: "artifacts" | ||
when: always | ||
paths: | ||
- platform/artifacts/ | ||
expire_in: 3 months | ||
variables: | ||
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true" | ||
|
||
K6_OPTIONS_WARMUP_RATE: 500 | ||
K6_OPTIONS_WARMUP_DURATION: 1m | ||
K6_OPTIONS_WARMUP_GRACEFUL_STOP: 10s | ||
K6_OPTIONS_WARMUP_PRE_ALLOCATED_VUS: 4 | ||
K6_OPTIONS_WARMUP_MAX_VUS: 4 | ||
|
||
K6_OPTIONS_NORMAL_OPERATION_RATE: 300 | ||
K6_OPTIONS_NORMAL_OPERATION_DURATION: 10m | ||
K6_OPTIONS_NORMAL_OPERATION_GRACEFUL_STOP: 10s | ||
K6_OPTIONS_NORMAL_OPERATION_PRE_ALLOCATED_VUS: 4 | ||
K6_OPTIONS_NORMAL_OPERATION_MAX_VUS: 4 | ||
|
||
K6_OPTIONS_HIGH_LOAD_RATE: 700 | ||
K6_OPTIONS_HIGH_LOAD_DURATION: 3m | ||
K6_OPTIONS_HIGH_LOAD_GRACEFUL_STOP: 10s | ||
K6_OPTIONS_HIGH_LOAD_PRE_ALLOCATED_VUS: 4 | ||
K6_OPTIONS_HIGH_LOAD_MAX_VUS: 4 | ||
|
||
DDTRACE_INSTALL_VERSION: "git://github.com/Datadog/dd-trace-js.git#${CI_COMMIT_SHA}" | ||
|
||
# Workaround: Currently we're not running the benchmarks on every PR, but GitHub still shows them as pending. | ||
# By marking the benchmarks as allow_failure, this should go away. (This workaround should be removed once the | ||
# benchmarks get changed to run on every PR) | ||
allow_failure: true | ||
|
||
# Retry on Gitlab internal system failures | ||
retry: | ||
max: 2 | ||
when: | ||
- unknown_failure | ||
- data_integrity_failure | ||
- runner_system_failure | ||
- scheduler_failure | ||
- api_failure | ||
|
||
baseline: | ||
extends: .macrobenchmarks | ||
variables: | ||
DD_BENCHMARKS_CONFIGURATION: baseline | ||
|
||
only-tracing: | ||
extends: .macrobenchmarks | ||
variables: | ||
DD_BENCHMARKS_CONFIGURATION: only-tracing |
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 |
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
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
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
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 |
---|---|---|
|
@@ -60,6 +60,7 @@ declare -a plugins=( | |
"restify" | ||
"router" | ||
"tedious" | ||
"undici" | ||
"when" | ||
"winston" | ||
) | ||
|
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
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
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
Oops, something went wrong.