Skip to content

Commit 5e3adae

Browse files
committed
Reroute shell script to run DET perfcomp
1 parent f0469d0 commit 5e3adae

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

etc/perf-pr-comment.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@
44

55
set -eux
66

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
109

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}
1311

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
1513
# Parse and generate perf comparison comment.
16-
GOWORK=off ./bin/perfcomp mdreport
14+
GOWORK=off ./perfcomp/bin/perfcomp mdreport
1715
# 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
1917
bash $target -m "## 🧪 Performance Results" -c "$(pwd)/perf-report.md" -h $HEAD_SHA -o "mongodb" -n "mongo-go-driver"
18+
rm ./perf-report.txt
2019
rm ./perf-report.md
2120
else
2221
# Skip comment if it isn't a PR run.
2322
echo "Skipping Perf PR comment"
2423
fi
2524

26-
rm ./internal/cmd/perfcomp/perf-report.txt
25+
popd >/dev/null

0 commit comments

Comments
 (0)