10000 Add PR performance gate by bric3 · Pull Request #8970 · DataDog/dd-trace-java · GitHub
[go: up one dir, main page]

Skip to content

Add PR performance gate #8970

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

Merged
merged 12 commits into from
Jun 25, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(ci): PR performance gate
  • Loading branch information
bric3 committed Jun 18, 2025
commit 51cdcd5abef72a592f8bb2d86c853d632aaa7d99
26 changes: 26 additions & 0 deletions .gitlab/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,32 @@ benchmarks-post-results:
- job: benchmarks-dacapo
artifacts: true

check-big-regressions:
extends: .benchmarks
needs: [ benchmarks-startup, benchmarks-load, benchmarks-dacapo ]
when: on_success
tags: ["arch:amd64"]
# ARTIFACTS_DIR /go/src/github.com/DataDog/apm-reliability/dd-trace-java/reports/
# need to convert them
script:
- !reference [ .benchmarks, script ]
- echo $(pwd)
- |
for benchmarkType in startup load; do
find "$ARTIFACTS_DIR/$benchmarkType" -name "benchmark-baseline.json" -o -name "benchmark-candidate.json" | while read file; do
relpath="${file#$ARTIFACTS_DIR/$benchmarkType/}"
prefix="${relpath%/benchmark-*}" # Remove the trailing /benchmark-(baseline|candidate).json
prefix="${prefix#./}" # Remove any leading ./
prefix="${prefix//\//-}" # Replace / with -
case "$file" in
*benchmark-baseline.json) type="baseline" ;;
*benchmark-candidate.json) type="candidate" ;;
esac
cp "$file" "$ARTIFACTS_DIR/${type}-${prefix}.json"
done
done
- bp-runner $ARTIFACTS_DIR/../.gitlab/benchmarks/bp-runner.fail-on-regression.yml --debug

.dsm-kafka-benchmarks:
stage: benchmarks
rules:
Expand Down
7 changes: 7 additions & 0 deletions .gitlab/benchmarks/bp-runner.fail-on-regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
experiments:
- name: Run regression check
steps:
- name: Regression Check
run: fail_on_regression
# Applies on all scenarios
regression_threshold: 20.0 # percents
0