Skip to content

Commit

Permalink
Merge pull request #75246 from nicktrav/nickt.release-21.1-roachtest-…
Browse files Browse the repository at this point in the history
…stress

release-21.1: build: add roachtest-stress.sh
  • Loading branch information
nicktrav authored Jan 21, 2022
2 parents 79d5912 + 8eb5ade commit 52c7a67
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions build/teamcity-roachtest-stress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -euo pipefail

source "$(dirname "${0}")/teamcity-support.sh"

google_credentials="$GOOGLE_CREDENTIALS"
generate_ssh_key
log_into_gcloud

set -x

export ROACHPROD_USER=teamcity
export GCE_PROJECT=${GCE_PROJECT-cockroach-roachstress}

mkdir -p artifacts

build/builder/mkrelease.sh amd64-linux-gnu build bin/workload bin/roachtest \
> artifacts/build.txt 2>&1 || (cat artifacts/build.txt; false)

build/teamcity-roachtest-invoke.sh \
--cloud=gce \
--zones="${GCE_ZONES-us-east4-b,us-west4-a,europe-west4-c}" \
--debug="${DEBUG-false}" \
--count="${COUNT-16}" \
--parallelism="${PARALLELISM-16}" \
--cpu-quota="${CPUQUOTA-1024}" \
--cluster-id="${TC_BUILD_ID}" \
--build-tag="${BUILD_TAG}" \
--lifetime="36h" \
--cockroach="${PWD}/cockroach-linux-2.6.32-gnu-amd64" \
--artifacts="${PWD}/artifacts" \
--disable-issue \
"${TESTS}"

0 comments on commit 52c7a67

Please sign in to comment.