File tree Expand file tree Collapse file tree 7 files changed +6
-869
lines changed Expand file tree Collapse file tree 7 files changed +6
-869
lines changed Original file line number Diff line number Diff line change 4
4
5
5
set -eux
6
6
7
- pushd ./internal/cmd/perfcomp > /dev/null || exist
8
- GOWORK=off go build -o ../../../bin/perfcomp .
9
- popd > /dev/null
10
-
11
- # Generate perf report.
12
- GOWORK=off ./bin/perfcomp compare --project=" mongo-go-driver" ${VERSION_ID} > ./internal/cmd/perfcomp/perf-report.txt
7
+ pushd $DRIVERS_TOOLS /.evergreen > /dev/null
8
+ PROJECT=" mongo-go-driver" CONTEXT=" GoDriver perf task" TASK=" perf" VARIANT=" perf" sh run-perf-comp.sh
13
9
14
10
if [[ -n " ${BASE_SHA+set} " && -n " ${HEAD_SHA+set} " && " $BASE_SHA " != " $HEAD_SHA " ]]; then
15
- # Parse and generate perf comparison comment.
16
- GOWORK=off ./bin/perfcomp mdreport
17
11
# Make the PR comment.
18
- target=$DRIVERS_TOOLS /.evergreen/ github_app/create_or_modify_comment.sh
19
- bash $target -m " ## 🧪 Performance Results" -c " $( pwd) /perf-report.md" -h $HEAD_SHA -o " mongodb" -n " mongo-go-driver"
20
- rm ./perf-report.md
12
+ target=github_app/create_or_modify_comment.sh
13
+ bash $target -m " ## 🧪 Performance Results" -c " $( pwd) /perfcomp/ perf-report.md" -h $HEAD_SHA -o " mongodb" -n " mongo-go-driver"
14
+ rm ./perfcomp/ perf-report.md
21
15
else
22
16
# Skip comment if it isn't a PR run.
23
17
echo " Skipping Perf PR comment"
24
18
fi
25
19
26
- rm ./internal/cmd/perfcomp/perf-report.txt
20
+ popd > /dev/null
You can’t perform that action at this time.
0 commit comments