Skip to content

GODRIVER-3632: Reroute to use perfcomp from DET #2163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .evergreen/setup-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ fi

# Ensure a checkout of drivers-tools.
if [ ! -d "$DRIVERS_TOOLS" ]; then
git clone https://github.com/mongodb-labs/drivers-evergreen-tools $DRIVERS_TOOLS
#git clone https://github.com/mongodb-labs/drivers-evergreen-tools $DRIVERS_TOOLS
git clone -b perfcomp https://github.com/zhouselena/drivers-evergreen-tools.git $DRIVERS_TOOLS
fi

# Write the .env file for drivers-tools.
Expand Down
17 changes: 8 additions & 9 deletions etc/perf-pr-comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@

set -eux

pushd ./internal/cmd/perfcomp >/dev/null || exist
GOWORK=off go build -o ../../../bin/perfcomp .
popd >/dev/null
pushd $DRIVERS_TOOLS/.evergreen >/dev/null
sh run-perf-comp.sh

# Generate perf report.
GOWORK=off ./bin/perfcomp compare --project="mongo-go-driver" ${VERSION_ID} > ./internal/cmd/perfcomp/perf-report.txt
./perfcomp/bin/perfcomp compare --project="mongo-go-driver" ${VERSION_ID}

if [[ -n "${BASE_SHA+set}" && -n "${HEAD_SHA+set}" && "$BASE_SHA" != "$HEAD_SHA" ]]; then
if [[ -n "${BASE_SHA+set}" && -n "${HEAD_SHA+set}" && "$BASE_SHA" != "$HEAD_SHA" ]]; then
# Parse and generate perf comparison comment.
GOWORK=off ./bin/perfcomp mdreport
GOWORK=off ./perfcomp/bin/perfcomp mdreport
# Make the PR comment.
target=$DRIVERS_TOOLS/.evergreen/github_app/create_or_modify_comment.sh
target=github_app/create_or_modify_comment.sh
bash $target -m "## 🧪 Performance Results" -c "$(pwd)/perf-report.md" -h $HEAD_SHA -o "mongodb" -n "mongo-go-driver"
rm ./perf-report.txt
rm ./perf-report.md
else
# Skip comment if it isn't a PR run.
echo "Skipping Perf PR comment"
fi

rm ./internal/cmd/perfcomp/perf-report.txt
popd >/dev/null
Loading
Loading