File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
build/teamcity/cockroach/nightlies Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 19
19
# BENCH_IGNORE_PACKAGES: comma-separated list of packages to exclude completely from listing and execution (default: none)
20
20
# TEST_ARGS: additional arguments to pass to the test binary (default: none)
21
21
# 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)
22
24
23
25
set -exuo pipefail
24
26
@@ -160,12 +162,17 @@ if [ -d "$output_dir/experiment" ] && [ "$(ls -A "$output_dir/experiment")" ] \
160
162
# Set up slack token only if the build was triggered by TeamCity (not a manual run)
161
163
if [ -n " ${TRIGGERED_BUILD:- } " ]; then
162
164
slack_token=" ${MICROBENCH_SLACK_TOKEN} "
165
+ influx_token=" ${MICROBENCH_INFLUX_TOKEN} "
166
+ influx_host=" ${MICROBENCH_INFLUX_HOST} "
163
167
fi
164
168
# Sheet description is in the form: `baseline` to `experiment`
165
169
sheet_description=" ${name_arr[1]} -> ${name_arr[0]} "
166
170
./bin/roachprod-microbench compare " $output_dir /experiment" " $output_dir /baseline" \
167
171
${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"
169
176
else
170
177
echo " No microbenchmarks were run. Skipping comparison."
171
178
fi
You can’t perform that action at this time.
0 commit comments