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