From e650df895a69b27db9e6b0e7c3fe51e561dc7776 Mon Sep 17 00:00:00 2001 From: jean-philippe bempel Date: Fri, 7 Jun 2024 08:34:31 +0200 Subject: [PATCH] Add debugger benchmarks benchmarks are run only when a file is modified on paths under dd-java-agent/agent-debugger/* --- .gitlab/benchmarks.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.gitlab/benchmarks.yml b/.gitlab/benchmarks.yml index 108e6a3d9b9..9b8b58a5aac 100644 --- a/.gitlab/benchmarks.yml +++ b/.gitlab/benchmarks.yml @@ -102,3 +102,36 @@ dsm-kafka-consumer-benchmark: variables: BP_KAFKA_SCENARIO_DIR: consumer-benchmark +debugger-benchmarks: + stage: benchmarks + rules: + - if: $CI_PIPELINE_SOURCE != "schedule" + changes: + paths: + - dd-java-agent/agent-debugger/**/* + compare_to: "master" + when: on_success + - when: manual + allow_failure: true + tags: ["runner:apm-k8s-tweaked-metal"] + interruptible: true + timeout: 1h + image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:java-debugger + script: + - export ARTIFACTS_DIR="$(pwd)/reports" && mkdir -p "${ARTIFACTS_DIR}" + - git clone --branch java/debugger-benchmarks https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform.git /platform && cd /platform + - numactl --cpunodebind=1 --membind=1 bp-runner bp-runner.yml --debug + - "./steps/create-report.sh || :" + - "./steps/post-pr-comment.sh || :" + artifacts: + name: "artifacts" + when: always + paths: + - /go/src/github.com/DataDog/apm-reliability/dd-trace-java/reports/ + expire_in: 3 months + variables: + UPSTREAM_PROJECT_ID: $CI_PROJECT_ID # The ID of the current project. This ID is unique across all projects on the GitLab instance. + UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME # "dd-trace-java" + UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME # The branch or tag name for which project is built. + UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA # The commit revision the project is built for. + FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true"