Skip to content

Commit 7d13d02

Browse files
authored
GODRIVER-3632: Reroute to use perfcomp from DET (#2163)
1 parent 54bab6d commit 7d13d02

File tree

7 files changed

+6
-869
lines changed

7 files changed

+6
-869
lines changed

etc/perf-pr-comment.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,17 @@
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
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
139

1410
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
1711
# 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
2115
else
2216
# Skip comment if it isn't a PR run.
2317
echo "Skipping Perf PR comment"
2418
fi
2519

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

0 commit comments

Comments
 (0)