File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ install_telegraf() {
3434 DEBIAN_FRONTEND=noninteractive apt-get update
3535 DEBIAN_FRONTEND=noninteractive apt-get install -y git jq telegraf awscli
3636
37- # Install influx_tools
38- aws --region us-west-2 s3 cp s3://perftest-binaries-influxdb/influx_tools/influx_tools-d3be25b251256755d622792ec91826c5670c6106 ./influx_tools
39- mv ./influx_tools /usr/bin/influx_tools
40- chmod 755 /usr/bin/influx_tools
41-
4237 root_branch=" $( echo " ${INFLUXDB_VERSION} " | rev | cut -d ' -' -f1 | rev) "
4338 log_date=$( date +%Y%m%d%H%M%S)
4439
@@ -127,6 +122,17 @@ install_go_bins() {
127122 go install github.com/mikefarah/yq/v4@v4.23.1
128123}
129124
125+ install_influx_tools () {
126+ local src=/tmp/influxdb-1x
127+ mkdir -p " $src "
128+ git -C " $src " init -q
129+ git -C " $src " remote add origin https://github.com/influxdata/influxdb.git
130+ git -C " $src " fetch --depth 1 -q origin d3be25b251256755d622792ec91826c5670c6106
131+ git -C " $src " checkout -q FETCH_HEAD
132+ (cd " $src " && go build -o /usr/bin/influx_tools ./cmd/influx_tools)
133+ chmod 755 /usr/bin/influx_tools
134+ }
135+
130136# Helper functions containing common logic
131137bucket_id () {
132138 bucket_id=$( curl -H " Authorization: Token $TEST_TOKEN " " http://${NGINX_HOST} :8086/api/v2/buckets?org=$TEST_ORG " | jq -r " .buckets[] | select(.name | contains(\" $db_name \" )).id" )
@@ -308,6 +314,7 @@ install_influxdb
308314install_telegraf
309315install_go
310316install_go_bins
317+ install_influx_tools
311318
312319# Common variables used across all tests
313320db_name=" benchmark_db"
You can’t perform that action at this time.
0 commit comments