Skip to content

Commit

Permalink
Merge #132100
Browse files Browse the repository at this point in the history
132100: drtprod: put roachtest binary and operation script in workload-scale r=sambhav-jain-16 a=vidit-bhat

This PR ensures that we put pre-built `roachprod`, `roachtest` binaries and operation runner
script on `workload-scale` cluster upon creation

Epic: none
Release note

Co-authored-by: Vidit Bhat <[email protected]>
  • Loading branch information
craig[bot] and vidit-bhat committed Oct 8, 2024
2 parents 1f963ef + 2d4df70 commit 571a73f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
11 changes: 8 additions & 3 deletions pkg/cmd/drt/scripts/roachtest_operations_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
# Use of this software is governed by the CockroachDB Software License
# included in the /LICENSE file.

cd /home/ubuntu

cd ~
export GCE_PROJECT=cockroach-drt
export ROACHPROD_DNS="drt.crdb.io"
./roachprod sync
sleep 20

# add --datadog-api-key and --datadog-app-key
while true; do
./roachtest-operations run-operation ".*" --certs-dir ./certs --cluster "cct-232" --cockroach-binary "cockroach" --virtual-cluster "application" | tee -a roachtest_ops.log
sleep 10
./roachtest-operations run-operation "drt-scale" ".*" --datadog-tags env:development,cluster:workload-scale,team:drt,service:drt-cockroachdb --certs-dir ./certs | tee -a roachtest_ops.log
sleep 600
done
18 changes: 17 additions & 1 deletion pkg/cmd/drtprod/configs/drt_scale.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Yaml for creating and configuring the drt-scale cluster. This also configures the datadog.
# Build the roachprod and roachtest binaries (using --cross) before running this script and delete any certs folder
environment:
ROACHPROD_GCE_DEFAULT_SERVICE_ACCOUNT: [email protected]
ROACHPROD_DNS: drt.crdb.io
Expand Down Expand Up @@ -105,4 +106,19 @@ targets:
- --
- chmod
- 600
- ./certs/*
- certs/*
- command: put
args:
- $WORKLOAD_CLUSTER
- bin/roachprod
- roachprod
- command: put
args:
- $WORKLOAD_CLUSTER
- bin/roachtest
- roachtest-operations
- command: put
args:
- $WORKLOAD_CLUSTER
- pkg/cmd/drt/scripts/roachtest_operations_run.sh
- roachtest_operations_run.sh

0 comments on commit 571a73f

Please sign in to comment.