Skip to content

Commit

Permalink
Run benchmarks in local gitlab not downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgajg1134 committed Nov 18, 2022
1 parent 6a3d6b7 commit 4728e15
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
17 changes: 1 addition & 16 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
stages:
- benchmarks

variables:
INDEX_FILE: index.txt
DOWNSTREAM_BENCHMARKING_PLATFORM_BRANCH:
value: "knusbaum/dd-trace-go"
description: "Run a specific relenv-microbenchmarking-platform branch downstream"

trigger_benchmarking_platform:
stage: benchmarks
trigger:
project: DataDog/apm-reliability/relenv-microbenchmarking-platform
branch: $DOWNSTREAM_BENCHMARKING_PLATFORM_BRANCH
variables:
UPSTREAM_PROJECT_ID: $CI_PROJECT_ID
UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME
UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
include: ".gitlab/benchmarks.yml"
27 changes: 27 additions & 0 deletions .gitlab/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
variables:
BASE_CI_IMAGE: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/relenv-microbenchmarking-platform:dd-trace-go_knusbaum_test
INDEX_FILE: index.txt

benchmark:
stage: benchmarks
image: $BASE_CI_IMAGE
timeout: 1h
interruptible: true
tags: ["runner:apm-k8s-tweaked-metal"]
script:
# - source ./steps/install-base-deps.sh
# - ./steps/install-benchmark-analyzer.sh
# - ./steps/install-pr-commenter.sh
- ./capture-hardware-software-info.sh
- ./run-benchmarks.sh
- ./upload-results-to-s3.sh
- ./analyze-results.sh
- ./post-pr-comment.sh
artifacts:
name: "reports"
paths:
- reports/
expire_in: 3 months
variables:
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-go
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true"

0 comments on commit 4728e15

Please sign in to comment.