-
Notifications
You must be signed in to change notification settings - Fork 309
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 ugaitz/rasp-blocking
- Loading branch information
Showing
36 changed files
with
1,278 additions
and
894 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
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
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
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.