Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pipeline to upload benchmark samples to S3 #1595

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
stages:
- benchmarks
- upload-to-s3

include: ".gitlab/benchmarks.yml"
13 changes: 13 additions & 0 deletions .gitlab/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,16 @@ benchmark:
variables:
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-go
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true"

upload-to-s3:
stage: upload-to-s3
when: on_success
trigger:
project: DataDog/apm-reliability/relenv-microbenchmarking-platform
branch: ddyurchenko/temp-s3-uploader
strategy: depend
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
6 changes: 6 additions & 0 deletions .gitlab/scripts/analyze-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ cd /benchmark-analyzer
./benchmark_analyzer compare pairwise --outpath ${REPORTS_DIR}/report.md --format md-nodejs main.json pr.json
./benchmark_analyzer compare pairwise --outpath ${REPORTS_DIR}/report_full.html --format html main.json pr.json

# Extra artifacts for S3 uploader job
cp "${ARTIFACTS_DIR}/pr_bench.txt" "$REPORTS_DIR/pr_bench.txt"
cp "${ARTIFACTS_DIR}/main_bench.txt" "$REPORTS_DIR/main_bench.txt"
cp "/benchmark-analyzer/pr.json" "$REPORTS_DIR/pr_bench.json"
cp "/benchmark-analyzer/main.json" "$REPORTS_DIR/main_bench.json"
echo "UPSTREAM_JOB_ID=$CI_JOB_ID" >> "$REPORTS_DIR/benchmark.env"
1 change: 1 addition & 0 deletions .gitlab/scripts/run-benchmarks.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

REPORTS_DIR="$(pwd)/reports/"
ARTIFACTS_DIR="/artifacts/${CI_JOB_ID}"
mkdir -p "${ARTIFACTS_DIR}"

Expand Down