Skip to content

Commit

Permalink
QoL improvements for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddyurchenko committed Dec 7, 2022
1 parent 5ac4f70 commit 2780eb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitlab/benchmarks.yml
Expand Up @@ -15,7 +15,7 @@ benchmark:
script:
- ./.gitlab/scripts/capture-hardware-software-info.sh
- ./.gitlab/scripts/run-benchmarks.sh
# - ./.gitlab/scripts/upload-results-to-s3.sh #commented out until we have merged our permissions changes
- ./.gitlab/scripts/upload-results-to-s3.sh
- ./.gitlab/scripts/analyze-results.sh
- ./.gitlab/scripts/post-pr-comment.sh
artifacts:
Expand Down
4 changes: 4 additions & 0 deletions .gitlab/scripts/analyze-results.sh
Expand Up @@ -4,6 +4,10 @@ ARTIFACTS_DIR="/artifacts/${CI_JOB_ID}"
REPORTS_DIR="$(pwd)/reports/"
mkdir "${REPORTS_DIR}" || :

# Change threshold for detection of regression
# @see https://github.com/DataDog/relenv-benchmark-analyzer#what-is-a-significant-difference
UNCONFIDENCE_THRESHOLD=2.0

BASELINE_BRANCH=$(github-find-merge-into-branch --for-repo="$CI_PROJECT_NAME" --for-pr="$CI_COMMIT_REF_NAME" || :)

source /benchmark-analyzer/.venv/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/scripts/post-pr-comment.sh
Expand Up @@ -2,4 +2,4 @@

REPORTS_DIR="$(pwd)/reports/"

cat ${REPORTS_DIR}/report.md | /usr/local/bin/pr-commenter --for-repo="$CI_PROJECT_NAME" --for-pr="$CI_COMMIT_REF_NAME" --header="Benchmarks"
cat ${REPORTS_DIR}/report.md | /usr/local/bin/pr-commenter --for-repo="$CI_PROJECT_NAME" --for-pr="$CI_COMMIT_REF_NAME" --header="Benchmarks" --on-duplicate=replace

0 comments on commit 2780eb4

Please sign in to comment.