Skip to content

Commit 3e2b95b

Browse files
committed
roachprod-microbench: pass influx env vars
Epic: None Release note: None
1 parent 1d35377 commit 3e2b95b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
# BENCH_IGNORE_PACKAGES: comma-separated list of packages to exclude completely from listing and execution (default: none)
2020
# TEST_ARGS: additional arguments to pass to the test binary (default: none)
2121
# MICROBENCH_SLACK_TOKEN: token to use to post to slack (default: none)
22+
# MICROBENCH_INFLUX_HOST: Influx host path to use to push results to InfluxDB (default: none)
23+
# MICROBENCH_INFLUX_TOKEN: auth token to use to push results to InfluxDB (default: none)
2224

2325
set -exuo pipefail
2426

@@ -160,12 +162,17 @@ if [ -d "$output_dir/experiment" ] && [ "$(ls -A "$output_dir/experiment")" ] \
160162
# Set up slack token only if the build was triggered by TeamCity (not a manual run)
161163
if [ -n "${TRIGGERED_BUILD:-}" ]; then
162164
slack_token="${MICROBENCH_SLACK_TOKEN}"
165+
influx_token="${MICROBENCH_INFLUX_TOKEN}"
166+
influx_host="${MICROBENCH_INFLUX_HOST}"
163167
fi
164168
# Sheet description is in the form: `baseline` to `experiment`
165169
sheet_description="${name_arr[1]} -> ${name_arr[0]}"
166170
./bin/roachprod-microbench compare "$output_dir/experiment" "$output_dir/baseline" \
167171
${slack_token:+--slack-token="$slack_token"} \
168-
--sheet-desc="$sheet_description" 2>&1 | tee "$output_dir/sheets.txt"
172+
--sheet-desc="$sheet_description" \
173+
${influx_token:+--influx-token="$influx_token"} \
174+
${influx_host:+--influx-host="$influx_host"} \
175+
2>&1 | tee "$output_dir/sheets.txt"
169176
else
170177
echo "No microbenchmarks were run. Skipping comparison."
171178
fi

0 commit comments

Comments
 (0)